Rigidity properties of locally scaling fractals