fix boundary indexing outOfRange error
This commit is contained in:
parent
2d69e80d57
commit
a6c5950d31
1 changed files with 1 additions and 0 deletions
|
@ -214,6 +214,7 @@ public class Ring implements Comparable<Ring> {
|
|||
int intersections = 0;
|
||||
|
||||
List<Node> polyNodes = getBorder();
|
||||
if (polyNodes.size() == 0) return 0;
|
||||
for (int i = 0; i < polyNodes.size() - 1; i++) {
|
||||
if (MapAlgorithms.ray_intersect_lon(polyNodes.get(i),
|
||||
polyNodes.get(i + 1), latitude, longitude) != -360d) {
|
||||
|
|
Loading…
Reference in a new issue