Skip to content

Commit ad78236

Browse files
committed
Misc changes and fixes to multipolygon hole determination, add shape geo interface testing
Move all multipolygon hole determination to separate organize_polygon_rings() function. Fixed buggy point-in-ring algo. Switched away from buggy sample_ring points, to full ring in ring containment test. Switch to simpler area-based determination for nested exterior-holes (which is how gdal also does it). Switch geo interface to consistently returns lists instead of tuples.
1 parent e0d4365 commit ad78236

17 files changed

+263
-113
lines changed

shapefile.py

Lines changed: 135 additions & 113 deletions
Large diffs are not rendered by default.

shapefiles/test/balancing.dbf

0 Bytes
Binary file not shown.

shapefiles/test/contextwriter.dbf

0 Bytes
Binary file not shown.

shapefiles/test/dtype.dbf

0 Bytes
Binary file not shown.

shapefiles/test/line.dbf

0 Bytes
Binary file not shown.

shapefiles/test/linem.dbf

0 Bytes
Binary file not shown.

shapefiles/test/linez.dbf

0 Bytes
Binary file not shown.

shapefiles/test/multipatch.dbf

0 Bytes
Binary file not shown.

shapefiles/test/multipoint.dbf

0 Bytes
Binary file not shown.

shapefiles/test/onlydbf.dbf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)