You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lately I'm feeling that, for example, ftr.properties['foo'] is cleaner syntax than ftr['properties']['foo'] and that we could surface all the standard GeoJSON items as Python properties in addition to the old item getter style. So, ftr.id == ftr['id'] would be True.
We could get this by requiring the geojson module or could roll our own dict-based classes.
The text was updated successfully, but these errors were encountered:
@sgillies Definitely cleaner syntax and more Pythonic but I wonder if it will cause confusion when some GeoJSON libraries have a Feature() class and others don't?
Yeah that and recommending people check for __geo_interface__() rather than assuming that an object that appears to be GeoJSON actually is, like our potential Feature() and Geometry() classes.
Lately I'm feeling that, for example,
ftr.properties['foo']
is cleaner syntax thanftr['properties']['foo']
and that we could surface all the standard GeoJSON items as Python properties in addition to the old item getter style. So,ftr.id == ftr['id']
would beTrue
.We could get this by requiring the geojson module or could roll our own dict-based classes.
The text was updated successfully, but these errors were encountered: