GeospatialPython / pyshp

This library reads and writes ESRI Shapefiles in pure Python.
MIT License
1.09k stars 259 forks source link

Enhancements to `__geo_interface__` #248

Closed vojtatom closed 1 year ago

vojtatom commented 2 years ago

Hello, I have made a few small enhancements to __geo_interface__:

As of now, there are no tests for the MULTIPATCH. I would love to add them, but I could find SHP files containing only MULTIPATCH type 2 (Outer ring).

vojtatom commented 2 years ago

The function organize_polygon_rings is not suitable for processing 3D polygons - the winding order of vertices is ambiguous, therefore I have separated the processing of POLYGONZ from the rest of polygon classes. Processing of 3D MULTIPATCH instances needs similar treatment. More updates will probably follow.