leading zeros fix

This commit is contained in:
Komяpa 2011-05-27 02:35:38 +03:00
parent 46850d469f
commit 6879c3c29c

View file

@ -159,6 +159,8 @@ def get_vectors(bbox, zoom, style, vec = "polygon"):
prop[k] = int(v)
else:
prop[k] = float(v)
if str(prop[k]) != v: # leading zeros etc.. should be saved
prop[k] = v
except:
pass
geojson["properties"] = prop