jazzband / geojson

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

geojson.utils.coords(FeatureCollection) #116

Closed TomGoBravo closed 5 years ago

TomGoBravo commented 5 years ago

Currently it raises AttributeError: 'str' object has no attribute 'get' at File "/home/thecap/.local/lib/python3.5/site-packages/geojson/utils.py", line 19, in coords coordinates = obj.get('coordinates', obj)

This is similar to issue 110. I can imagine implementing coords and some of the map_* functions using a common function but it'd be more complex and slower so maybe not worth the effort.

frewsxcv commented 5 years ago

fixed in https://github.com/frewsxcv/python-geojson/pull/117