Package | Description |
---|---|
org.locationtech.spatial4j.context |
SpatialContext implementations are the facade to the Spatial4j API.
|
org.locationtech.spatial4j.context.jts | |
org.locationtech.spatial4j.distance |
Ways to calculate distance.
|
org.locationtech.spatial4j.io |
Reading & writing shapes in various forms.
|
org.locationtech.spatial4j.shape |
Shapes are the core geometry objects that Spatial4j provides.
|
org.locationtech.spatial4j.shape.impl | |
org.locationtech.spatial4j.shape.jts |
Modifier and Type | Field and Description |
---|---|
Rectangle |
SpatialContextFactory.worldBounds |
Modifier and Type | Method and Description |
---|---|
Rectangle |
SpatialContext.getWorldBounds()
The extent of x & y coordinates should fit within the return'ed rectangle.
|
Rectangle |
SpatialContext.makeRectangle(double minX,
double maxX,
double minY,
double maxY)
Deprecated.
|
Rectangle |
SpatialContext.makeRectangle(Point lowerLeft,
Point upperRight)
Deprecated.
|
Constructor and Description |
---|
SpatialContext(boolean geo,
DistanceCalculator calculator,
Rectangle worldBounds)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
JtsSpatialContext.makeRectFromRectangularPoly(Geometry geom)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
DistanceCalculator.calcBoxByDistFromPt(Point from,
double distDEG,
SpatialContext ctx,
Rectangle reuse)
Calculates the bounding box of a circle, as specified by its center point
and distance.
|
Rectangle |
CartesianDistCalc.calcBoxByDistFromPt(Point from,
double distDEG,
SpatialContext ctx,
Rectangle reuse) |
Rectangle |
GeodesicSphereDistCalc.calcBoxByDistFromPt(Point from,
double distDEG,
SpatialContext ctx,
Rectangle reuse) |
static Rectangle |
DistanceUtils.calcBoxByDistFromPtDEG(double lat,
double lon,
double distDEG,
SpatialContext ctx,
Rectangle reuse)
Calculates the bounding box of a circle, as specified by its center point
and distance.
|
Modifier and Type | Method and Description |
---|---|
double |
DistanceCalculator.area(Rectangle rect) |
double |
CartesianDistCalc.area(Rectangle rect) |
double |
GeodesicSphereDistCalc.area(Rectangle rect) |
Rectangle |
DistanceCalculator.calcBoxByDistFromPt(Point from,
double distDEG,
SpatialContext ctx,
Rectangle reuse)
Calculates the bounding box of a circle, as specified by its center point
and distance.
|
Rectangle |
CartesianDistCalc.calcBoxByDistFromPt(Point from,
double distDEG,
SpatialContext ctx,
Rectangle reuse) |
Rectangle |
GeodesicSphereDistCalc.calcBoxByDistFromPt(Point from,
double distDEG,
SpatialContext ctx,
Rectangle reuse) |
static Rectangle |
DistanceUtils.calcBoxByDistFromPtDEG(double lat,
double lon,
double distDEG,
SpatialContext ctx,
Rectangle reuse)
Calculates the bounding box of a circle, as specified by its center point
and distance.
|
Modifier and Type | Method and Description |
---|---|
static Rectangle |
GeohashUtils.decodeBoundary(String geohash,
SpatialContext ctx)
Returns min-max lon (X), min-max lat (Y).
|
Rectangle |
BinaryCodec.readRect(DataInput dataInput) |
Modifier and Type | Method and Description |
---|---|
void |
BinaryCodec.writeRect(DataOutput dataOutput,
Rectangle r) |
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
ShapeCollection.bbox |
Modifier and Type | Method and Description |
---|---|
protected Rectangle |
ShapeCollection.computeBoundingBox(Collection<? extends Shape> shapes,
SpatialContext ctx) |
Rectangle |
Shape.getBoundingBox()
Get the bounding box for this Shape.
|
Rectangle |
ShapeCollection.getBoundingBox() |
Rectangle |
ShapeFactory.rect(double minX,
double maxX,
double minY,
double maxY)
Construct a rectangle.
|
Rectangle |
ShapeFactory.rect(Point lowerLeft,
Point upperRight)
Construct a rectangle.
|
Modifier and Type | Class and Description |
---|---|
class |
RectangleImpl
A simple Rectangle implementation that also supports a longitudinal
wrap-around.
|
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
CircleImpl.enclosingBox |
Modifier and Type | Method and Description |
---|---|
Rectangle |
BBoxCalculator.getBoundary() |
Rectangle |
RectangleImpl.getBoundingBox() |
Rectangle |
BufferedLine.getBoundingBox() |
Rectangle |
PointImpl.getBoundingBox() |
Rectangle |
CircleImpl.getBoundingBox()
Note that the bounding box might contain a minX that is > maxX, due to WGS84 anti-meridian.
|
Rectangle |
BufferedLineString.getBoundingBox() |
Rectangle |
RectangleImpl.getBuffered(double distance,
SpatialContext ctx) |
Rectangle |
ShapeFactoryImpl.rect(double minX,
double maxX,
double minY,
double maxY) |
Rectangle |
ShapeFactoryImpl.rect(Point lowerLeft,
Point upperRight) |
Modifier and Type | Method and Description |
---|---|
static void |
InfBufLine.cornerByQuadrant(Rectangle r,
int cornerQuad,
Point out) |
static boolean |
RectangleImpl.equals(Rectangle thiz,
Object o)
All
Rectangle implementations should use this definition of Object.equals(Object) . |
void |
BBoxCalculator.expandRange(Rectangle rect) |
static int |
RectangleImpl.hashCode(Rectangle thiz)
All
Rectangle implementations should use this definition of Object.hashCode() . |
SpatialRelation |
RectangleImpl.relate(Rectangle rect) |
SpatialRelation |
BufferedLine.relate(Rectangle r) |
SpatialRelation |
CircleImpl.relate(Rectangle r) |
protected SpatialRelation |
CircleImpl.relateRectanglePhase2(Rectangle r,
SpatialRelation bboxSect) |
protected SpatialRelation |
GeoCircle.relateRectanglePhase2(Rectangle r,
SpatialRelation bboxSect)
Called after bounding box is intersected.
|
static Range |
Range.xRange(Rectangle rect,
SpatialContext ctx)
Deprecated.
|
static Range |
Range.yRange(Rectangle rect,
SpatialContext ctx)
Deprecated.
|
Constructor and Description |
---|
LongitudeRange(Rectangle r)
Deprecated.
|
RectangleImpl(Rectangle r,
SpatialContext ctx)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Rectangle |
JtsGeometry.computeGeoBBox(Geometry geoms)
Given
geoms which has already been checked for being in world
bounds, return the minimal longitude range of the bounding box. |
Rectangle |
JtsPoint.getBoundingBox() |
Rectangle |
JtsGeometry.getBoundingBox() |
Rectangle |
JtsShapeFactory.makeRectFromRectangularPoly(Geometry geom)
INTERNAL: Returns a Rectangle of the JTS
Envelope (bounding box) of the given geom . |
Modifier and Type | Method and Description |
---|---|
SpatialRelation |
JtsGeometry.relate(Rectangle rectangle) |
Copyright © 2020 LocationTech. All rights reserved.