Local lattice and electronic structures in the Fe-As layer of ${\text{SmFeAsO}}_{1\ensuremath{-}x}{\text{F}}_{x}$ superconductors were studied by x-ray absorption spectroscopy, the $\text{Fe}\text{ }K$-edge and the $\text{As}\text{ }K$-edge extended x-ray absorption fine-structure, and x-ray absorption near-edge-structure experiments, respectively. Temperature-dependent local lattice distortions were observed in the Fe-As bond mean-square relative displacement of the superconducting samples. A strong coupling of the carrier-induced local lattice distortion (polaron) to the superconducting transition temperature in the oxypnictide superconductors is indicated. The near-edge spectra showed systematic temperature-dependent energy shifts, which indicate an intralayer electron redistribution from $\text{Fe}\text{ }d$ states to $\text{As}\text{ }p$ states due to orbital-selective band filling at low temperatures.