area
area copied to clipboard
Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python

It would be sweet if a user could pass objects which implement the `__geo_interface__` protocol into the `area` method. This would allow calculating area of, for example, shapely geometries and...
If passing in geojson that has an outer ring with a clockwise winding order, it return an area of 0. The revised geojson spec says that the outside ring should...
The asserts on lines 30 and 63, i.e. `assert isinstance(coordinates, list)` should also accept tuples, i.e. `assert isinstance(coordinates, (list,tuple))` Since tuples are a valid format on GeoJson and some libraries...