Package | Description |
---|---|
com.spatial4j.core.context |
SpatialContext implementations are the facade to the Spatial4j API.
|
com.spatial4j.core.io |
Reading & writing shapes in various forms.
|
com.spatial4j.core.shape.jts |
Modifier and Type | Method and Description |
---|---|
Shape |
SpatialContext.readShape(String value)
Deprecated.
|
Shape |
SpatialContext.readShapeFromWkt(String wkt)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Shape |
WKTReader.parse(String wktString)
Parses the wktString, returning the defined Shape.
|
Shape |
WKTReader.parseIfSupported(String wktString)
Parses the wktString, returning the defined Shape.
|
static double[] |
ParseUtils.parseLatitudeLongitude(double[] outLatLon,
String latLonStr)
Deprecated.
A variation of
ParseUtils.parseLatitudeLongitude(String) that re-uses an output array. |
static double[] |
ParseUtils.parseLatitudeLongitude(String latLonStr)
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. |
static String[] |
ParseUtils.parsePoint(String[] out,
String externalVal,
int dimension)
Deprecated.
Given a string containing dimension values encoded in it, separated by commas, return a String array of length dimension
containing the values.
|
static double[] |
ParseUtils.parsePointDouble(double[] out,
String externalVal,
int dimension)
Deprecated.
Given a string containing dimension values encoded in it, separated by commas, return a double array of length dimension
containing the values.
|
Shape |
WKTReader.read(Object value) |
Shape |
ShapeReader.read(Object value) |
Shape |
PolyshapeReader.read(Object value) |
Shape |
LegacyShapeReader.read(Object value)
Deprecated.
|
Shape |
GeoJSONReader.read(Object value) |
Shape |
ShapeReader.read(Reader reader)
Read a
Shape from the reader. |
Shape |
LegacyShapeReader.read(Reader reader)
Deprecated.
|
Shape |
WKTReader.readIfSupported(Object value) |
Shape |
ShapeReader.readIfSupported(Object value) |
Shape |
PolyshapeReader.readIfSupported(Object value) |
Shape |
LegacyShapeReader.readIfSupported(Object value)
Deprecated.
|
Shape |
GeoJSONReader.readIfSupported(Object value) |
static Shape |
LegacyShapeReader.readShapeOrNull(String str,
SpatialContext ctx)
Deprecated.
Reads the shape specification as defined in the class javadocs.
|
Modifier and Type | Method and Description |
---|---|
void |
JtsGeometry.validate()
Validates the shape, throwing a descriptive error if it isn't valid.
|
Copyright © 2015. All rights reserved.