Class SpatialSupport
java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.function.geosparql.SpatialSupport
- Direct Known Subclasses:
SpatialSupport.JtsSpatialSupport
This class is responsible for creating the
SpatialContext
,
SpatialAlgebra
and WktWriter
that will be used. It will first try to load a subclass of itself called
"org.eclipse.rdf4j.query.algebra.evaluation.function.geosparql.SpatialSupportInitializer" . This is not provided, and
is primarily intended as a way to inject custom geospatial support. If this fails then the following fall-backs are
used:
- it uses the JTS GEO SpatialContext implementation, with added support for polygons.
- a SpatialAlgebra that does not support any operation.
- a WktWriter that only supports points .
SpatialContextFactory
. The prefix is stripped from the system property
name to form the SpatialContextFactory argument name.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SpatialAlgebra
private static final org.locationtech.spatial4j.context.SpatialContext
private static final WktWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SpatialAlgebra
protected abstract org.locationtech.spatial4j.context.SpatialContext
protected abstract WktWriter
(package private) static SpatialAlgebra
(package private) static org.locationtech.spatial4j.context.SpatialContext
(package private) static WktWriter
-
Field Details
-
spatialContext
private static final org.locationtech.spatial4j.context.SpatialContext spatialContext -
spatialAlgebra
-
wktWriter
-
-
Constructor Details
-
SpatialSupport
SpatialSupport()
-
-
Method Details
-
getSpatialContext
static org.locationtech.spatial4j.context.SpatialContext getSpatialContext() -
getSpatialAlgebra
-
getWktWriter
-
createSpatialContext
protected abstract org.locationtech.spatial4j.context.SpatialContext createSpatialContext() -
createSpatialAlgebra
-
createWktWriter
-