Class JtsSpatialAlgebra
java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.function.geosparql.JtsSpatialAlgebra
- All Implemented Interfaces:
SpatialAlgebra
JTS-enabled implementation of spatial algebra, with full support for polygon-related geospatial functions
-
Constructor Summary
ConstructorDescriptionJtsSpatialAlgebra
(org.locationtech.spatial4j.context.jts.JtsSpatialContext context) -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.spatial4j.shape.Shape
boundary
(org.locationtech.spatial4j.shape.Shape s) org.locationtech.spatial4j.shape.Shape
buffer
(org.locationtech.spatial4j.shape.Shape s, double distance) org.locationtech.spatial4j.shape.Shape
convexHull
(org.locationtech.spatial4j.shape.Shape s) org.locationtech.spatial4j.shape.Shape
difference
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
ehContains
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
ehCoveredBy
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
ehCovers
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
ehDisjoint
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
ehEquals
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
ehInside
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
ehMeet
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
ehOverlap
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) org.locationtech.spatial4j.shape.Shape
envelope
(org.locationtech.spatial4j.shape.Shape s) org.locationtech.spatial4j.shape.Shape
intersection
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
rcc8dc
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
rcc8ec
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
rcc8eq
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
rcc8ntpp
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
rcc8ntppi
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
rcc8po
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
rcc8tpp
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
rcc8tppi
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
relate
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2, String intersectionPattern) boolean
sfContains
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
sfCrosses
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
sfDisjoint
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
sfEquals
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
sfIntersects
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
sfOverlaps
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
sfTouches
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) boolean
sfWithin
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) org.locationtech.spatial4j.shape.Shape
symDifference
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) org.locationtech.spatial4j.shape.Shape
union
(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2)
-
Constructor Details
-
JtsSpatialAlgebra
public JtsSpatialAlgebra(org.locationtech.spatial4j.context.jts.JtsSpatialContext context)
-
-
Method Details
-
buffer
public org.locationtech.spatial4j.shape.Shape buffer(org.locationtech.spatial4j.shape.Shape s, double distance) - Specified by:
buffer
in interfaceSpatialAlgebra
-
convexHull
public org.locationtech.spatial4j.shape.Shape convexHull(org.locationtech.spatial4j.shape.Shape s) - Specified by:
convexHull
in interfaceSpatialAlgebra
-
boundary
public org.locationtech.spatial4j.shape.Shape boundary(org.locationtech.spatial4j.shape.Shape s) - Specified by:
boundary
in interfaceSpatialAlgebra
-
envelope
public org.locationtech.spatial4j.shape.Shape envelope(org.locationtech.spatial4j.shape.Shape s) - Specified by:
envelope
in interfaceSpatialAlgebra
-
union
public org.locationtech.spatial4j.shape.Shape union(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
union
in interfaceSpatialAlgebra
-
intersection
public org.locationtech.spatial4j.shape.Shape intersection(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
intersection
in interfaceSpatialAlgebra
-
symDifference
public org.locationtech.spatial4j.shape.Shape symDifference(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
symDifference
in interfaceSpatialAlgebra
-
difference
public org.locationtech.spatial4j.shape.Shape difference(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
difference
in interfaceSpatialAlgebra
-
relate
public boolean relate(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2, String intersectionPattern) - Specified by:
relate
in interfaceSpatialAlgebra
-
sfEquals
public boolean sfEquals(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
sfEquals
in interfaceSpatialAlgebra
-
sfDisjoint
public boolean sfDisjoint(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
sfDisjoint
in interfaceSpatialAlgebra
-
sfIntersects
public boolean sfIntersects(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
sfIntersects
in interfaceSpatialAlgebra
-
sfTouches
public boolean sfTouches(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
sfTouches
in interfaceSpatialAlgebra
-
sfCrosses
public boolean sfCrosses(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
sfCrosses
in interfaceSpatialAlgebra
-
sfWithin
public boolean sfWithin(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
sfWithin
in interfaceSpatialAlgebra
-
sfContains
public boolean sfContains(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
sfContains
in interfaceSpatialAlgebra
-
sfOverlaps
public boolean sfOverlaps(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
sfOverlaps
in interfaceSpatialAlgebra
-
ehEquals
public boolean ehEquals(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
ehEquals
in interfaceSpatialAlgebra
-
ehDisjoint
public boolean ehDisjoint(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
ehDisjoint
in interfaceSpatialAlgebra
-
ehMeet
public boolean ehMeet(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
ehMeet
in interfaceSpatialAlgebra
-
ehOverlap
public boolean ehOverlap(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
ehOverlap
in interfaceSpatialAlgebra
-
ehCovers
public boolean ehCovers(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
ehCovers
in interfaceSpatialAlgebra
-
ehCoveredBy
public boolean ehCoveredBy(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
ehCoveredBy
in interfaceSpatialAlgebra
-
ehInside
public boolean ehInside(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
ehInside
in interfaceSpatialAlgebra
-
ehContains
public boolean ehContains(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
ehContains
in interfaceSpatialAlgebra
-
rcc8dc
public boolean rcc8dc(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
rcc8dc
in interfaceSpatialAlgebra
-
rcc8ec
public boolean rcc8ec(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
rcc8ec
in interfaceSpatialAlgebra
-
rcc8po
public boolean rcc8po(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
rcc8po
in interfaceSpatialAlgebra
-
rcc8tppi
public boolean rcc8tppi(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
rcc8tppi
in interfaceSpatialAlgebra
-
rcc8tpp
public boolean rcc8tpp(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
rcc8tpp
in interfaceSpatialAlgebra
-
rcc8ntpp
public boolean rcc8ntpp(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
rcc8ntpp
in interfaceSpatialAlgebra
-
rcc8ntppi
public boolean rcc8ntppi(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
rcc8ntppi
in interfaceSpatialAlgebra
-
rcc8eq
public boolean rcc8eq(org.locationtech.spatial4j.shape.Shape s1, org.locationtech.spatial4j.shape.Shape s2) - Specified by:
rcc8eq
in interfaceSpatialAlgebra
-