Closed nchammas closed 8 years ago
I think any geometric operations and analysis is beyond the scope of this library. This library is just for dealing with the GeoJSON format. If you want to perform an operation like area, I recommend you look at shapely.
http://toblerity.org/shapely/manual.html?highlight=area#object.area
This library (python-geojson), implements the geo interface, so you should be able to do something like this to load a geojson object into shapely.
Thanks for the idea though!
OK, thanks for the pointer.
Would it be appropriate to add a utility method to this library that calculates the area of GeoJSON polygons and multipolygons?
I can port it from this Mapbox Javascript library.