benbovy / spherely

Manipulation and analysis of geometric objects on the sphere.
https://spherely.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
119 stars 8 forks source link

Add Polygon #15

Closed benbovy closed 1 year ago

benbovy commented 1 year ago

Also add the possibility to create a LineString using Point objects.

Polygon has currently a few limitations that we can address later:

S2Geography actually provides constructor classes with such check and oriented options. Maybe we can simply reuse it, although these classes return a unique pointer to the Geography base class which may make things a bit more complicated on the spherely side.

benbovy commented 1 year ago

OK I'm going to merge this now!