Uses of Interface
org.locationtech.spatial4j.shape.Rectangle
Packages that use Rectangle
Package
Description
SpatialContext implementations are the facade to the Spatial4j API.
Ways to calculate distance.
Reading & writing shapes in various forms.
Shapes are the core geometry objects that Spatial4j provides.
-
Uses of Rectangle in org.locationtech.spatial4j.context
Fields in org.locationtech.spatial4j.context declared as RectangleModifier and TypeFieldDescriptionprivate final Rectangle
SpatialContext.worldBounds
SpatialContextFactory.worldBounds
Methods in org.locationtech.spatial4j.context that return RectangleModifier and TypeMethodDescriptionSpatialContext.getWorldBounds()
The extent of x & y coordinates should fit within the return'ed rectangle.SpatialContext.makeRectangle
(double minX, double maxX, double minY, double maxY) Deprecated.SpatialContext.makeRectangle
(Point lowerLeft, Point upperRight) Deprecated.Methods in org.locationtech.spatial4j.context with parameters of type RectangleModifier and TypeMethodDescriptionprivate static SpatialContextFactory
SpatialContext.initFromLegacyConstructor
(boolean geo, DistanceCalculator calculator, Rectangle worldBounds) Constructors in org.locationtech.spatial4j.context with parameters of type RectangleModifierConstructorDescriptionSpatialContext
(boolean geo, DistanceCalculator calculator, Rectangle worldBounds) Deprecated. -
Uses of Rectangle in org.locationtech.spatial4j.context.jts
Methods in org.locationtech.spatial4j.context.jts that return RectangleModifier and TypeMethodDescriptionJtsSpatialContext.makeRectFromRectangularPoly
(org.locationtech.jts.geom.Geometry geom) Deprecated. -
Uses of Rectangle in org.locationtech.spatial4j.distance
Methods in org.locationtech.spatial4j.distance that return RectangleModifier and TypeMethodDescriptionCartesianDistCalc.calcBoxByDistFromPt
(Point from, double distDEG, SpatialContext ctx, Rectangle reuse) 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.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.Methods in org.locationtech.spatial4j.distance with parameters of type RectangleModifier and TypeMethodDescriptiondouble
double
double
CartesianDistCalc.calcBoxByDistFromPt
(Point from, double distDEG, SpatialContext ctx, Rectangle reuse) 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.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. -
Uses of Rectangle in org.locationtech.spatial4j.io
Methods in org.locationtech.spatial4j.io that return RectangleModifier and TypeMethodDescriptionstatic Rectangle
GeohashUtils.decodeBoundary
(String geohash, SpatialContext ctx) Returns min-max lon (X), min-max lat (Y).Methods in org.locationtech.spatial4j.io with parameters of type Rectangle -
Uses of Rectangle in org.locationtech.spatial4j.shape
Fields in org.locationtech.spatial4j.shape declared as RectangleMethods in org.locationtech.spatial4j.shape that return RectangleModifier and TypeMethodDescriptionprotected Rectangle
ShapeCollection.computeBoundingBox
(Collection<? extends Shape> shapes, SpatialContext ctx) Shape.getBoundingBox()
Get the bounding box for this Shape.ShapeCollection.getBoundingBox()
ShapeFactory.rect
(double minX, double maxX, double minY, double maxY) Construct a rectangle.Construct a rectangle. -
Uses of Rectangle in org.locationtech.spatial4j.shape.impl
Classes in org.locationtech.spatial4j.shape.impl that implement RectangleModifier and TypeClassDescriptionclass
A simple Rectangle implementation that also supports a longitudinal wrap-around.Fields in org.locationtech.spatial4j.shape.impl declared as RectangleModifier and TypeFieldDescriptionprivate final Rectangle
BufferedLine.bbox
protected Rectangle
CircleImpl.enclosingBox
Methods in org.locationtech.spatial4j.shape.impl that return RectangleModifier and TypeMethodDescriptionBBoxCalculator.getBoundary()
BufferedLine.getBoundingBox()
BufferedLineString.getBoundingBox()
CircleImpl.getBoundingBox()
Note that the bounding box might contain a minX that is > maxX, due to WGS84 anti-meridian.PointImpl.getBoundingBox()
RectangleImpl.getBoundingBox()
RectangleImpl.getBuffered
(double distance, SpatialContext ctx) ShapeFactoryImpl.rect
(double minX, double maxX, double minY, double maxY) Methods in org.locationtech.spatial4j.shape.impl with parameters of type RectangleModifier and TypeMethodDescriptionstatic void
InfBufLine.cornerByQuadrant
(Rectangle r, int cornerQuad, Point out) static boolean
AllRectangle
implementations should use this definition ofObject.equals(Object)
.void
BBoxCalculator.expandRange
(Rectangle rect) static int
AllRectangle
implementations should use this definition ofObject.hashCode()
.private int
GeoCircle.numCornersIntersect
(Rectangle r) Returns either 0 for none, 1 for some, or 4 for all.(package private) SpatialRelation
private SpatialRelation
GeoCircle.relateRectangleCircleWrapsPole
(Rectangle r, SpatialContext ctx) protected SpatialRelation
CircleImpl.relateRectanglePhase2
(Rectangle r, SpatialRelation bboxSect) protected SpatialRelation
GeoCircle.relateRectanglePhase2
(Rectangle r, SpatialRelation bboxSect) Called after bounding box is intersected.private static boolean
RectangleImpl.verticalAtDateline
(RectangleImpl rect1, Rectangle rect2) static Range
Range.xRange
(Rectangle rect, SpatialContext ctx) Deprecated.static Range
Range.yRange
(Rectangle rect, SpatialContext ctx) Deprecated.Constructors in org.locationtech.spatial4j.shape.impl with parameters of type RectangleModifierConstructorDescriptionDeprecated.RectangleImpl
(Rectangle r, SpatialContext ctx) Copy constructor. -
Uses of Rectangle in org.locationtech.spatial4j.shape.jts
Fields in org.locationtech.spatial4j.shape.jts declared as RectangleMethods in org.locationtech.spatial4j.shape.jts that return RectangleModifier and TypeMethodDescriptionprotected Rectangle
JtsGeometry.computeGeoBBox
(org.locationtech.jts.geom.Geometry geoms) Givengeoms
which has already been checked for being in world bounds, return the minimal longitude range of the bounding box.JtsGeometry.getBoundingBox()
JtsPoint.getBoundingBox()
JtsShapeFactory.makeRectFromRectangularPoly
(org.locationtech.jts.geom.Geometry geom) INTERNAL: Returns a Rectangle of the JTSEnvelope
(bounding box) of the givengeom
.Methods in org.locationtech.spatial4j.shape.jts with parameters of type Rectangle