diff --git a/index.html b/index.html index 7f50047..6d0b9ec 100644 --- a/index.html +++ b/index.html @@ -11,18 +11,34 @@
See Console Logs
+ diff --git a/shapefile.js b/shapefile.js index 00f7c07..f050d4e 100644 --- a/shapefile.js +++ b/shapefile.js @@ -290,7 +290,8 @@ part = [], point - for (var p = partIndex; p < (partIndex[pt+1] || points.length); p++){ + // partIndex 0 == main poly, partIndex > 0 == holes in poly + for (var p = partIndex; p < (parts[pt+1] || points.length); p++){ point = points[p] part.push([point.x,point.y]) } diff --git a/testdata/testshape.dbf b/testdata/testshape.dbf deleted file mode 100755 index d2fbf27..0000000 Binary files a/testdata/testshape.dbf and /dev/null differ diff --git a/testdata/testshape.shp b/testdata/testshape.shp deleted file mode 100755 index 5748f51..0000000 Binary files a/testdata/testshape.shp and /dev/null differ diff --git a/testdata/world.dbf b/testdata/world.dbf new file mode 100644 index 0000000..900b271 Binary files /dev/null and b/testdata/world.dbf differ diff --git a/testdata/world.shp b/testdata/world.shp new file mode 100644 index 0000000..de9a3a6 Binary files /dev/null and b/testdata/world.shp differ