Skip navigation links
Spatial4j, 0.8
A B C D E G H I J K L M N O P Q R S T U V W X Y 

A

AbstractDistanceCalculator - Class in org.locationtech.spatial4j.distance
 
AbstractDistanceCalculator() - Constructor for class org.locationtech.spatial4j.distance.AbstractDistanceCalculator
 
add(T) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
add(ShapeFactory.LineStringBuilder) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
add(ShapeFactory.PolygonBuilder) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
add(ShapeFactory.LineStringBuilder) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.MultiLineStringBuilder
 
add(ShapeFactory.PolygonBuilder) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.MultiPolygonBuilder
 
add(T) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.MultiShapeBuilder
 
addReaderIfNoggitExists(Class<? extends ShapeReader>) - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
 
allowMultiOverlap - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
allowMultiOverlap - Variable in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
append(StringBuilder, Point, NumberFormat) - Method in class org.locationtech.spatial4j.io.WKTWriter
 
area(Rectangle) - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
area(Circle) - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
area(Rectangle) - Method in interface org.locationtech.spatial4j.distance.DistanceCalculator
 
area(Circle) - Method in interface org.locationtech.spatial4j.distance.DistanceCalculator
 
area(Rectangle) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
area(Circle) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
args - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
autoIndex - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
autoIndex - Variable in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 

B

BaseShape<T extends SpatialContext> - Class in org.locationtech.spatial4j.shape
 
BaseShape(T) - Constructor for class org.locationtech.spatial4j.shape.BaseShape
 
bbox - Variable in class org.locationtech.spatial4j.shape.ShapeCollection
 
BBoxCalculator - Class in org.locationtech.spatial4j.shape.impl
(INTERNAL) Calculates the minimum bounding box given a bunch of rectangles (ranges).
BBoxCalculator(SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 
BBoxIntersects - Static variable in class org.locationtech.spatial4j.SpatialPredicate
Bounding box of the *indexed* shape, then SpatialPredicate.Intersects.
BBoxWithin - Static variable in class org.locationtech.spatial4j.SpatialPredicate
Bounding box of the *indexed* shape, then SpatialPredicate.IsWithin.
BinaryCodec - Class in org.locationtech.spatial4j.io
A binary shape format.
BinaryCodec(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.BinaryCodec
 
binaryCodecClass - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
 
BUFFER - Static variable in class org.locationtech.spatial4j.io.GeoJSONReader
 
buffer(double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.LineStringBuilder
 
BUFFER_UNITS - Static variable in class org.locationtech.spatial4j.io.GeoJSONReader
 
BufferedLine - Class in org.locationtech.spatial4j.shape.impl
INTERNAL: A line between two points with a buffer distance extending in every direction.
BufferedLine(Point, Point, double, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.BufferedLine
Creates a buffered line from pA to pB.
BufferedLineString - Class in org.locationtech.spatial4j.shape.impl
A BufferedLineString is a collection of BufferedLine shapes, resulting in what some call a "Track" or "Polyline" (ESRI terminology).
BufferedLineString(List<Point>, double, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.BufferedLineString
Needs at least 1 point, usually more than that.
BufferedLineString(List<Point>, double, boolean, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
build() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
build() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.LineStringBuilder
 
build() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.MultiLineStringBuilder
 
build() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.MultiPointBuilder
 
build() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.MultiPolygonBuilder
 
build() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.MultiShapeBuilder
 
build() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder
Builds the polygon and renders this builder instance invalid.
buildOrRect() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder
 

C

calcBoxByDistFromPt(Point, double, SpatialContext, Rectangle) - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
calcBoxByDistFromPt(Point, double, SpatialContext, Rectangle) - Method in interface org.locationtech.spatial4j.distance.DistanceCalculator
Calculates the bounding box of a circle, as specified by its center point and distance.
calcBoxByDistFromPt(Point, double, SpatialContext, Rectangle) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
calcBoxByDistFromPt_deltaLonDEG(double, double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
The delta longitude of a point-distance.
calcBoxByDistFromPt_latHorizAxisDEG(double, double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
The latitude of the horizontal axis (e.g.
calcBoxByDistFromPt_yHorizAxisDEG(Point, double, SpatialContext) - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
calcBoxByDistFromPt_yHorizAxisDEG(Point, double, SpatialContext) - Method in interface org.locationtech.spatial4j.distance.DistanceCalculator
The Y coordinate of the horizontal axis of a circle that has maximum width.
calcBoxByDistFromPt_yHorizAxisDEG(Point, double, SpatialContext) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
calcBoxByDistFromPtDEG(double, double, double, SpatialContext, Rectangle) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Calculates the bounding box of a circle, as specified by its center point and distance.
calcDistance(Point, double, double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Convenience that uses SpatialContext.getDistCalc()
calcDistance(Point, Point) - Method in class org.locationtech.spatial4j.context.SpatialContext
Convenience that uses SpatialContext.getDistCalc()
calcLonDegreesAtLat(double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Calculates the degrees longitude distance at latitude lat to cover a distance dist.
CartesianDistCalc - Class in org.locationtech.spatial4j.distance
Calculates based on Euclidean / Cartesian 2d plane.
CartesianDistCalc() - Constructor for class org.locationtech.spatial4j.distance.CartesianDistCalc
 
CartesianDistCalc(boolean) - Constructor for class org.locationtech.spatial4j.distance.CartesianDistCalc
 
checkCoordinates(Geometry) - Method in class org.locationtech.spatial4j.io.jts.JtsWKTReaderShapeParser
Deprecated.
 
checkDefaultFormats() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
checkDefaultFormats() - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
If no formats were defined in the config, this will make sure GeoJSON and WKT are registered
Circle - Interface in org.locationtech.spatial4j.shape
A circle, also known as a point-radius since that is what it is comprised of.
circle(double, double, double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
circle(Point, double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
circle(double, double, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Construct a circle.
circle(Point, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Construct a circle.
CircleImpl - Class in org.locationtech.spatial4j.shape.impl
A circle, also known as a point-radius, based on a DistanceCalculator which does all the work.
CircleImpl(Point, double, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.CircleImpl
 
classLoader - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
combine(SpatialRelation) - Method in enum org.locationtech.spatial4j.shape.SpatialRelation
If you were to call aShape.relate(bShape) and aShape.relate(cShape), you could call this to merge the intersect results as if bShape & cShape were combined into ShapeCollection.
compareTo(Range.LongitudeRange) - Method in class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
computeBoundingBox(Collection<? extends Shape>, SpatialContext) - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
computeGeoBBox(Geometry) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
Given geoms which has already been checked for being in world bounds, return the minimal longitude range of the bounding box.
computeMutualDisjoint(List<? extends Shape>) - Static method in class org.locationtech.spatial4j.shape.ShapeCollection
Computes whether the shapes are mutually disjoint.
contains(Point) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
contains(double, double) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
contains(double) - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
contains(double) - Method in class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
Contains - Static variable in class org.locationtech.spatial4j.SpatialPredicate
Meets the "Covers" OGC definition (boundary-neutral).
coordinateSequenceFactory - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
cornerByQuadrant(Rectangle, int, Point) - Static method in class org.locationtech.spatial4j.shape.impl.InfBufLine
 
crossesDateline() - Method in class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
ctx - Variable in class org.locationtech.spatial4j.io.BinaryCodec
 
ctx - Variable in class org.locationtech.spatial4j.io.GeoJSONReader
 
ctx - Variable in class org.locationtech.spatial4j.io.jackson.ShapeDeserializer
 
ctx - Variable in class org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
 
ctx - Variable in class org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter
 
ctx - Variable in class org.locationtech.spatial4j.io.WKTReader
 
ctx - Variable in class org.locationtech.spatial4j.shape.BaseShape
 
ctx - Variable in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
ctx - Variable in class org.locationtech.spatial4j.shape.ShapeCollection
 

D

DatelineRule - Enum in org.locationtech.spatial4j.context.jts
Indicates the algorithm used to process JTS Polygons and JTS LineStrings for detecting dateline (aka anti-meridian) crossings.
datelineRule - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
datelineRule - Variable in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
decode(String, SpatialContext) - Static method in class org.locationtech.spatial4j.io.GeohashUtils
Decodes the given geohash into a longitude (X) and latitude (Y)
decodeBoundary(String, SpatialContext) - Static method in class org.locationtech.spatial4j.io.GeohashUtils
Returns min-max lon (X), min-max lat (Y).
defaultPrecisionModel - Static variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
DEG_180_AS_RADS - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 
DEG_225_AS_RADS - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
Deprecated.
DEG_270_AS_RADS - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
Deprecated.
DEG_45_AS_RADS - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
Deprecated.
DEG_90_AS_RADS - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 
DEG_TO_KM - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
Equivalent to degrees2Dist(1, EARTH_MEAN_RADIUS_KM)
degrees2Dist(double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Converts degrees (1/360th of circumference of a circle) into a distance as measured by the units of the radius.
DEGREES_TO_RADIANS - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 
deltaLen(Range) - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
deserialize(JsonParser, DeserializationContext) - Method in class org.locationtech.spatial4j.io.jackson.GeometryDeserializer
 
deserialize(JsonParser, DeserializationContext) - Method in class org.locationtech.spatial4j.io.jackson.ShapeDeserializer
 
dimension - Variable in class org.locationtech.spatial4j.io.WKTReader.State
Dimensionality specifier (e.g.
dist2Degrees(double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Converts a distance in the units of the radius to degrees (360 degrees are in a circle).
dist2Radians(double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Converts a distance in the units of radius (e.g.
distance(Point, Point) - Method in class org.locationtech.spatial4j.distance.AbstractDistanceCalculator
 
distance(Point, double, double) - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
distance(Point, Point) - Method in interface org.locationtech.spatial4j.distance.DistanceCalculator
The distance between from and to.
distance(Point, double, double) - Method in interface org.locationtech.spatial4j.distance.DistanceCalculator
The distance between from and Point(toX,toY).
distance(Point, double, double) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
DistanceCalculator - Interface in org.locationtech.spatial4j.distance
Performs calculations relating to distance, such as the distance between a pair of points.
distanceLatLonRAD(double, double, double, double) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
distanceLatLonRAD(double, double, double, double) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc.Haversine
 
distanceLatLonRAD(double, double, double, double) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc.LawOfCosines
 
distanceLatLonRAD(double, double, double, double) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc.Vincenty
 
distanceToLineSegment(Point, double, double, double, double) - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
Distance from point to a line segment formed between points 'v' and 'w'.
distanceUnbuffered(Point) - Method in class org.locationtech.spatial4j.shape.impl.InfBufLine
INTERNAL AKA lineToPointDistance
DistanceUtils - Class in org.locationtech.spatial4j.distance
Various distance calculations and constants.
distCalc - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
 
distHaversineRAD(double, double, double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
 
distLawOfCosinesRAD(double, double, double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Calculates the distance between two lat-lon's using the Law of Cosines.
distSquaredCartesian(double[], double[]) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Deprecated.
distVincentyRAD(double, double, double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Calculates the great circle distance using the Vincenty Formula, simplified for a spherical model.
doesXWorldWrap() - Method in class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 

E

EARTH_EQUATORIAL_RADIUS_KM - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 
EARTH_EQUATORIAL_RADIUS_MI - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 
EARTH_MEAN_RADIUS_KM - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
The International Union of Geodesy and Geophysics says the Earth's mean radius in KM is: [1] http://en.wikipedia.org/wiki/Earth_radius
EARTH_MEAN_RADIUS_MI - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 
EMPTY_HOLES - Static variable in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
enclosingBox - Variable in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
encodeLatLon(double, double) - Static method in class org.locationtech.spatial4j.io.GeohashUtils
Encodes the given latitude and longitude into a geohash
encodeLatLon(double, double, int) - Static method in class org.locationtech.spatial4j.io.GeohashUtils
 
Encoder(Writer) - Constructor for class org.locationtech.spatial4j.io.PolyshapeWriter.Encoder
 
endHole() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder.HoleBuilder
Finishes the hole and returns the ShapeFactory.PolygonBuilder.
eof() - Method in class org.locationtech.spatial4j.io.WKTReader.State
If the string is consumed, i.e.
equals(Object) - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
equals(Object) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
equals(Object) - Method in class org.locationtech.spatial4j.io.jackson.ShapesAsGeoJSONModule
 
equals(Object) - Method in class org.locationtech.spatial4j.io.jackson.ShapesAsWKTModule
 
equals(Object) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
equals(Object) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
equals(Object) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
equals(Circle, Object) - Static method in class org.locationtech.spatial4j.shape.impl.CircleImpl
All Circle implementations should use this definition of Object.equals(Object).
equals(Object) - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
equals(Point, Object) - Static method in class org.locationtech.spatial4j.shape.impl.PointImpl
All Point implementations should use this definition of Object.equals(Object).
equals(Object) - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
equals(Object) - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
equals(Rectangle, Object) - Static method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
All Rectangle implementations should use this definition of Object.equals(Object).
equals(Object) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
equals(Object) - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
equals(Object) - Method in interface org.locationtech.spatial4j.shape.Shape
The sub-classes of Shape generally implement the same contract for Object.equals(Object) and Object.hashCode() amongst the same sub-interface type.
equals(Object) - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
evaluate(Shape, Shape) - Method in class org.locationtech.spatial4j.SpatialPredicate
Returns whether the relationship between indexedShape and queryShape is satisfied by this operation.
expandBufForLongitudeSkew(Point, Point, double) - Static method in class org.locationtech.spatial4j.shape.impl.BufferedLine
Calls DistanceUtils.calcLonDegreesAtLat(double, double) given pA or pB's latitude; whichever is farthest.
expandRange(Rectangle) - Method in class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 
expandRange(double, double, double, double) - Method in class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 
expandTo(Range) - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
expandTo(Range) - Method in class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
expandTo(Range.LongitudeRange) - Method in class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
expandXRange(double, double) - Method in class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 

G

GeneralShapeMultiShapeBuilder() - Constructor for class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
GEO - Static variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
 
GEO - Static variable in class org.locationtech.spatial4j.context.SpatialContext
A popular default SpatialContext implementation for geospatial.
geo - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
 
GeoCircle - Class in org.locationtech.spatial4j.shape.impl
A circle as it exists on the surface of a sphere.
GeoCircle(Point, double, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.GeoCircle
 
GeodesicSphereDistCalc - Class in org.locationtech.spatial4j.distance
A base class for a Distance Calculator that assumes a spherical earth model.
GeodesicSphereDistCalc() - Constructor for class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
GeodesicSphereDistCalc.Haversine - Class in org.locationtech.spatial4j.distance
 
GeodesicSphereDistCalc.LawOfCosines - Class in org.locationtech.spatial4j.distance
 
GeodesicSphereDistCalc.Vincenty - Class in org.locationtech.spatial4j.distance
 
GeohashUtils - Class in org.locationtech.spatial4j.io
Utilities for encoding and decoding geohashes.
GeoJSON - Static variable in interface org.locationtech.spatial4j.io.ShapeIO
 
GeoJSONReader - Class in org.locationtech.spatial4j.io
 
GeoJSONReader(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.GeoJSONReader
 
GeoJSONWriter - Class in org.locationtech.spatial4j.io
 
GeoJSONWriter(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.GeoJSONWriter
 
GeometryAsGeoJSONSerializer - Class in org.locationtech.spatial4j.io.jackson
 
GeometryAsGeoJSONSerializer() - Constructor for class org.locationtech.spatial4j.io.jackson.GeometryAsGeoJSONSerializer
 
GeometryAsWKTSerializer - Class in org.locationtech.spatial4j.io.jackson
 
GeometryAsWKTSerializer() - Constructor for class org.locationtech.spatial4j.io.jackson.GeometryAsWKTSerializer
 
GeometryDeserializer - Class in org.locationtech.spatial4j.io.jackson
 
GeometryDeserializer() - Constructor for class org.locationtech.spatial4j.io.jackson.GeometryDeserializer
 
geometryFactory - Variable in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
get(int) - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
get(String) - Static method in class org.locationtech.spatial4j.SpatialPredicate
 
getA() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
getArea(SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
getArea(SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
getArea(SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
getArea(SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
getArea(SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getArea(SpatialContext) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
getArea(SpatialContext) - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
getArea(SpatialContext) - Method in interface org.locationtech.spatial4j.shape.Shape
Calculates the area of the shape, in square-degrees.
getArea(SpatialContext) - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
getB() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
getBinaryCodec() - Method in class org.locationtech.spatial4j.context.SpatialContext
 
getBoundary() - Method in class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 
getBoundingBox() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
getBoundingBox() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
getBoundingBox() - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
Note that the bounding box might contain a minX that is > maxX, due to WGS84 anti-meridian.
getBoundingBox() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
getBoundingBox() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getBoundingBox() - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
getBoundingBox() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
getBoundingBox() - Method in interface org.locationtech.spatial4j.shape.Shape
Get the bounding box for this Shape.
getBoundingBox() - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
getBuf() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
getBuf() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
getBuf() - Method in class org.locationtech.spatial4j.shape.impl.InfBufLine
 
getBuffered(double, SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
getBuffered(double, SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
getBuffered(double, SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
getBuffered(double, SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
getBuffered(double, SpatialContext) - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getBuffered(double, SpatialContext) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
getBuffered(double, SpatialContext) - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
getBuffered(double, SpatialContext) - Method in interface org.locationtech.spatial4j.shape.Shape
Returns a buffered version of this shape.
getBuffered(double, SpatialContext) - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
getCenter() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
getCenter() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
getCenter() - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
getCenter() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
getCenter() - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
getCenter() - Method in class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
getCenter() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getCenter() - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
getCenter() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
getCenter() - Method in interface org.locationtech.spatial4j.shape.Shape
Returns the center point of this shape.
getCenter() - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
getContext() - Method in class org.locationtech.spatial4j.shape.BaseShape
 
getContext() - Method in interface org.locationtech.spatial4j.shape.Shape
Get the SpatialContext that created the Shape
getContext() - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
getCrossesDateLine() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getCrossesDateLine() - Method in interface org.locationtech.spatial4j.shape.Rectangle
Only meaningful for geospatial contexts.
getCtx() - Method in class org.locationtech.spatial4j.io.WKTReader.State
 
getDatelineRule() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
getDatelineRule() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
Returns the rule used to handle geometry objects that have dateline (aka anti-meridian) crossing considerations.
getDistCalc() - Method in class org.locationtech.spatial4j.context.SpatialContext
 
getDistDenomInv() - Method in class org.locationtech.spatial4j.shape.impl.InfBufLine
1 / Math.sqrt(slope * slope + 1)
getFormatName() - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
getFormatName() - Method in class org.locationtech.spatial4j.io.GeoJSONWriter
 
getFormatName() - Method in class org.locationtech.spatial4j.io.LegacyShapeReader
Deprecated.
 
getFormatName() - Method in class org.locationtech.spatial4j.io.LegacyShapeWriter
Deprecated.
 
getFormatName() - Method in class org.locationtech.spatial4j.io.PolyshapeReader
 
getFormatName() - Method in class org.locationtech.spatial4j.io.PolyshapeWriter
 
getFormatName() - Method in interface org.locationtech.spatial4j.io.ShapeIO
 
getFormatName() - Method in class org.locationtech.spatial4j.io.WKTReader
 
getFormatName() - Method in class org.locationtech.spatial4j.io.WKTWriter
 
getFormats() - Method in class org.locationtech.spatial4j.context.SpatialContext
 
getGeoJsonReader() - Method in class org.locationtech.spatial4j.io.SupportedFormats
 
getGeoJsonWriter() - Method in class org.locationtech.spatial4j.io.SupportedFormats
 
getGeom() - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
getGeom() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
getGeometryFactory() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
getGeometryFactory() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
getGeometryFactory() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
getGeometryFrom(Shape) - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
getGeometryFrom(Shape) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
Gets a JTS Geometry for the given Shape.
getHeight() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getHeight() - Method in interface org.locationtech.spatial4j.shape.Rectangle
The height.
getIntercept() - Method in class org.locationtech.spatial4j.shape.impl.InfBufLine
 
getLat() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
getLat() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
getLat() - Method in interface org.locationtech.spatial4j.shape.Point
Convenience method that usually maps on Point.getY()
getLinePerp() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
INTERNAL
getLinePrimary() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
INTERNAL
getLon() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
getLon() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
getLon() - Method in interface org.locationtech.spatial4j.shape.Point
Convenience method that usually maps on Point.getX()
getMax() - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
getMaxX() - Method in class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 
getMaxX() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getMaxX() - Method in interface org.locationtech.spatial4j.shape.Rectangle
The right edge of the X coordinate.
getMaxY() - Method in class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 
getMaxY() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getMaxY() - Method in interface org.locationtech.spatial4j.shape.Rectangle
The top edge of the Y coordinate.
getMin() - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
getMinX() - Method in class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 
getMinX() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getMinX() - Method in interface org.locationtech.spatial4j.shape.Rectangle
The left edge of the X coordinate.
getMinY() - Method in class org.locationtech.spatial4j.shape.impl.BBoxCalculator
 
getMinY() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getMinY() - Method in interface org.locationtech.spatial4j.shape.Rectangle
The bottom edge of the Y coordinate.
getModuleName() - Method in class org.locationtech.spatial4j.io.jackson.ShapesAsGeoJSONModule
 
getModuleName() - Method in class org.locationtech.spatial4j.io.jackson.ShapesAsWKTModule
 
getName() - Method in class org.locationtech.spatial4j.SpatialPredicate
 
getNumberFormat() - Method in class org.locationtech.spatial4j.io.WKTWriter
 
getParser() - Method in class org.locationtech.spatial4j.io.WKTReader.State
 
getPoint() - Method in class org.locationtech.spatial4j.io.OnePointsBuilder
 
getPoints() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
getRadius() - Method in interface org.locationtech.spatial4j.shape.Circle
The distance from the point's center to its edge, measured in the same units as x & y (e.g.
getRadius() - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
getReader(String) - Method in class org.locationtech.spatial4j.io.SupportedFormats
 
getReaders() - Method in class org.locationtech.spatial4j.io.SupportedFormats
 
getSegments() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
getShapeFactory() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
 
getShapeFactory() - Method in class org.locationtech.spatial4j.context.SpatialContext
A factory for Shapes.
getShapes() - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
getSlope() - Method in class org.locationtech.spatial4j.shape.impl.InfBufLine
 
getSpatialContext() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
getSpatialContext() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
 
getSubGeohashes(String) - Static method in class org.locationtech.spatial4j.io.GeohashUtils
Array of geohashes 1 level below the baseGeohash.
getValidationRule() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
getValidationRule() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
Returns the rule used to handle errors when creating a JTS Geometry, particularly after it has been read from one of the ShapeReaders.
getWidth() - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
getWidth() - Method in class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
getWidth() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
getWidth() - Method in interface org.locationtech.spatial4j.shape.Rectangle
The width.
getWktReader() - Method in class org.locationtech.spatial4j.io.SupportedFormats
 
getWktShapeParser() - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
getWktWriter() - Method in class org.locationtech.spatial4j.io.SupportedFormats
 
getWorldBounds() - Method in class org.locationtech.spatial4j.context.SpatialContext
The extent of x & y coordinates should fit within the return'ed rectangle.
getWriter(String) - Method in class org.locationtech.spatial4j.io.SupportedFormats
 
getWriters() - Method in class org.locationtech.spatial4j.io.SupportedFormats
 
getX() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
getX() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
getX() - Method in interface org.locationtech.spatial4j.shape.Point
The X coordinate, or Longitude in geospatial contexts.
getXAxis() - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
The X coordinate of where the circle axis intersect.
getY() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
getY() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
getY() - Method in interface org.locationtech.spatial4j.shape.Point
The Y coordinate, or Latitude in geospatial contexts.
getYAxis() - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
The Y coordinate of where the circle axis intersect.
getYAxis() - Method in class org.locationtech.spatial4j.shape.impl.GeoCircle
 

H

hasArea() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
hasArea() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
hasArea() - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
hasArea() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
hasArea() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
hasArea() - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
hasArea() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
hasArea() - Method in interface org.locationtech.spatial4j.shape.Shape
Does the shape have area? This will be false for points and lines.
hasArea() - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
hasFormatConfig - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
 
hashCode() - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
hashCode() - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
hashCode() - Method in class org.locationtech.spatial4j.io.jackson.ShapesAsGeoJSONModule
 
hashCode() - Method in class org.locationtech.spatial4j.io.jackson.ShapesAsWKTModule
 
hashCode() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
hashCode() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
hashCode() - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
hashCode(Circle) - Static method in class org.locationtech.spatial4j.shape.impl.CircleImpl
All Circle implementations should use this definition of Object.hashCode().
hashCode() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
hashCode(Point) - Static method in class org.locationtech.spatial4j.shape.impl.PointImpl
All Point implementations should use this definition of Object.hashCode().
hashCode() - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
hashCode() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
hashCode(Rectangle) - Static method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
All Rectangle implementations should use this definition of Object.hashCode().
hashCode() - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
hashCode() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
hashCode() - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
Haversine() - Constructor for class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc.Haversine
 
hole() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder
Starts a new hole.

I

index() - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
Adds an index to this class internally to compute spatial relations faster.
InfBufLine - Class in org.locationtech.spatial4j.shape.impl
INERNAL: A buffered line of infinite length.
init(Map<String, String>, ClassLoader) - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
init(Map<String, String>, ClassLoader) - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
 
initCalculator() - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
 
initField(String) - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
Gets name from args and populates a field by the same name with the value.
initFormats() - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
Check args for 'readers' and 'writers'.
initWorldBounds() - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
 
INSTANCE - Static variable in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
INSTANCE_SQUARED - Static variable in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
intersectionMatrixToSpatialRelation(IntersectionMatrix) - Static method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
intersects() - Method in enum org.locationtech.spatial4j.shape.SpatialRelation
Not DISJOINT, i.e.
Intersects - Static variable in class org.locationtech.spatial4j.SpatialPredicate
Meets the "Intersects" OGC definition.
InvalidShapeException - Exception in org.locationtech.spatial4j.exception
A shape was constructed but failed because, based on the given parts, it's invalid.
InvalidShapeException(String, Throwable) - Constructor for exception org.locationtech.spatial4j.exception.InvalidShapeException
 
InvalidShapeException(String) - Constructor for exception org.locationtech.spatial4j.exception.InvalidShapeException
 
inverse() - Method in enum org.locationtech.spatial4j.shape.SpatialRelation
If aShape.relate(bShape) is r, then r.inverse() is inverse(aShape).relate(bShape) whereas inverse(shape) is theoretically the opposite area covered by a shape, i.e.
is(SpatialPredicate, SpatialPredicate...) - Static method in class org.locationtech.spatial4j.SpatialPredicate
 
isAllowMultiOverlap() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
isAllowMultiOverlap() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
If geom might be a multi geometry of some kind, then might multiple component geometries overlap? Strict OGC says this is invalid but we can accept it by computing the union.
isAutoIndex() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
isAutoIndex() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
If JtsGeometry shapes should be automatically "prepared" (i.e.
isData() - Method in class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 
IsDisjointTo - Static variable in class org.locationtech.spatial4j.SpatialPredicate
Meets the "Disjoint" OGC definition.
isDone() - Method in class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 
isEmpty() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
isEmpty() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
isEmpty() - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
isEmpty() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
isEmpty() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
isEmpty() - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
isEmpty() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
isEmpty() - Method in interface org.locationtech.spatial4j.shape.Shape
Shapes can be "empty", which is to say it exists nowhere.
IsEqualTo - Static variable in class org.locationtech.spatial4j.SpatialPredicate
Meets the "Equals" OGC definition.
isEvent() - Method in class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 
isGeo() - Method in class org.locationtech.spatial4j.context.SpatialContext
Is the mathematical world model based on a sphere, or is it a flat plane? The word "geodetic" or "geodesic" is sometimes used to refer to the former, and the latter is sometimes referred to as "Euclidean" or "cartesian".
isNormWrapLongitude() - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
isNormWrapLongitude() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
isNormWrapLongitude() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
If true then ShapeFactory.normX(double) will wrap longitudes outside of the standard geodetic boundary into it.
IsWithin - Static variable in class org.locationtech.spatial4j.SpatialPredicate
Meets the "CoveredBy" OGC definition (boundary-neutral).

J

JtsBinaryCodec - Class in org.locationtech.spatial4j.io.jts
Writes shapes in WKB, if it isn't otherwise supported by the superclass.
JtsBinaryCodec(JtsSpatialContext, JtsSpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.jts.JtsBinaryCodec
 
JtsGeoJSONWriter - Class in org.locationtech.spatial4j.io.jts
 
JtsGeoJSONWriter(JtsSpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
 
JtsGeometry - Class in org.locationtech.spatial4j.shape.jts
Wraps a JTS Geometry (i.e.
JtsGeometry(Geometry, JtsSpatialContext, boolean, boolean) - Constructor for class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
JtsPoint - Class in org.locationtech.spatial4j.shape.jts
Wraps a Point.
JtsPoint(Point, JtsSpatialContext) - Constructor for class org.locationtech.spatial4j.shape.jts.JtsPoint
A simple constructor without normalization / validation.
JtsPolyshapeWriter - Class in org.locationtech.spatial4j.io.jts
 
JtsPolyshapeWriter(JtsSpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter
 
JtsShapeFactory - Class in org.locationtech.spatial4j.shape.jts
Enhances ShapeFactoryImpl with support for Polygons using JTS.
JtsShapeFactory(JtsSpatialContext, JtsSpatialContextFactory) - Constructor for class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
JtsSpatialContext - Class in org.locationtech.spatial4j.context.jts
Enhances the default SpatialContext with support for Polygons (and other geometries) using JTS.
JtsSpatialContext(JtsSpatialContextFactory) - Constructor for class org.locationtech.spatial4j.context.jts.JtsSpatialContext
JtsSpatialContextFactory - Class in org.locationtech.spatial4j.context.jts
JtsSpatialContextFactory() - Constructor for class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
JtsWKTReaderShapeParser - Class in org.locationtech.spatial4j.io.jts
Deprecated.
JtsWKTReaderShapeParser(JtsSpatialContext, JtsSpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.jts.JtsWKTReaderShapeParser
Deprecated.
 
JtsWKTWriter - Class in org.locationtech.spatial4j.io.jts
Writes the WKT using JTS directly
JtsWKTWriter(JtsSpatialContext, JtsSpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.jts.JtsWKTWriter
 

K

KEY_ARG_END - Static variable in class org.locationtech.spatial4j.io.PolyshapeWriter
 
KEY_ARG_START - Static variable in class org.locationtech.spatial4j.io.PolyshapeWriter
 
KEY_BOX - Static variable in class org.locationtech.spatial4j.io.PolyshapeWriter
 
KEY_CIRCLE - Static variable in class org.locationtech.spatial4j.io.PolyshapeWriter
 
KEY_LINE - Static variable in class org.locationtech.spatial4j.io.PolyshapeWriter
 
KEY_MULTIPOINT - Static variable in class org.locationtech.spatial4j.io.PolyshapeWriter
 
KEY_POINT - Static variable in class org.locationtech.spatial4j.io.PolyshapeWriter
 
KEY_POLYGON - Static variable in class org.locationtech.spatial4j.io.PolyshapeWriter
 
KEY_SEPERATOR - Static variable in class org.locationtech.spatial4j.io.PolyshapeWriter
 
KM_TO_DEG - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 
KM_TO_MILES - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 

L

LawOfCosines() - Constructor for class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc.LawOfCosines
 
LEGACY - Static variable in interface org.locationtech.spatial4j.io.ShapeIO
 
LegacyShapeReader - Class in org.locationtech.spatial4j.io
Deprecated.
LegacyShapeReader(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.LegacyShapeReader
Deprecated.
 
LegacyShapeWriter - Class in org.locationtech.spatial4j.io
Deprecated.
LegacyShapeWriter(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.LegacyShapeWriter
Deprecated.
 
lineString() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
lineString(List<Point>, double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
lineString() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
lineString(List<Point>, double) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
lineString() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
lineString(List<Point>, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Deprecated.
lineString() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
(Builder) Constructs a line string, with a possible buffer.
lineString() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.MultiLineStringBuilder
 
LongitudeRange(double, double) - Constructor for class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
LongitudeRange(Rectangle) - Constructor for class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
lookupDegreesSizeForHashLen(int) - Static method in class org.locationtech.spatial4j.io.GeohashUtils
 
lookupHashLenForWidthHeight(double, double) - Static method in class org.locationtech.spatial4j.io.GeohashUtils
Return the shortest geohash length that will have a width & height >= specified arguments.

M

makeBinaryCodec(SpatialContext) - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
 
makeBufferedLineString(List<Point>, double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
makeCircle(double, double, double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
makeCircle(Point, double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
makeCollection(List<S>) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
makeFormats(SpatialContext) - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
 
makeLineString(List<Point>) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
makeNumberFormat(int) - Static method in class org.locationtech.spatial4j.io.LegacyShapeWriter
Deprecated.
A convenience method to create a suitable NumberFormat for writing numbers.
makePoint(double, double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
makeRectangle(Point, Point) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
makeRectangle(double, double, double, double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
makeRectFromRectangularPoly(Geometry) - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
makeRectFromRectangularPoly(Geometry) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
INTERNAL: Returns a Rectangle of the JTS Envelope (bounding box) of the given geom.
makeShape(Geometry, boolean, boolean) - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
makeShape(Geometry) - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
makeShape(Geometry, boolean, boolean) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
INTERNAL
makeShape(Geometry) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
INTERNAL: Creates a Shape from a JTS Geometry.
makeShapeFactory(SpatialContext) - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
 
makeShapeFromGeometry(Geometry) - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
makeShapeFromGeometry(Geometry) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
INTERNAL Usually creates a JtsGeometry, potentially validating, repairing, and indexing ("preparing").
makeSpatialContext(Map<String, String>, ClassLoader) - Static method in class org.locationtech.spatial4j.context.SpatialContextFactory
Creates a new SpatialContext based on configuration in args.
max - Variable in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
MAX_PRECISION - Static variable in class org.locationtech.spatial4j.io.GeohashUtils
 
MILES_TO_KM - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 
min - Variable in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
multiLineString() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
multiLineString() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
multiLineString() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
(Builder) Constructs a MultiLineString, or possibly the result of that buffered.
multiPoint() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
multiPoint() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
multiPoint() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
(Builder) Constructs a MultiPoint.
multiPolygon() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
multiPolygon() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
multiPolygon() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
(Builder) Constructs a MultiPolygon.
multiShape(List<S>) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
multiShape(Class<T>) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
multiShape(Class<T>) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
multiShape(List<S>) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Deprecated.
multiShape(Class<T>) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
(Builder) Constructs a Shape aggregate in which each component/member is an instance of the specified class.

N

newSpatialContext() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
newSpatialContext() - Method in class org.locationtech.spatial4j.context.SpatialContextFactory
Subclasses should simply construct the instance from the initialized configuration.
newState(String) - Method in class org.locationtech.spatial4j.io.WKTReader
(internal) Creates a new State with the given String.
nextDouble() - Method in class org.locationtech.spatial4j.io.WKTReader.State
Reads in a double from the String.
nextExpect(char) - Method in class org.locationtech.spatial4j.io.WKTReader.State
Verifies that the current character is of the expected value.
nextIf(char) - Method in class org.locationtech.spatial4j.io.WKTReader.State
If the current character is expected, then offset is advanced after it and any subsequent whitespace.
nextIfEmptyAndSkipZM() - Method in class org.locationtech.spatial4j.io.WKTReader.State
Skips over a dimensionality token (e.g.
nextIfWhitespace() - Method in class org.locationtech.spatial4j.io.WKTReader.State
Moves offset to next non-whitespace character.
nextSubShapeString() - Method in class org.locationtech.spatial4j.io.WKTReader.State
Returns the next chunk of text till the next ',' or ')' (non-inclusive) or EOF.
nextWord() - Method in class org.locationtech.spatial4j.io.WKTReader.State
Reads the word starting at the current character position.
normDist(double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
normDist(double) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
normDist(double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Called to normalize a value that isn't X or Y or Z.
normLatDEG(double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Puts in range -90 <= lat_deg <= 90.
normLonDEG(double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Puts in range -180 <= lon_deg <= +180.
normWrapLongitude - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
 
normX(double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
normX(double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
normX(double) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
normX(double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Normalize the 'x' dimension.
normY(double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
normY(double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
normY(double) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
normY(double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
 
normZ(double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
normZ(double) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
normZ(double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
(disclaimer: the Z dimension isn't fully supported)

O

offset - Variable in class org.locationtech.spatial4j.io.WKTReader.State
Offset of the next char in WKTReader.State.rawString to be read.
OnePointsBuilder - Class in org.locationtech.spatial4j.io
INTERNAL class used by some ShapeReaders.
OnePointsBuilder(ShapeFactory) - Constructor for class org.locationtech.spatial4j.io.OnePointsBuilder
 
org.locationtech.spatial4j - package org.locationtech.spatial4j
This is the base package for Spatial4j from which the rest of it is organized.
org.locationtech.spatial4j.context - package org.locationtech.spatial4j.context
SpatialContext implementations are the facade to the Spatial4j API.
org.locationtech.spatial4j.context.jts - package org.locationtech.spatial4j.context.jts
 
org.locationtech.spatial4j.distance - package org.locationtech.spatial4j.distance
Ways to calculate distance.
org.locationtech.spatial4j.exception - package org.locationtech.spatial4j.exception
 
org.locationtech.spatial4j.io - package org.locationtech.spatial4j.io
Reading & writing shapes in various forms.
org.locationtech.spatial4j.io.jackson - package org.locationtech.spatial4j.io.jackson
Optional support to read/write Shapes and Geometry using Jackson
org.locationtech.spatial4j.io.jts - package org.locationtech.spatial4j.io.jts
 
org.locationtech.spatial4j.shape - package org.locationtech.spatial4j.shape
Shapes are the core geometry objects that Spatial4j provides.
org.locationtech.spatial4j.shape.impl - package org.locationtech.spatial4j.shape.impl
 
org.locationtech.spatial4j.shape.jts - package org.locationtech.spatial4j.shape.jts
 
Overlaps - Static variable in class org.locationtech.spatial4j.SpatialPredicate
Almost meets the "Overlaps" OGC definition, but boundary-neutral (boundary==interior).

P

PackageVersion - Class in org.locationtech.spatial4j.io.jackson
Automatically generated from PackageVersion.java.in during packageVersion-generate execution of maven-replacer-plugin in pom.xml.
PackageVersion() - Constructor for class org.locationtech.spatial4j.io.jackson.PackageVersion
 
parse(String) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses the wktString, returning the defined Shape.
parseBufferShape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses the BUFFER operation applied to a parsed shape.
parseEnvelopeShape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses an ENVELOPE (aka Rectangle) shape from the raw string.
parseGeometryCollectionShape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses a GEOMETRYCOLLECTION shape from the raw string.
parseIfSupported(String) - Method in class org.locationtech.spatial4j.io.jts.JtsWKTReaderShapeParser
Deprecated.
 
parseIfSupported(String, WKTReader) - Method in class org.locationtech.spatial4j.io.jts.JtsWKTReaderShapeParser
Deprecated.
Reads WKT from the str via JTS's WKTReader.
parseIfSupported(String) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses the wktString, returning the defined Shape.
parseLatitudeLongitude(String) - Static method in class org.locationtech.spatial4j.io.ParseUtils
Deprecated.
Extract (by calling ParseUtils.parsePoint(String[], String, int) and validate the latitude and longitude contained in the String by making sure the latitude is between 90 & -90 and longitude is between -180 and 180.
parseLatitudeLongitude(double[], String) - Static method in class org.locationtech.spatial4j.io.ParseUtils
Deprecated.
A variation of ParseUtils.parseLatitudeLongitude(String) that re-uses an output array.
parseLineStringShape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses a LINESTRING shape from the raw string -- an ordered sequence of points.
parseMulitPolygonShape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses a MULTIPOLYGON shape from the raw string.
parseMultiLineStringShape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses a MULTILINESTRING shape from the raw string -- a collection of line strings.
parseMultiPointShape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses a MULTIPOINT shape from the raw string -- a collection of points.
parsePoint(String[], String, int) - Static method in class org.locationtech.spatial4j.io.ParseUtils
Deprecated.
Given a string containing dimension values encoded in it, separated by commas, return a String array of length dimension containing the values.
parsePointDouble(double[], String, int) - Static method in class org.locationtech.spatial4j.io.ParseUtils
Deprecated.
Given a string containing dimension values encoded in it, separated by commas, return a double array of length dimension containing the values.
parsePointShape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses a POINT shape from the raw string.
parsePolygonShape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Parses a POLYGON shape from the raw string.
parseShapeByType(WKTReader.State, String) - Method in class org.locationtech.spatial4j.io.WKTReader
(internal) Parses the remainder of a shape definition following the shape's name given as shapeType already consumed via WKTReader.State.nextWord().
ParseUtils - Class in org.locationtech.spatial4j.io
Deprecated.
Not useful; see https://github.com/spatial4j/spatial4j/issues/19
peek() - Method in class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 
point(WKTReader.State, ShapeFactory.PointsBuilder) - Method in class org.locationtech.spatial4j.io.WKTReader
Reads a raw Point (AKA Coordinate) from the current position.
point - Variable in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
Point - Interface in org.locationtech.spatial4j.shape
A Point with X & Y coordinates.
PointImpl - Class in org.locationtech.spatial4j.shape.impl
A basic 2D implementation of a Point.
PointImpl(double, double, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.PointImpl
A simple constructor without normalization / validation.
pointLatLon(double, double) - Method in class org.locationtech.spatial4j.io.OnePointsBuilder
 
pointLatLon(double, double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
pointLatLon(double, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Construct a point of latitude, longitude coordinates
pointLatLon(double, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.PointsBuilder
 
pointList(WKTReader.State, B) - Method in class org.locationtech.spatial4j.io.WKTReader
Reads a list of Points (AKA CoordinateSequence) from the current position.
pointOnBearing(Point, double, double, SpatialContext, Point) - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
pointOnBearing(Point, double, double, SpatialContext, Point) - Method in interface org.locationtech.spatial4j.distance.DistanceCalculator
Calculates where a destination point is given an origin (from) distance, and bearing (given in degrees -- 0-360).
pointOnBearing(Point, double, double, SpatialContext, Point) - Method in class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc
 
pointOnBearingRAD(double, double, double, double, SpatialContext, Point) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Given a start point (startLat, startLon), distance, and a bearing on a sphere, return the destination point.
pointXY(double, double) - Method in class org.locationtech.spatial4j.io.OnePointsBuilder
 
pointXY(double, double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
pointXY(double, double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
pointXY(double, double) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
pointXY(double, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.PointsBuilder
 
pointXY(double, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Construct a point.
pointXYZ(double, double, double) - Method in class org.locationtech.spatial4j.io.OnePointsBuilder
 
pointXYZ(double, double, double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
pointXYZ(double, double, double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
pointXYZ(double, double, double) - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
pointXYZ(double, double, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.PointsBuilder
 
pointXYZ(double, double, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Construct a point of 3 dimensions.
POLY - Static variable in interface org.locationtech.spatial4j.io.ShapeIO
 
polygon(WKTReader.State, ShapeFactory.PolygonBuilder) - Method in class org.locationtech.spatial4j.io.WKTReader
Reads a polygon
polygon() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
polygon() - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
polygon() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
polygon() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory.MultiPolygonBuilder
 
polygon() - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
(Builder) Constructs a polygon.
PolyshapeReader - Class in org.locationtech.spatial4j.io
 
PolyshapeReader(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.PolyshapeReader
 
PolyshapeReader.XReader - Class in org.locationtech.spatial4j.io
from Apache 2.0 licensed: https://github.com/googlemaps/android-maps-utils/blob/master/library/src/com/google/maps/android/PolyUtil.java
PolyshapeWriter - Class in org.locationtech.spatial4j.io
Wrap the 'Encoded Polyline Algorithm Format' defined in: Google Maps API with flags to encode various Shapes: Point, Line, Polygon, etc For more details, see FORMATS.md This format works well for geographic shapes (-180...+180 / -90...+90), but is not appropriate for other coordinate systems
PolyshapeWriter(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.PolyshapeWriter
 
PolyshapeWriter.Encoder - Class in org.locationtech.spatial4j.io
Encodes a sequence of LatLngs into an encoded path string.
precisionModel - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
preparedGeometry - Variable in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 

Q

quadrant(Point) - Method in class org.locationtech.spatial4j.shape.impl.InfBufLine
INTERNAL: AKA lineToPointQuadrant

R

radians2Dist(double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Converts radians (multiples of the radius) to distance in the units of the radius (e.g.
RADIANS_TO_DEGREES - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
 
radiusDEG - Variable in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
Range - Class in org.locationtech.spatial4j.shape.impl
Deprecated.
Range(double, double) - Constructor for class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
Range.LongitudeRange - Class in org.locationtech.spatial4j.shape.impl
Deprecated.
rawString - Variable in class org.locationtech.spatial4j.io.WKTReader.State
read(Reader) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
read(Object) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
read(ObjectNode, ShapeFactory) - Method in class org.locationtech.spatial4j.io.jackson.ShapeDeserializer
 
read(JsonParser, ShapeFactory) - Method in class org.locationtech.spatial4j.io.jackson.ShapeDeserializer
 
read(Object) - Method in class org.locationtech.spatial4j.io.LegacyShapeReader
Deprecated.
 
read(Reader) - Method in class org.locationtech.spatial4j.io.LegacyShapeReader
Deprecated.
 
read(Object) - Method in class org.locationtech.spatial4j.io.PolyshapeReader
 
read(Reader) - Method in class org.locationtech.spatial4j.io.PolyshapeReader
 
read(Object) - Method in interface org.locationtech.spatial4j.io.ShapeReader
 
read(Reader) - Method in interface org.locationtech.spatial4j.io.ShapeReader
Read a Shape from the reader.
read(String) - Method in class org.locationtech.spatial4j.io.SupportedFormats
 
read(Reader) - Method in class org.locationtech.spatial4j.io.WKTReader
 
read(Object) - Method in class org.locationtech.spatial4j.io.WKTReader
 
readCircle(DataInput) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
readCircle(JSONParser) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readCollection(DataInput) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
readCoordListXYZ(JSONParser, ShapeFactory.PointsBuilder) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readCoordXYZ(JSONParser, ShapeFactory.PointsBuilder) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readDim(DataInput) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
readDim(DataInput) - Method in class org.locationtech.spatial4j.io.jts.JtsBinaryCodec
 
readDistance(String, String, JSONParser) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
Helper method to read a up until a distance value (radius, buffer) and it's corresponding unit are found.
readDouble() - Method in class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 
readers - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
 
readIfSupported(Object) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readIfSupported(Object) - Method in class org.locationtech.spatial4j.io.LegacyShapeReader
Deprecated.
 
readIfSupported(Object) - Method in class org.locationtech.spatial4j.io.PolyshapeReader
 
readIfSupported(Object) - Method in interface org.locationtech.spatial4j.io.ShapeReader
 
readIfSupported(Object) - Method in class org.locationtech.spatial4j.io.WKTReader
 
readJtsGeom(DataInput) - Method in class org.locationtech.spatial4j.io.jts.JtsBinaryCodec
 
readKey() - Method in class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 
readLat() - Method in class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 
readLineString(JSONParser) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readLng() - Method in class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 
readMultiLineString(JSONParser) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readMultiPoint(JSONParser) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readMultiPolygon(JSONParser) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readPoint(DataInput) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
readPoint(JSONParser) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readPoint(ArrayNode, ShapeFactory) - Method in class org.locationtech.spatial4j.io.jackson.ShapeDeserializer
 
readPoints(T) - Method in class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 
readPolygon(JSONParser, ShapeFactory.PolygonBuilder) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readPolygon(PolyshapeReader.XReader) - Method in class org.locationtech.spatial4j.io.PolyshapeReader
 
readRect(DataInput) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
readShape(String) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
readShape(DataInput) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
readShape(JSONParser) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readShapeByTypeIfSupported(DataInput, byte) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
readShapeByTypeIfSupported(DataInput, byte) - Method in class org.locationtech.spatial4j.io.jts.JtsBinaryCodec
 
readShapeFromCoordinates(String, JSONParser) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
readShapeFromWkt(String) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
readShapeOrNull(String, SpatialContext) - Static method in class org.locationtech.spatial4j.io.LegacyShapeReader
Deprecated.
Reads the shape specification as defined in the class javadocs.
readUntilEvent(JSONParser, int) - Method in class org.locationtech.spatial4j.io.GeoJSONReader
 
rect(Point, Point) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
rect(double, double, double, double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
rect(Point, Point) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Construct a rectangle.
rect(double, double, double, double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Construct a rectangle.
Rectangle - Interface in org.locationtech.spatial4j.shape
A rectangle aligned with the axis (i.e.
RectangleImpl - Class in org.locationtech.spatial4j.shape.impl
A simple Rectangle implementation that also supports a longitudinal wrap-around.
RectangleImpl(double, double, double, double, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.RectangleImpl
A simple constructor without normalization / validation.
RectangleImpl(Point, Point, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.RectangleImpl
A convenience constructor which pulls out the coordinates.
RectangleImpl(Rectangle, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.impl.RectangleImpl
Copy constructor.
register(String) - Method in class org.locationtech.spatial4j.SpatialPredicate
 
relate(Shape) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
relate(Rectangle) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
relate(Shape) - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
relate(Shape) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
relate(Point) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
relate(Rectangle) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
relate(Circle) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
relate(Shape) - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
relate(Shape) - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
relate(Point) - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
relate(Rectangle) - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
relate(Shape) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
relate(Point) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
relate(Rectangle) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
relate(Circle) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
relate(JtsGeometry) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
relate(Geometry) - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
relate(Shape) - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
relate(Shape) - Method in interface org.locationtech.spatial4j.shape.Shape
Describe the relationship between the two objects.
relate(Shape) - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
relateContainsShortCircuits() - Method in class org.locationtech.spatial4j.shape.ShapeCollection
Called by relate() to determine whether to return early if it finds CONTAINS, instead of checking the remaining shapes.
relateRectanglePhase2(Rectangle, SpatialRelation) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
relateRectanglePhase2(Rectangle, SpatialRelation) - Method in class org.locationtech.spatial4j.shape.impl.GeoCircle
Called after bounding box is intersected.
relateXRange(double, double) - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
relateXRange(double, double) - Method in interface org.locationtech.spatial4j.shape.Rectangle
A specialization of Shape.relate(Shape) for a horizontal line.
relateYRange(double, double) - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
relateYRange(double, double) - Method in interface org.locationtech.spatial4j.shape.Rectangle
A specialization of Shape.relate(Shape) for a vertical line.
reset(double, double, double) - Method in interface org.locationtech.spatial4j.shape.Circle
Expert: Resets the state of this shape given the arguments.
reset(double, double, double) - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
reset(double, double, double) - Method in class org.locationtech.spatial4j.shape.impl.GeoCircle
 
reset(double, double) - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
reset(double, double, double, double) - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
reset(double, double) - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
reset(double, double) - Method in interface org.locationtech.spatial4j.shape.Point
Expert: Resets the state of this shape given the arguments.
reset(double, double, double, double) - Method in interface org.locationtech.spatial4j.shape.Rectangle
Expert: Resets the state of this shape given the arguments.
round(double) - Static method in class org.locationtech.spatial4j.io.jackson.ShapeAsGeoJSONSerializer
 

S

seperator() - Method in class org.locationtech.spatial4j.io.PolyshapeWriter.Encoder
 
serialize(Geometry, JsonGenerator, SerializerProvider) - Method in class org.locationtech.spatial4j.io.jackson.GeometryAsGeoJSONSerializer
 
serialize(Geometry, JsonGenerator, SerializerProvider) - Method in class org.locationtech.spatial4j.io.jackson.GeometryAsWKTSerializer
 
serialize(Shape, JsonGenerator, SerializerProvider) - Method in class org.locationtech.spatial4j.io.jackson.ShapeAsGeoJSONSerializer
 
serialize(Shape, JsonGenerator, SerializerProvider) - Method in class org.locationtech.spatial4j.io.jackson.ShapeAsWKTSerializer
 
shape(WKTReader.State) - Method in class org.locationtech.spatial4j.io.WKTReader
Reads a shape from the current position, starting with the name of the shape.
Shape - Interface in org.locationtech.spatial4j.shape
The base interface defining a geometric shape.
ShapeAsGeoJSONSerializer - Class in org.locationtech.spatial4j.io.jackson
 
ShapeAsGeoJSONSerializer() - Constructor for class org.locationtech.spatial4j.io.jackson.ShapeAsGeoJSONSerializer
 
ShapeAsWKTSerializer - Class in org.locationtech.spatial4j.io.jackson
 
ShapeAsWKTSerializer() - Constructor for class org.locationtech.spatial4j.io.jackson.ShapeAsWKTSerializer
 
ShapeCollection<S extends Shape> - Class in org.locationtech.spatial4j.shape
A collection of Shape objects, analogous to an OGC GeometryCollection.
ShapeCollection(List<S>, SpatialContext) - Constructor for class org.locationtech.spatial4j.shape.ShapeCollection
WARNING: shapes is copied by reference.
ShapeDeserializer - Class in org.locationtech.spatial4j.io.jackson
 
ShapeDeserializer() - Constructor for class org.locationtech.spatial4j.io.jackson.ShapeDeserializer
 
ShapeDeserializer(SpatialContext) - Constructor for class org.locationtech.spatial4j.io.jackson.ShapeDeserializer
 
shapeFactory - Variable in class org.locationtech.spatial4j.io.GeoJSONReader
 
shapeFactory - Variable in class org.locationtech.spatial4j.io.WKTReader
 
ShapeFactory - Interface in org.locationtech.spatial4j.shape
A factory for Shapes.
ShapeFactory.LineStringBuilder - Interface in org.locationtech.spatial4j.shape
 
ShapeFactory.MultiLineStringBuilder - Interface in org.locationtech.spatial4j.shape
 
ShapeFactory.MultiPointBuilder - Interface in org.locationtech.spatial4j.shape
 
ShapeFactory.MultiPolygonBuilder - Interface in org.locationtech.spatial4j.shape
 
ShapeFactory.MultiShapeBuilder<T extends Shape> - Interface in org.locationtech.spatial4j.shape
 
ShapeFactory.PointsBuilder<T> - Interface in org.locationtech.spatial4j.shape
Builds a point and returns the generic specified type (usually whatever "this" is).
ShapeFactory.PolygonBuilder - Interface in org.locationtech.spatial4j.shape
 
ShapeFactory.PolygonBuilder.HoleBuilder - Interface in org.locationtech.spatial4j.shape
 
shapeFactoryClass - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
 
ShapeFactoryImpl - Class in org.locationtech.spatial4j.shape.impl
The default ShapeFactory.
ShapeFactoryImpl(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
ShapeFactoryImpl.GeneralShapeMultiShapeBuilder<T extends Shape> - Class in org.locationtech.spatial4j.shape.impl
 
ShapeIO - Interface in org.locationtech.spatial4j.io
 
ShapeReader - Interface in org.locationtech.spatial4j.io
Implementations are expected to be thread safe
shapes - Variable in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl.GeneralShapeMultiShapeBuilder
 
shapes - Variable in class org.locationtech.spatial4j.shape.ShapeCollection
 
ShapesAsGeoJSONModule - Class in org.locationtech.spatial4j.io.jackson
 
ShapesAsGeoJSONModule() - Constructor for class org.locationtech.spatial4j.io.jackson.ShapesAsGeoJSONModule
 
ShapesAsWKTModule - Class in org.locationtech.spatial4j.io.jackson
 
ShapesAsWKTModule() - Constructor for class org.locationtech.spatial4j.io.jackson.ShapesAsWKTModule
 
ShapeWriter - Interface in org.locationtech.spatial4j.io
Implementations are expected to be thread safe
SIN_45_AS_RADS - Static variable in class org.locationtech.spatial4j.distance.DistanceUtils
Deprecated.
size() - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
skipDouble() - Method in class org.locationtech.spatial4j.io.WKTReader.State
Advances offset forward until it points to a character that isn't part of a number.
skipNextDoubles() - Method in class org.locationtech.spatial4j.io.WKTReader.State
Advances past as many doubles as there are, with intervening whitespace.
SpatialContext - Class in org.locationtech.spatial4j.context
This is a facade to most of Spatial4j, holding things like DistanceCalculator, ShapeFactory, ShapeIO.
SpatialContext(boolean, DistanceCalculator, Rectangle) - Constructor for class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
SpatialContext(boolean) - Constructor for class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
SpatialContext(SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.context.SpatialContext
SpatialContextFactory - Class in org.locationtech.spatial4j.context
Factory for a SpatialContext based on configuration data.
SpatialContextFactory() - Constructor for class org.locationtech.spatial4j.context.SpatialContextFactory
 
SpatialPredicate - Class in org.locationtech.spatial4j
A predicate that compares a stored geometry to a supplied geometry.
SpatialPredicate(String) - Constructor for class org.locationtech.spatial4j.SpatialPredicate
 
SpatialRelation - Enum in org.locationtech.spatial4j.shape
The set of spatial relationships.
srid - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
startRing() - Method in class org.locationtech.spatial4j.io.PolyshapeWriter.Encoder
 
State(String) - Constructor for class org.locationtech.spatial4j.io.WKTReader.State
 
SupportedFormats - Class in org.locationtech.spatial4j.io
Information about the formats a SpatialContext can read/write
SupportedFormats(List<ShapeReader>, List<ShapeWriter>) - Constructor for class org.locationtech.spatial4j.io.SupportedFormats
 
SYSPROP_ASSERT_VALIDATE - Static variable in class org.locationtech.spatial4j.shape.jts.JtsGeometry
System property boolean that can disable auto validation in an assert.

T

toDegrees(double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Same as Math.toDegrees(double) but 3x faster (multiply vs.
toRadians(double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Same as Math.toRadians(double) but 3x faster (multiply vs.
toString() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
 
toString(Shape) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
toString() - Method in class org.locationtech.spatial4j.context.SpatialContext
 
toString() - Method in class org.locationtech.spatial4j.distance.AbstractDistanceCalculator
 
toString(Shape) - Method in class org.locationtech.spatial4j.io.GeoJSONWriter
 
toString(Shape) - Method in class org.locationtech.spatial4j.io.jts.JtsWKTWriter
 
toString(Shape) - Method in class org.locationtech.spatial4j.io.LegacyShapeWriter
Deprecated.
 
toString(Shape) - Method in class org.locationtech.spatial4j.io.PolyshapeWriter
 
toString(Shape) - Method in interface org.locationtech.spatial4j.io.ShapeWriter
Write a shape to String
toString(Shape) - Method in class org.locationtech.spatial4j.io.WKTWriter
 
toString() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLine
 
toString() - Method in class org.locationtech.spatial4j.shape.impl.BufferedLineString
 
toString() - Method in class org.locationtech.spatial4j.shape.impl.CircleImpl
 
toString() - Method in class org.locationtech.spatial4j.shape.impl.GeoCircle
 
toString() - Method in class org.locationtech.spatial4j.shape.impl.InfBufLine
 
toString() - Method in class org.locationtech.spatial4j.shape.impl.PointImpl
 
toString() - Method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
toString() - Method in class org.locationtech.spatial4j.shape.impl.RectangleImpl
 
toString() - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
toString() - Method in class org.locationtech.spatial4j.shape.jts.JtsPoint
 
toString() - Method in class org.locationtech.spatial4j.shape.ShapeCollection
 
toString() - Method in class org.locationtech.spatial4j.SpatialPredicate
 
transpose() - Method in enum org.locationtech.spatial4j.shape.SpatialRelation
Given the result of shapeA.relate(shapeB), transposing that result should yield the result of shapeB.relate(shapeA).
TYPE_CIRCLE - Static variable in class org.locationtech.spatial4j.io.BinaryCodec
 
TYPE_COLL - Static variable in class org.locationtech.spatial4j.io.BinaryCodec
 
TYPE_GEOM - Static variable in class org.locationtech.spatial4j.io.BinaryCodec
 
TYPE_POINT - Static variable in class org.locationtech.spatial4j.io.BinaryCodec
 
TYPE_RECT - Static variable in class org.locationtech.spatial4j.io.BinaryCodec
 
typeForShape(Shape) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
typeForShape(Shape) - Method in class org.locationtech.spatial4j.io.jts.JtsBinaryCodec
 

U

UnsupportedSpatialPredicate - Exception in org.locationtech.spatial4j.exception
Exception thrown when something cannot implement the SpatialPredicate.
UnsupportedSpatialPredicate(SpatialPredicate) - Constructor for exception org.locationtech.spatial4j.exception.UnsupportedSpatialPredicate
 
useFloat - Variable in class org.locationtech.spatial4j.io.jts.JtsBinaryCodec
 
useJtsLineString() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
useJtsLineString - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
useJtsLineString - Variable in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
useJtsLineString() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
useJtsMulti - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
useJtsMulti - Variable in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
useJtsMulti() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
Whether JtsShapeFactory.multiPoint(), JtsShapeFactory.multiLineString(), and JtsShapeFactory.multiPolygon() should all use JTS's subclasses of GeometryCollection instead of Spatial4j's basic impl.
useJtsPoint() - Method in class org.locationtech.spatial4j.context.jts.JtsSpatialContext
Deprecated.
useJtsPoint - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
useJtsPoint - Variable in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
useJtsPoint() - Method in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory

V

validate() - Method in class org.locationtech.spatial4j.shape.jts.JtsGeometry
Validates the shape, throwing a descriptive error if it isn't valid.
validated - Variable in class org.locationtech.spatial4j.shape.jts.JtsGeometry
 
validationRule - Variable in class org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory
 
ValidationRule - Enum in org.locationtech.spatial4j.context.jts
Indicates how JTS geometries (notably polygons but applies to other geometries too) are validated (if at all) and repaired (if at all).
validationRule - Variable in class org.locationtech.spatial4j.shape.jts.JtsShapeFactory
 
valueOf(String) - Static method in enum org.locationtech.spatial4j.context.jts.DatelineRule
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.locationtech.spatial4j.context.jts.ValidationRule
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.locationtech.spatial4j.shape.SpatialRelation
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.locationtech.spatial4j.context.jts.DatelineRule
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.locationtech.spatial4j.context.jts.ValidationRule
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.locationtech.spatial4j.shape.SpatialRelation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in class org.locationtech.spatial4j.SpatialPredicate
 
vectorBoxCorner(double[], double[], double, boolean) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Deprecated.
vectorDistance(double[], double[], double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Deprecated.
vectorDistance(double[], double[], double, double) - Static method in class org.locationtech.spatial4j.distance.DistanceUtils
Deprecated.
verifyX(double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
verifyX(double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
verifyX(double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
Ensure fits in the world bounds.
verifyY(double) - Method in class org.locationtech.spatial4j.context.SpatialContext
Deprecated.
verifyY(double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
verifyY(double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
 
verifyZ(double) - Method in class org.locationtech.spatial4j.shape.impl.ShapeFactoryImpl
 
verifyZ(double) - Method in interface org.locationtech.spatial4j.shape.ShapeFactory
(disclaimer: the Z dimension isn't fully supported)
VERSION - Static variable in class org.locationtech.spatial4j.io.jackson.PackageVersion
 
version() - Method in class org.locationtech.spatial4j.io.jackson.PackageVersion
 
Vincenty() - Constructor for class org.locationtech.spatial4j.distance.GeodesicSphereDistCalc.Vincenty
 

W

within(Point, double, double, double) - Method in class org.locationtech.spatial4j.distance.AbstractDistanceCalculator
 
within(Point, double, double, double) - Method in class org.locationtech.spatial4j.distance.CartesianDistCalc
 
within(Point, double, double, double) - Method in interface org.locationtech.spatial4j.distance.DistanceCalculator
Returns true if the distance between from and to is <= distance.
WKT - Static variable in interface org.locationtech.spatial4j.io.ShapeIO
 
WKTReader - Class in org.locationtech.spatial4j.io
An extensible parser for Well Known Text (WKT).
WKTReader(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.WKTReader
This constructor is required by SpatialContextFactory.makeFormats(SpatialContext).
WKTReader.State - Class in org.locationtech.spatial4j.io
The parse state.
WktShapeParser - Class in org.locationtech.spatial4j.io
Deprecated.
WktShapeParser(SpatialContext, SpatialContextFactory) - Constructor for class org.locationtech.spatial4j.io.WktShapeParser
Deprecated.
 
WKTWriter - Class in org.locationtech.spatial4j.io
 
WKTWriter() - Constructor for class org.locationtech.spatial4j.io.WKTWriter
 
WORLD_180E180W - Static variable in class org.locationtech.spatial4j.shape.impl.Range.LongitudeRange
Deprecated.
 
worldBounds - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
 
write(Writer, NumberFormat, double...) - Method in class org.locationtech.spatial4j.io.GeoJSONWriter
 
write(Writer, Shape) - Method in class org.locationtech.spatial4j.io.GeoJSONWriter
 
write(JsonGenerator, Coordinate) - Method in class org.locationtech.spatial4j.io.jackson.GeometryAsGeoJSONSerializer
 
write(JsonGenerator, CoordinateSequence) - Method in class org.locationtech.spatial4j.io.jackson.GeometryAsGeoJSONSerializer
 
write(JsonGenerator, Coordinate[]) - Method in class org.locationtech.spatial4j.io.jackson.GeometryAsGeoJSONSerializer
 
write(JsonGenerator, Polygon) - Method in class org.locationtech.spatial4j.io.jackson.GeometryAsGeoJSONSerializer
 
write(JsonGenerator, double...) - Method in class org.locationtech.spatial4j.io.jackson.ShapeAsGeoJSONSerializer
 
write(JsonGenerator, Shape) - Method in class org.locationtech.spatial4j.io.jackson.ShapeAsGeoJSONSerializer
 
write(Writer, NumberFormat, Coordinate) - Method in class org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
 
write(Writer, NumberFormat, CoordinateSequence) - Method in class org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
 
write(Writer, NumberFormat, Coordinate[]) - Method in class org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
 
write(Writer, NumberFormat, Polygon) - Method in class org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
 
write(Writer, Geometry) - Method in class org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
 
write(Writer, Shape) - Method in class org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
 
write(PolyshapeWriter.Encoder, CoordinateSequence) - Method in class org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter
 
write(PolyshapeWriter.Encoder, Coordinate[]) - Method in class org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter
 
write(PolyshapeWriter.Encoder, Polygon) - Method in class org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter
 
write(PolyshapeWriter.Encoder, Geometry) - Method in class org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter
 
write(PolyshapeWriter.Encoder, Shape) - Method in class org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter
 
write(Writer, Shape) - Method in class org.locationtech.spatial4j.io.LegacyShapeWriter
Deprecated.
 
write(char) - Method in class org.locationtech.spatial4j.io.PolyshapeWriter.Encoder
 
write(double, double) - Method in class org.locationtech.spatial4j.io.PolyshapeWriter.Encoder
 
write(Writer, Shape) - Method in class org.locationtech.spatial4j.io.PolyshapeWriter
 
write(PolyshapeWriter.Encoder, Shape) - Method in class org.locationtech.spatial4j.io.PolyshapeWriter
 
write(Writer, Shape) - Method in interface org.locationtech.spatial4j.io.ShapeWriter
Write a shape to the output writer
write(Writer, Shape) - Method in class org.locationtech.spatial4j.io.WKTWriter
 
writeArg(double) - Method in class org.locationtech.spatial4j.io.PolyshapeWriter.Encoder
 
writeCircle(DataOutput, Circle) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
writeCollection(DataOutput, ShapeCollection) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
writeDim(DataOutput, double) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
writeDim(DataOutput, double) - Method in class org.locationtech.spatial4j.io.jts.JtsBinaryCodec
 
writeJtsGeom(DataOutput, Shape) - Method in class org.locationtech.spatial4j.io.jts.JtsBinaryCodec
 
writePoint(DataOutput, Point) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
writeRect(DataOutput, Rectangle) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
writers - Variable in class org.locationtech.spatial4j.context.SpatialContextFactory
 
writeShape(DataOutput, Shape) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
writeShape(Shape) - Static method in class org.locationtech.spatial4j.io.LegacyShapeWriter
Deprecated.
Writes a shape to a String, in a format that can be read by LegacyShapeReader.readShapeOrNull(String, SpatialContext)
writeShape(Shape, NumberFormat) - Static method in class org.locationtech.spatial4j.io.LegacyShapeWriter
Deprecated.
Overloaded to provide a number format.
writeShapeByTypeIfSupported(DataOutput, Shape) - Method in class org.locationtech.spatial4j.io.BinaryCodec
Note: writes the type byte even if not supported
writeShapeByTypeIfSupported(DataOutput, Shape, byte) - Method in class org.locationtech.spatial4j.io.BinaryCodec
 
writeShapeByTypeIfSupported(DataOutput, Shape, byte) - Method in class org.locationtech.spatial4j.io.jts.JtsBinaryCodec
 

X

xRange(Rectangle, SpatialContext) - Static method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
XReader(Reader, ShapeFactory) - Constructor for class org.locationtech.spatial4j.io.PolyshapeReader.XReader
 

Y

yRange(Rectangle, SpatialContext) - Static method in class org.locationtech.spatial4j.shape.impl.Range
Deprecated.
 
A B C D E G H I J K L M N O P Q R S T U V W X Y 
Skip navigation links
Spatial4j, 0.8

Copyright © 2020 LocationTech. All rights reserved.