@hightor,
The decimalisation of the respective local, regional or introduction of a round measure - e.g. 30 cm feet - virtually paved the way for metrication in the various German states.
However, it was ‘ordered’ by decree in large parts of Germany during the French occupation before 1815 (for example in the Palatinate, where it remained even after Napoleon's defeat).
Generally in Germany, however, only in 1872 (Act of 17 August 1868 for the North German Confederation, 29 April 1869 for the southern German states).