leading zeros fix
This commit is contained in:
parent
46850d469f
commit
6879c3c29c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue