Package | Description |
---|---|
org.apache.lucene.geo |
Geospatial Utility Implementations for Lucene Core
|
Modifier and Type | Class and Description |
---|---|
class |
Line2D
2D geo line implementation represented as a balanced interval tree of edges.
|
class |
Polygon2D
2D polygon implementation represented as a balanced interval tree of edges.
|
class |
XYPolygon2D
2D cartesian polygon implementation represented as a balanced interval tree of edges.
|
class |
XYRectangle2D
2D rectangle implementation containing cartesian spatial logic.
|
Modifier and Type | Field and Description |
---|---|
protected Component2D |
Polygon2D.holes
tree of holes, or null
|
Modifier and Type | Method and Description |
---|---|
static Component2D |
Line2D.create(Line... lines)
create a Line2D edge tree from provided array of Linestrings
|
static Component2D |
Polygon2D.create(Polygon... polygons)
Builds a Polygon2D from multipolygon
|
static Component2D |
Line2D.create(XYLine... lines)
create a Line2D edge tree from provided array of Linestrings
|
static Component2D |
XYPolygon2D.create(XYPolygon... polygons)
Builds a Polygon2D from multipolygon
|
static Component2D |
XYRectangle2D.create(XYRectangle... rectangles)
create a component2D from provided array of rectangles
|
Modifier and Type | Method and Description |
---|---|
static GeoEncodingUtils.PolygonPredicate |
GeoEncodingUtils.createComponentPredicate(Component2D tree)
Create a predicate that checks whether points are within a polygon.
|
Constructor and Description |
---|
Polygon2D(double minX,
double maxX,
double minY,
double maxY,
double[] x,
double[] y,
Component2D holes) |
Polygon2D(Polygon polygon,
Component2D holes) |
XYPolygon2D(XYPolygon polygon,
Component2D holes) |
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.