Class SpatialSupport
- java.lang.Object
-
- org.eclipse.rdf4j.query.algebra.evaluation.function.geosparql.SpatialSupport
-
- Direct Known Subclasses:
SpatialSupport.JtsSpatialSupport
abstract class SpatialSupport extends java.lang.Object
This class is responsible for creating theSpatialContext
,SpatialAlgebra
andWktWriter
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 Modifier and Type Class Description private static class
SpatialSupport.JtsSpatialSupport
-
Field Summary
Fields Modifier and Type Field Description private static SpatialAlgebra
spatialAlgebra
private static org.locationtech.spatial4j.context.SpatialContext
spatialContext
private static WktWriter
wktWriter
-
Constructor Summary
Constructors Constructor Description SpatialSupport()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract SpatialAlgebra
createSpatialAlgebra()
protected abstract org.locationtech.spatial4j.context.SpatialContext
createSpatialContext()
protected abstract WktWriter
createWktWriter()
(package private) static SpatialAlgebra
getSpatialAlgebra()
(package private) static org.locationtech.spatial4j.context.SpatialContext
getSpatialContext()
(package private) static WktWriter
getWktWriter()
-
-
-
Field Detail
-
spatialContext
private static final org.locationtech.spatial4j.context.SpatialContext spatialContext
-
spatialAlgebra
private static final SpatialAlgebra spatialAlgebra
-
wktWriter
private static final WktWriter wktWriter
-
-
Method Detail
-
getSpatialContext
static org.locationtech.spatial4j.context.SpatialContext getSpatialContext()
-
getSpatialAlgebra
static SpatialAlgebra getSpatialAlgebra()
-
getWktWriter
static WktWriter getWktWriter()
-
createSpatialContext
protected abstract org.locationtech.spatial4j.context.SpatialContext createSpatialContext()
-
createSpatialAlgebra
protected abstract SpatialAlgebra createSpatialAlgebra()
-
createWktWriter
protected abstract WktWriter createWktWriter()
-
-