1. Yohan Boniface
  2. django-leaflet-storage

Commits

Yohan Boniface  committed ea6224f

Import: use json.dumps instead of repr for latlng value

  • Participants
  • Parent commits 7e50bd3
  • Branches master

Comments (0)

Files changed (1)

File leaflet_storage/views.py

View file
             except Exception:
                 continue
             try:
-                latlng = GEOSGeometry(repr(feature.geometry))
+                latlng = GEOSGeometry(simplejson.dumps(feature.geometry))
             except Exception:
                 continue  # TODO notify user
             if latlng.empty: