New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a WKT/WKB __repr__/__str__ methods to pysal polygons & chains #812
Comments
Hi, |
Hey! Thanks for your interest! This involves providing a correct mapping from our polygon type (in IIRC, the blocker for this was that our polygon type, In order to generate valid WKT for multipolygons with holes, each exterior polygon ring in |
Thanks for the comprehensive explanation! and if I understand correctly, I'd need to check only a single point out of a hole's vertices, rather than checking for all vertices of a hole to be inside the exterior ring, as no intersection is being assumed |
Our point geometries already implement something close to the WKT standard:
writing this shouldn't be too onerous. But, if in place, it would allow us to do something like:
which could be quite nice. Currently, this is the type of behavior adopted in shapely, where shapes's
__str__
method provides wkt and their__reduce__
method (used by pickle) provides wkb.The text was updated successfully, but these errors were encountered: