public class TopologicalRelationships extends Object
| Constructor and Description |
|---|
TopologicalRelationships() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBeyond(Node g1,
Node g2,
Element distanceWithUom)
Tests whether or not the orthodromic distance between two geometry
objects is greater than or equal to the specified distance.
|
static boolean |
isSpatiallyRelated(SpatialOperator predicate,
Node node1,
Node node2)
Determines whether or not two GML geometry representations are spatially
related in some manner (e.g.
|
static boolean |
isWithinDistance(Node geom1,
Node geom2,
Element distanceWithUom)
Tests whether or not the minimum (orthodromic) distance between two
geometry objects is less than the specified distance.
|
(package private) static com.vividsolutions.jts.geom.Geometry |
setCRS(com.vividsolutions.jts.geom.Geometry g1,
CoordinateReferenceSystem crs)
Checks that the given geometry object uses the specified CRS.
|
(package private) static com.vividsolutions.jts.geom.Geometry |
toJTSGeometry(org.geotoolkit.gml.xml.AbstractGeometry gmlGeom)
Builds a JTS geometry object from a GML geometry object.
|
(package private) static org.geotoolkit.gml.xml.AbstractGeometry |
unmarshal(Node geomNode)
Creates a GML geometry object from a DOM node.
|
public static boolean isSpatiallyRelated(SpatialOperator predicate, Node node1, Node node2)
predicate - A spatial relationship (predicate).node1 - An Element node representing a GML geometry object.node2 - An Element node representing another GML geometry object.public static boolean isWithinDistance(Node geom1, Node geom2, Element distanceWithUom)
DWithin(A,B,d) ⇔ Distance(A,B) < d
The computed distance is the shortest distance between the two nearest points in the geometry instances, as measured along the surface of an ellipsoid.
The unit of measure identifier for the given distance must be either a standard symbol for a unit of length (from UCUM) or an absolute URI that refers to a unit definition (unsupported). SI prefix symbols may also be used (see examples in the table below).
| Symbol (c/s) | Name |
|---|---|
m |
metre |
km |
kilometre |
[mi_i] |
international mile |
[nmi_i] |
international nautical mile |
geom1 - An Element node representing a GML geometry instance.geom2 - An Element node representing some other GML geometry instance.distanceWithUom - An fes:Distance element with a unit of measurement.public static boolean isBeyond(Node g1, Node g2, Element distanceWithUom)
Beyond(A,B,d) ⇔ Distance(A,B) >= d
g1 - An Element node representing a GML geometry instance.g2 - An Element node representing some other GML geometry instance.distanceWithUom - An fes:Distance element with a unit of measurement.static com.vividsolutions.jts.geom.Geometry toJTSGeometry(org.geotoolkit.gml.xml.AbstractGeometry gmlGeom)
gmlGeom - A GML geometry.static org.geotoolkit.gml.xml.AbstractGeometry unmarshal(Node geomNode)
geomNode - A node representing a GML geometry instance.static com.vividsolutions.jts.geom.Geometry setCRS(com.vividsolutions.jts.geom.Geometry g1,
CoordinateReferenceSystem crs)
throws FactoryException,
TransformException
g1 - A JTS geometry object.crs - The target CRS.FactoryException - If a CRS cannot be identified (e.g. a missing or invalid
reference).TransformException - If any coordinate operation (conversion or transformation)
fails.Copyright © 2020 Open Geospatial Consortium. All rights reserved.