Class SpatialUtils

java.lang.Object
org.opengis.cite.cat30.util.SpatialUtils

public class SpatialUtils extends Object
Utility methods pertaining to geographic data representations.
  • Constructor Details

    • SpatialUtils

      public SpatialUtils()
  • Method Details

    • envelopeFromSimpleGeoRSSBox

      public static org.opengis.geometry.Envelope envelopeFromSimpleGeoRSSBox(Node boxNode)
      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

      public static Element createGML32Envelope(Node oldEnvNode)
      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.