Uses of Interface
org.locationtech.spatial4j.shape.Point
-
Packages that use Point Package Description org.locationtech.spatial4j.context SpatialContext implementations are the facade to the Spatial4j API.org.locationtech.spatial4j.distance Ways to calculate distance.org.locationtech.spatial4j.io Reading & writing shapes in various forms.org.locationtech.spatial4j.io.jackson Optional support to read/write Shapes and Geometry using Jacksonorg.locationtech.spatial4j.shape Shapes are the core geometry objects that Spatial4j provides.org.locationtech.spatial4j.shape.impl org.locationtech.spatial4j.shape.jts -
-
Uses of Point in org.locationtech.spatial4j.context
Methods in org.locationtech.spatial4j.context that return Point Modifier and Type Method Description Point
SpatialContext. makePoint(double x, double y)
Deprecated.Methods in org.locationtech.spatial4j.context with parameters of type Point Modifier and Type Method Description double
SpatialContext. calcDistance(Point p, double x2, double y2)
Convenience that usesSpatialContext.getDistCalc()
double
SpatialContext. calcDistance(Point p, Point p2)
Convenience that usesSpatialContext.getDistCalc()
Circle
SpatialContext. makeCircle(Point point, double distance)
Deprecated.Rectangle
SpatialContext. makeRectangle(Point lowerLeft, Point upperRight)
Deprecated.Method parameters in org.locationtech.spatial4j.context with type arguments of type Point Modifier and Type Method Description Shape
SpatialContext. makeBufferedLineString(List<Point> points, double buf)
Deprecated.Shape
SpatialContext. makeLineString(List<Point> points)
Deprecated. -
Uses of Point in org.locationtech.spatial4j.distance
Methods in org.locationtech.spatial4j.distance that return Point Modifier and Type Method Description Point
CartesianDistCalc. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)
Point
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).Point
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 Point Modifier and Type Method Description Rectangle
CartesianDistCalc. calcBoxByDistFromPt(Point from, double distDEG, SpatialContext ctx, Rectangle reuse)
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
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
AbstractDistanceCalculator. distance(Point from, Point to)
double
CartesianDistCalc. distance(Point from, double toX, double toY)
double
DistanceCalculator. distance(Point from, double toX, double toY)
The distance betweenfrom
andPoint(toX,toY)
.double
DistanceCalculator. distance(Point from, Point to)
The distance betweenfrom
andto
.double
GeodesicSphereDistCalc. distance(Point from, double toX, double toY)
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'.Point
CartesianDistCalc. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)
Point
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).Point
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
AbstractDistanceCalculator. within(Point from, double toX, double toY, double distance)
boolean
CartesianDistCalc. within(Point from, double toX, double toY, double distance)
boolean
DistanceCalculator. within(Point from, double toX, double toY, double distance)
Returns true if the distance between from and to is <= distance. -
Uses of Point in org.locationtech.spatial4j.io
Methods in org.locationtech.spatial4j.io that return Point Modifier and Type Method Description static Point
GeohashUtils. decode(String geohash, SpatialContext ctx)
Decodes the given geohash into a longitude (X) and latitude (Y)Point
OnePointsBuilder. getPoint()
Point
BinaryCodec. readPoint(DataInput dataInput)
Methods in org.locationtech.spatial4j.io with parameters of type Point Modifier and Type Method Description protected 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 Point Modifier and Type Method Description Point
ShapeDeserializer. 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 Point Modifier and Type Method Description Point
Shape. getCenter()
Returns the center point of this shape.Point
ShapeCollection. getCenter()
Point
ShapeFactory. pointXY(double x, double y)
Construct a point.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 Point Modifier and Type Method Description Circle
ShapeFactory. circle(Point point, double distance)
Construct a circle.Rectangle
ShapeFactory. rect(Point lowerLeft, Point upperRight)
Construct a rectangle.Method parameters in org.locationtech.spatial4j.shape with type arguments of type Point Modifier and Type Method Description Shape
ShapeFactory. 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 Point Modifier and Type Class Description class
PointImpl
A basic 2D implementation of a Point.Fields in org.locationtech.spatial4j.shape.impl declared as Point Modifier and Type Field Description protected Point
CircleImpl. point
Methods in org.locationtech.spatial4j.shape.impl that return Point Modifier and Type Method Description Point
BufferedLine. getA()
Point
BufferedLine. getB()
Point
BufferedLine. getCenter()
Point
BufferedLineString. getCenter()
Point
CircleImpl. getCenter()
Point
RectangleImpl. getCenter()
Point
ShapeFactoryImpl. pointXY(double x, double y)
Point
ShapeFactoryImpl. pointXYZ(double x, double y, double z)
Methods in org.locationtech.spatial4j.shape.impl that return types with arguments of type Point Modifier and Type Method Description List<Point>
BufferedLineString. getPoints()
Methods in org.locationtech.spatial4j.shape.impl with parameters of type Point Modifier and Type Method Description Circle
ShapeFactoryImpl. circle(Point point, double distance)
boolean
BufferedLine. contains(Point p)
static void
InfBufLine. cornerByQuadrant(Rectangle r, int cornerQuad, Point out)
double
InfBufLine. distanceUnbuffered(Point c)
INTERNAL AKA lineToPointDistancestatic boolean
PointImpl. equals(Point thiz, Object o)
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
PointImpl. hashCode(Point thiz)
AllPoint
implementations should use this definition ofObject.hashCode()
.int
InfBufLine. quadrant(Point c)
INTERNAL: AKA lineToPointQuadrantRectangle
ShapeFactoryImpl. rect(Point lowerLeft, Point upperRight)
SpatialRelation
CircleImpl. relate(Point point)
SpatialRelation
RectangleImpl. relate(Point point)
Method parameters in org.locationtech.spatial4j.shape.impl with type arguments of type Point Modifier and Type Method Description Shape
ShapeFactoryImpl. lineString(List<Point> points, double buf)
Constructors in org.locationtech.spatial4j.shape.impl with parameters of type Point Constructor Description BufferedLine(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)
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 Point Constructor Description BufferedLineString(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 Point Modifier and Type Class Description class
JtsPoint
Wraps aPoint
.Methods in org.locationtech.spatial4j.shape.jts that return Point Modifier and Type Method Description Point
JtsPoint. getCenter()
Point
JtsShapeFactory. pointXY(double x, double y)
Point
JtsShapeFactory. pointXYZ(double x, double y, double z)
Methods in org.locationtech.spatial4j.shape.jts with parameters of type Point Modifier and Type Method Description SpatialRelation
JtsGeometry. relate(Point pt)
Method parameters in org.locationtech.spatial4j.shape.jts with type arguments of type Point Modifier and Type Method Description Shape
JtsShapeFactory. lineString(List<Point> points, double bufferDistance)
-