jazzband / geojson

Python bindings and utilities for GeoJSON
https://pypi.python.org/pypi/geojson/
BSD 3-Clause "New" or "Revised" License
908 stars 120 forks source link

Decoder assumes GeoJSON factory as properties "type" is GeoJSON object #45

Open frewsxcv opened 9 years ago

frewsxcv commented 9 years ago

e.g.

>>> obj = geojson.loads('{"type": "Feature", "geometry": null, "id": 1, "properties": {"type": "Feature"}}')`
>>> type(obj.properties)
<class 'geojson.feature.Feature'>