parent
75cc7077c7
commit
0d9fad79e0
|
@ -366,7 +366,7 @@ public abstract class BasePolygonBuilder<E extends BasePolygonBuilder<E>> extend
|
||||||
final int pos;
|
final int pos;
|
||||||
if (intersections == 0 ||
|
if (intersections == 0 ||
|
||||||
(pos = Arrays.binarySearch(edges, 0, intersections, current, INTERSECTION_ORDER)) >= 0) {
|
(pos = Arrays.binarySearch(edges, 0, intersections, current, INTERSECTION_ORDER)) >= 0) {
|
||||||
throw new ElasticsearchParseException("Invaild shape: Hole is not within polygon");
|
throw new ElasticsearchParseException("Invalid shape: Hole is not within polygon");
|
||||||
}
|
}
|
||||||
final int index = -(pos+2);
|
final int index = -(pos+2);
|
||||||
final int component = -edges[index].component - numHoles - 1;
|
final int component = -edges[index].component - numHoles - 1;
|
||||||
|
|
Loading…
Reference in New Issue