Package org.apache.lucene.geo
Class GeoEncodingUtils.PolygonPredicate
- java.lang.Object
-
- org.apache.lucene.geo.GeoEncodingUtils.Grid
-
- org.apache.lucene.geo.GeoEncodingUtils.PolygonPredicate
-
- Enclosing class:
- GeoEncodingUtils
public static class GeoEncodingUtils.PolygonPredicate extends GeoEncodingUtils.Grid
A predicate that checks whether a given point is within a polygon.
-
-
Field Summary
Fields Modifier and Type Field Description private Component2D
tree
-
Fields inherited from class org.apache.lucene.geo.GeoEncodingUtils.Grid
ARITY, latBase, latShift, lonBase, lonShift, maxLatDelta, maxLonDelta, relations
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PolygonPredicate(int latShift, int lonShift, int latBase, int lonBase, int maxLatDelta, int maxLonDelta, byte[] relations, Component2D tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(int lat, int lon)
Check whether the given point is within the considered polygon.
-
-
-
Field Detail
-
tree
private final Component2D tree
-
-
Constructor Detail
-
PolygonPredicate
private PolygonPredicate(int latShift, int lonShift, int latBase, int lonBase, int maxLatDelta, int maxLonDelta, byte[] relations, Component2D tree)
-
-