Skip to content

Commit

Permalink
Issue #138: The if statement that checks if the geometry have holes c…
Browse files Browse the repository at this point in the history
…auses some polygons not recognizable by ARCGIS maps. Simply removing this if statement works just fine for every polygon or multipolygon. In addition to this change, I'm inserting the .idea folders to be ignored by git
  • Loading branch information
Jhonnatan Figueiredo da Costa Vieira committed Nov 22, 2019
1 parent 7520fd1 commit 77dbd5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*sublime*
node_modules
.idea/*
5 changes: 0 additions & 5 deletions wicket-arcgis.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@ Wkt.Wkt.prototype.construct = {
return rings;
});

if (!holey && rings[0].length > 1) { // Easy, if there are no inner rings (holes)
// But we add the second condition to check that we're not too deeply nested
return rings;
}

newRings = [];
for (i = 0; i < rings.length; i += 1) {
if (rings[i].length > 1) {
Expand Down

0 comments on commit 77dbd5a

Please sign in to comment.