adonmo / meos

Mobility Engine, Open Source
https://adonmo.github.io/meos/
MIT License
21 stars 3 forks source link

PyMEOS: Integration with shapely #30

Open chaitan94 opened 4 years ago

chaitan94 commented 4 years ago

Basically this is currently implemented by introducing a pybind11 custom type caster to map from GeomPoint to shapely.geometry.point.Point. However, in the current state, it suffers from two major issues:

  1. Shapely's Point objects are not hashable, and hence we can't use it in many classes like InstantSet.
  2. Shapely's Point objects do not support attaching SRID information, but maybe Shapely 2.0 might (possibly) change this.

This PR, when complete, closes https://github.com/adonmo/meos/issues/8

jorisvandenbossche commented 1 year ago
  1. Shapely's Point objects are not hashable, and hence we can't use it in many classes like InstantSet.

FYI this will also be solved in Shapely 2.0 (currently 2.0b1 is released): geometries are now hashable.