Package org.opengis.cite.cat30.util
Class SpatialUtils
java.lang.Object
org.opengis.cite.cat30.util.SpatialUtils
Utility methods pertaining to geographic data representations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Element
createGML32Envelope
(Node oldEnvNode) Creates a GML 3.2 envelope from a legacy GML 3.1 representation.static org.opengis.geometry.Envelope
envelopeFromSimpleGeoRSSBox
(Node boxNode) Creates an Envelope from a simple georss:box element.
-
Constructor Details
-
SpatialUtils
public SpatialUtils()
-
-
Method Details
-
envelopeFromSimpleGeoRSSBox
Creates an Envelope from a simple georss:box element. The coordinate reference system is EPSG 4326 (lat,lon axis order).- Parameters:
boxNode
- An Element node (georss:box) containing the coordinates of the lower and upper corners.- Returns:
- An Envelope object representing the given spatial extent, or null if it cannot be constructed (a runtime exception may have occurred).
- See Also:
-
createGML32Envelope
Creates a GML 3.2 envelope from a legacy GML 3.1 representation.- Parameters:
oldEnvNode
- An element node representing a GML 3.1 envelope.- Returns:
- A new gml:Envelope element, or null if the source node is not a GML 3.1 envelope.
-