deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.framework.xml
Class MinMaxExtractor

java.lang.Object
  extended by org.deegree.framework.xml.MinMaxExtractor

public class MinMaxExtractor
extends java.lang.Object

Provides methods to XSLT-Sheets that determine the min/max coordinates of a gml geometry.

The submitted node parameter must be set to the root node of the geometry.

Since:
2.0
Version:
$Revision: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
MinMaxExtractor()
           
 
Method Summary
static java.lang.String getMaxAsArray(org.w3c.dom.Node node)
          returns the minimum coordinate of the envelope of the geometry encoded by the passed node as a double array
static java.lang.String getMinAsArray(org.w3c.dom.Node node)
          returns the minimum coordinate of the envelope of the geometry encoded by the passed node as a double array
static java.lang.String getPointX(org.w3c.dom.Node pointNode)
          Extracts the x value of a gml:Point element described by pointNode
static java.lang.String getPointY(org.w3c.dom.Node pointNode)
          Extracts the y value of a gml:Point element described by pointNode
static java.lang.String getSRSName(org.w3c.dom.Node node)
          returns the the name of the SRS of the geometry encoded by the passed node as a double array
static java.lang.String getXMax(org.w3c.dom.Node node)
           
static java.lang.String getXMin(org.w3c.dom.Node node)
           
static java.lang.String getYMax(org.w3c.dom.Node node)
           
static java.lang.String getYMin(org.w3c.dom.Node node)
           
static java.lang.String getZMax(org.w3c.dom.Node node)
           
static java.lang.String getZMin(org.w3c.dom.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinMaxExtractor

public MinMaxExtractor()
Method Detail

getXMax

public static java.lang.String getXMax(org.w3c.dom.Node node)
                                throws GeometryException
Parameters:
node -
Returns:
maximum x coordinate
Throws:
GeometryException

getXMin

public static java.lang.String getXMin(org.w3c.dom.Node node)
                                throws GeometryException
Parameters:
node -
Returns:
minimum x coordinate
Throws:
GeometryException

getYMax

public static java.lang.String getYMax(org.w3c.dom.Node node)
                                throws GeometryException
Parameters:
node -
Returns:
maximum y coordinate
Throws:
GeometryException

getYMin

public static java.lang.String getYMin(org.w3c.dom.Node node)
                                throws GeometryException
Parameters:
node -
Returns:
minimum y coordinate
Throws:
GeometryException

getZMin

public static java.lang.String getZMin(org.w3c.dom.Node node)
                                throws GeometryException
Parameters:
node -
Returns:
maximum z coordinate
Throws:
GeometryException

getZMax

public static java.lang.String getZMax(org.w3c.dom.Node node)
                                throws GeometryException
Parameters:
node -
Returns:
minimum z coordinate
Throws:
GeometryException

getPointX

public static java.lang.String getPointX(org.w3c.dom.Node pointNode)
                                  throws GeometryException
Extracts the x value of a gml:Point element described by pointNode

Parameters:
pointNode - the point node from which the x value will be extracted. For example, node is <gml:Point srsName="EPSG:31466"> <gml:coordinates cs="," decimal="." ts=" ">0.0,0.0</gml:coordinates> </gml:Point>
Returns:
the String representation of the x value
Throws:
GeometryException

getPointY

public static java.lang.String getPointY(org.w3c.dom.Node pointNode)
                                  throws GeometryException
Extracts the y value of a gml:Point element described by pointNode

Parameters:
pointNode - the point node from which the y value will be extracted. For example, node is <gml:Point srsName="EPSG:31466"> <gml:coordinates cs="," decimal="." ts=" ">0.0,0.0</gml:coordinates> </gml:Point>
Returns:
the String representation of the y value
Throws:
GeometryException

getMinAsArray

public static java.lang.String getMinAsArray(org.w3c.dom.Node node)
                                      throws GeometryException
returns the minimum coordinate of the envelope of the geometry encoded by the passed node as a double array

Parameters:
node -
Returns:
the minimum coordinate of the envelope of the geometry encoded by the passed node as a double array
Throws:
GeometryException

getMaxAsArray

public static java.lang.String getMaxAsArray(org.w3c.dom.Node node)
                                      throws GeometryException
returns the minimum coordinate of the envelope of the geometry encoded by the passed node as a double array

Parameters:
node -
Returns:
the minimum coordinate of the envelope of the geometry encoded by the passed node as a double array
Throws:
GeometryException

getSRSName

public static java.lang.String getSRSName(org.w3c.dom.Node node)
returns the the name of the SRS of the geometry encoded by the passed node as a double array

Parameters:
node -
Returns:
the the name of the SRS of the geometry.

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org