  For dynamical systems with the shadowing property, we provide a method of
approximation of invariant measures by ergodic measures supported on odometers
and their almost 1-1 extensions. For a topologically transitive system with the
shadowing property, we show that ergodic measures supported on odometers are
dense in the space of invariant measures, and then ergodic measures are generic
in the space of invariant measures. We also show that for every $c\geq 0$ and
$\varepsilon>0$ the collection of ergodic measures (supported on almost 1-1
extensions of odometers) with entropy between $c$ and $c + \varepsilon$ is
dense in the space of invariant measures with entropy at least $c$. Moreover,
if in addition the entropy function is upper semi-continuous, then for every
$c\geq 0$ ergodic measures with entropy $c$ are generic in the space of
invariant measures with entropy at least $c$.
