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 RectangleSpatialContext.worldBoundsSpatialContextFactory.worldBoundsMethods 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 SpatialContextFactorySpatialContext.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 RectangleDistanceUtils.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 TypeMethodDescriptiondoubledoubledoubleCartesianDistCalc.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 RectangleDistanceUtils.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 RectangleGeohashUtils.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 RectangleShapeCollection.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 TypeClassDescriptionclassA simple Rectangle implementation that also supports a longitudinal wrap-around.Fields in org.locationtech.spatial4j.shape.impl declared as RectangleModifier and TypeFieldDescriptionprivate final RectangleBufferedLine.bboxprotected RectangleCircleImpl.enclosingBoxMethods 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 voidInfBufLine.cornerByQuadrant(Rectangle r, int cornerQuad, Point out) static booleanAllRectangleimplementations should use this definition ofObject.equals(Object).voidBBoxCalculator.expandRange(Rectangle rect) static intAllRectangleimplementations should use this definition ofObject.hashCode().private intGeoCircle.numCornersIntersect(Rectangle r) Returns either 0 for none, 1 for some, or 4 for all.(package private) SpatialRelationprivate SpatialRelationGeoCircle.relateRectangleCircleWrapsPole(Rectangle r, SpatialContext ctx) protected SpatialRelationCircleImpl.relateRectanglePhase2(Rectangle r, SpatialRelation bboxSect) protected SpatialRelationGeoCircle.relateRectanglePhase2(Rectangle r, SpatialRelation bboxSect) Called after bounding box is intersected.private static booleanRectangleImpl.verticalAtDateline(RectangleImpl rect1, Rectangle rect2) static RangeRange.xRange(Rectangle rect, SpatialContext ctx) Deprecated.static RangeRange.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 RectangleJtsGeometry.computeGeoBBox(org.locationtech.jts.geom.Geometry geoms) Givengeomswhich 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