Introduction of a Riemann structure into certain metric spaces