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

Interop with Shapely #8

Open
chaitan94 opened this issue Jun 29, 2020 · 1 comment · May be fixed by #30
Open

Interop with Shapely #8

chaitan94 opened this issue Jun 29, 2020 · 1 comment · May be fixed by #30
Labels
enhancement New feature or request python

Comments

@chaitan94
Copy link
Member

Right now when we are returning point data, we return a custom Geometry class. But when it comes to Python ecosystem, it would be great if we can return this data as Shapely objects. This would make the library play nicely with lots of other geospatial processing tools. Although I haven't looked into it how this can be achieved yet - but since pybind11 allows access to external python libraries, I think this should be possible.

@chaitan94 chaitan94 added enhancement New feature or request python labels Jun 29, 2020
@chaitan94
Copy link
Member Author

I have pushed a rudimentary effort of integrating with Shapely in PyMEOS in the shapely branch. Basically 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

@chaitan94 chaitan94 linked a pull request Aug 17, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request python
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant