deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.framework.xml
Class MinMaxExtractor

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

public class MinMaxExtractor
extends 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 String getMaxAsArray(Node node)
          returns the minimum coordinate of the envelope of the geometry encoded by the passed node as a double array
static String getMinAsArray(Node node)
          returns the minimum coordinate of the envelope of the geometry encoded by the passed node as a double array
static String getPointX(Node pointNode)
          Extracts the x value of a gml:Point element described by pointNode
static String getPointY(Node pointNode)
          Extracts the y value of a gml:Point element described by pointNode
static String getSRSName(Node node)
          returns the the name of the SRS of the geometry encoded by the passed node as a double array
static String getXMax(Node node)
           
static String getXMin(Node node)
           
static String getYMax(Node node)
           
static String getYMin(Node node)
           
static String getZMax(Node node)
           
static String getZMin(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 String getXMax(Node node)
                      throws GeometryException
Parameters:
node -
Returns:
maximum x coordinate
Throws:
GeometryException

getXMin

public static String getXMin(Node node)
                      throws GeometryException
Parameters:
node -
Returns:
minimum x coordinate
Throws:
GeometryException

getYMax

public static String getYMax(Node node)
                      throws GeometryException
Parameters:
node -
Returns:
maximum y coordinate
Throws:
GeometryException

getYMin

public static String getYMin(Node node)
                      throws GeometryException
Parameters:
node -
Returns:
minimum y coordinate
Throws:
GeometryException

getZMin

public static String getZMin(Node node)
                      throws GeometryException
Parameters:
node -
Returns:
maximum z coordinate
Throws:
GeometryException

getZMax

public static String getZMax(Node node)
                      throws GeometryException
Parameters:
node -
Returns:
minimum z coordinate
Throws:
GeometryException

getPointX

public static String getPointX(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 String getPointY(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 String getMinAsArray(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 String getMaxAsArray(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 String getSRSName(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.3 (2010/04/09 10:10 build-4-official)

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