Skip to content

Commit

Permalink
Fix isRing flag setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Dec 4, 2023
1 parent 81fca4c commit 1c5a673
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void filter(Geometry geom)
if (line.isEmpty()) return;

int minSize = ((LineString) line).isClosed() ? 4 : 2;
boolean isRing = (line instanceof LinearRing) ? false : true;
boolean isRing = (line instanceof LinearRing) ? true : false;
TaggedLineString taggedLine = new TaggedLineString((LineString) line, minSize, isRing);
tps.linestringMap.put(line, taggedLine);
}
Expand Down

0 comments on commit 1c5a673

Please sign in to comment.