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

Naming Geography subclasses #1

Closed benbovy closed 1 year ago

benbovy commented 1 year ago

How should we name the Geography subclasses?

With option A, it is easy to switch between shapely and s2shapely (provided that they both yield the same API) but using subclasses from both shapely and s2shapely may be less convenient.

With option B, we could do from shapely import Point ; from s2shapely import S2Point without name conflicts, but it is not easy to just reuse the same code with shapely vs. s2shapely interchangeably.

Note: the base classes have different names: shapely.Geometry vs. s2shapely.Geography.

benbovy commented 1 year ago

I think we can close this. Keeping the same names makes sense given that the package name differs enough from shapely and the name of the base class is different.

jorisvandenbossche commented 1 year ago

Agreed!