Python: scipy.spatial: draw convex polygon and calculate area

I am using python. Now I have some coordinates (earth plane coordinates) and I want to draw a convex polygon based on those coordinates. Also, I need to save the polygon in GeoJSON format and calculate the area of ​​the polygon.

I heard scipy.spatial can do this, but I have no idea how to do it, other than how to extract the coordinates of the polygon and calculate the area on the ground?

thank

+3


source to share


1 answer


As far as I know scipy.spatial does not include the required functionality.



GeoPandas is suitable for this task. See for example example for computing polynomial regions. It also allows converting between different coordinate systems and support for GeoJSON output.

+1


source







All Articles