Uses of Interface
org.locationtech.spatial4j.shape.Point
Packages that use Point
Package
Description
SpatialContext implementations are the facade to the Spatial4j API.
Ways to calculate distance.
Reading & writing shapes in various forms.
Optional support to read/write Shapes and Geometry using Jackson
Shapes are the core geometry objects that Spatial4j provides.
-
Uses of Point in org.locationtech.spatial4j.context
Methods in org.locationtech.spatial4j.context that return PointMethods in org.locationtech.spatial4j.context with parameters of type PointModifier and TypeMethodDescriptiondouble
SpatialContext.calcDistance
(Point p, double x2, double y2) Convenience that usesSpatialContext.getDistCalc()
double
SpatialContext.calcDistance
(Point p, Point p2) Convenience that usesSpatialContext.getDistCalc()
SpatialContext.makeCircle
(Point point, double distance) Deprecated.SpatialContext.makeRectangle
(Point lowerLeft, Point upperRight) Deprecated.Method parameters in org.locationtech.spatial4j.context with type arguments of type PointModifier and TypeMethodDescriptionSpatialContext.makeBufferedLineString
(List<Point> points, double buf) Deprecated.SpatialContext.makeLineString
(List<Point> points) Deprecated. -
Uses of Point in org.locationtech.spatial4j.distance
Methods in org.locationtech.spatial4j.distance that return PointModifier and TypeMethodDescriptionCartesianDistCalc.pointOnBearing
(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse) DistanceCalculator.pointOnBearing
(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse) Calculates where a destination point is given an origin (from
) distance, and bearing (given in degrees -- 0-360).GeodesicSphereDistCalc.pointOnBearing
(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse) static Point
DistanceUtils.pointOnBearingRAD
(double startLat, double startLon, double distanceRAD, double bearingRAD, SpatialContext ctx, Point reuse) Given a start point (startLat, startLon), distance, and a bearing on a sphere, return the destination point.Methods in org.locationtech.spatial4j.distance with parameters of type PointModifier 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) double
CartesianDistCalc.calcBoxByDistFromPt_yHorizAxisDEG
(Point from, double distDEG, SpatialContext ctx) double
DistanceCalculator.calcBoxByDistFromPt_yHorizAxisDEG
(Point from, double distDEG, SpatialContext ctx) TheY
coordinate of the horizontal axis of a circle that has maximum width.double
GeodesicSphereDistCalc.calcBoxByDistFromPt_yHorizAxisDEG
(Point from, double distDEG, SpatialContext ctx) double
double
double
The distance betweenfrom
andPoint(toX,toY)
.double
The distance betweenfrom
andto
.final double
double
CartesianDistCalc.distanceToLineSegment
(Point point, double vX, double vY, double wX, double wY) Distance from point to a line segment formed between points 'v' and 'w'.CartesianDistCalc.pointOnBearing
(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse) DistanceCalculator.pointOnBearing
(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse) Calculates where a destination point is given an origin (from
) distance, and bearing (given in degrees -- 0-360).GeodesicSphereDistCalc.pointOnBearing
(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse) static Point
DistanceUtils.pointOnBearingRAD
(double startLat, double startLon, double distanceRAD, double bearingRAD, SpatialContext ctx, Point reuse) Given a start point (startLat, startLon), distance, and a bearing on a sphere, return the destination point.boolean
boolean
boolean
Returns true if the distance between from and to is <= distance. -
Uses of Point in org.locationtech.spatial4j.io
Fields in org.locationtech.spatial4j.io declared as PointMethods in org.locationtech.spatial4j.io that return PointModifier and TypeMethodDescriptionstatic Point
GeohashUtils.decode
(String geohash, SpatialContext ctx) Decodes the given geohash into a longitude (X) and latitude (Y)OnePointsBuilder.getPoint()
private static Point
LegacyShapeReader.readLatCommaLonPoint
(String value, SpatialContext ctx) Deprecated.Reads geospatial latitude then a comma then longitude.Methods in org.locationtech.spatial4j.io with parameters of type PointModifier and TypeMethodDescriptionprotected StringBuilder
WKTWriter.append
(StringBuilder buffer, Point p, NumberFormat nf) void
BinaryCodec.writePoint
(DataOutput dataOutput, Point pt) -
Uses of Point in org.locationtech.spatial4j.io.jackson
Methods in org.locationtech.spatial4j.io.jackson that return PointModifier and TypeMethodDescriptionShapeDeserializer.readPoint
(com.fasterxml.jackson.databind.node.ArrayNode arr, ShapeFactory factory) -
Uses of Point in org.locationtech.spatial4j.shape
Methods in org.locationtech.spatial4j.shape that return PointModifier and TypeMethodDescriptionShape.getCenter()
Returns the center point of this shape.ShapeCollection.getCenter()
default Point
ShapeFactory.pointLatLon
(double latitude, double longitude) Construct a point of latitude, longitude coordinatesShapeFactory.pointXY
(double x, double y) Construct a point.ShapeFactory.pointXYZ
(double x, double y, double z) Construct a point of 3 dimensions.Methods in org.locationtech.spatial4j.shape with parameters of type PointModifier and TypeMethodDescriptionConstruct a circle.Construct a rectangle.Method parameters in org.locationtech.spatial4j.shape with type arguments of type PointModifier and TypeMethodDescriptionShapeFactory.lineString
(List<Point> points, double buf) Deprecated. -
Uses of Point in org.locationtech.spatial4j.shape.impl
Classes in org.locationtech.spatial4j.shape.impl that implement PointFields in org.locationtech.spatial4j.shape.impl declared as PointModifier and TypeFieldDescriptionprivate final Point
BufferedLine.pA
private final Point
BufferedLine.pB
protected final Point
CircleImpl.point
Methods in org.locationtech.spatial4j.shape.impl that return PointModifier and TypeMethodDescriptionBufferedLine.getA()
BufferedLine.getB()
BufferedLine.getCenter()
BufferedLineString.getCenter()
CircleImpl.getCenter()
RectangleImpl.getCenter()
ShapeFactoryImpl.pointXY
(double x, double y) ShapeFactoryImpl.pointXYZ
(double x, double y, double z) Methods in org.locationtech.spatial4j.shape.impl that return types with arguments of type PointMethods in org.locationtech.spatial4j.shape.impl with parameters of type PointModifier and TypeMethodDescriptionboolean
(package private) boolean
static void
InfBufLine.cornerByQuadrant
(Rectangle r, int cornerQuad, Point out) double
InfBufLine.distanceUnbuffered
(Point c) INTERNAL AKA lineToPointDistancestatic boolean
AllPoint
implementations should use this definition ofObject.equals(Object)
.static double
BufferedLine.expandBufForLongitudeSkew
(Point pA, Point pB, double buf) CallsDistanceUtils.calcLonDegreesAtLat(double, double)
given pA or pB's latitude; whichever is farthest.static int
AllPoint
implementations should use this definition ofObject.hashCode()
.int
INTERNAL: AKA lineToPointQuadrant(package private) SpatialRelation
Method parameters in org.locationtech.spatial4j.shape.impl with type arguments of type PointConstructors in org.locationtech.spatial4j.shape.impl with parameters of type PointModifierConstructorDescriptionBufferedLine
(Point pA, Point pB, double buf, SpatialContext ctx) Creates a buffered line from pA to pB.CircleImpl
(Point p, double radiusDEG, SpatialContext ctx) GeoCircle
(Point p, double radiusDEG, SpatialContext ctx) (package private)
InfBufLine
(double slope, Point point, double buf) RectangleImpl
(Point lowerLeft, Point upperRight, SpatialContext ctx) A convenience constructor which pulls out the coordinates.Constructor parameters in org.locationtech.spatial4j.shape.impl with type arguments of type PointModifierConstructorDescriptionBufferedLineString
(List<Point> points, double buf, boolean expandBufForLongitudeSkew, SpatialContext ctx) BufferedLineString
(List<Point> points, double buf, SpatialContext ctx) Needs at least 1 point, usually more than that. -
Uses of Point in org.locationtech.spatial4j.shape.jts
Classes in org.locationtech.spatial4j.shape.jts that implement PointMethods in org.locationtech.spatial4j.shape.jts that return PointModifier and TypeMethodDescriptionJtsPoint.getCenter()
JtsShapeFactory.pointXY
(double x, double y) JtsShapeFactory.pointXYZ
(double x, double y, double z) Methods in org.locationtech.spatial4j.shape.jts with parameters of type PointMethod parameters in org.locationtech.spatial4j.shape.jts with type arguments of type PointModifier and TypeMethodDescriptionJtsShapeFactory.lineString
(List<Point> points, double bufferDistance)