Closed yakomaru closed 3 years ago
I think we want to put a null
here not an empty polygon object, that'll be more compatable with things like null lines etc. I double checked the spec and I believe that's what you are supposed to do.
Yeah, that makes more sense. I updated the pull request.
v2.6.2
Fixes #134
The current implementation skips over null shapes in shapefiles resulting in a mismatch between shape data in .shp and .dbf files.
This fix parses null shapes as empty coordinate polygons instead of skipping them to maintain the 1 to 1 relationship between the shape data in the two files.
Example with badshp.zip on http://leaflet.calvinmetcalf.com/#6/-33.596/138.076 Before fix:
After fix: