Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

PyMEOS: Integration with shapely #30

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

PyMEOS: Integration with shapely #30

wants to merge 1 commit into from

Conversation

chaitan94
Copy link
Member

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 #8

@chaitan94 chaitan94 changed the title PyMEOS: Initial (and incomplete) integration with shapely PyMEOS: Integration with shapely Aug 17, 2020
@jorisvandenbossche
Copy link

  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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interop with Shapely
2 participants