public class GmlUtils extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GmlUtils.GmlNamespaceContext
A NamespaceContext that only recognizes the conventional "gml" namespace
prefix.
|
(package private) static class |
GmlUtils.NodeNamespaceContext
A NamespaceContext that provides the in-scope namespace bindings for a
given DOM Node.
|
Modifier and Type | Field and Description |
---|---|
static String |
GML_NS |
static String |
SRS_NAME |
Constructor and Description |
---|
GmlUtils() |
Modifier and Type | Method and Description |
---|---|
static com.vividsolutions.jts.geom.Geometry |
computeConvexHull(org.geotoolkit.gml.xml.AbstractGeometry gmlGeom)
Calculates the planar convex hull of the given GML geometry element.
|
static String |
findCRSReference(Element geom)
Returns the value of the srsName attribute for the given geometry
element.
|
static void |
setSrsNameOnCollectionMembers(Node... geometryNodes)
Sets the srsName attribute on all members of a GML geometry collection if
it is specified for the collection.
|
public static final String SRS_NAME
public static final String GML_NS
public static com.vividsolutions.jts.geom.Geometry computeConvexHull(org.geotoolkit.gml.xml.AbstractGeometry gmlGeom)
gmlGeom
- A GML geometry element.Polygon
if the hull
contains 3 or more points; fewer points will produce a
LineString
or a Point
.public static void setSrsNameOnCollectionMembers(Node... geometryNodes)
geometryNodes
- A sequence of GML geometry elements.public static String findCRSReference(Element geom)
As a side effect, an implicit CRS reference will be added to the element using the inherited srsName value.
geom
- An Element representing a GML geometry object.Copyright © 2013. All rights reserved.