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

org.deegree.ogcbase
Class GMLDocument

java.lang.Object
  extended by org.deegree.framework.xml.XMLFragment
      extended by org.deegree.ogcbase.GMLDocument
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GMLFeatureDocument

public class GMLDocument
extends XMLFragment

Since:
1.1
Version:
$Revision: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deegree.framework.xml.XMLFragment
DEFAULT_URL, nsContext, XLNNS
 
Constructor Summary
GMLDocument()
           
 
Method Summary
static Envelope parseEnvelope(Element element)
          creates a Envelope from the passed element.
static Grid parseGrid(Element element)
          creates a Grid instance from the passed Element
static Point parsePos(Element element)
          creates a Point from the passed element containing a GML pos.
static TimePosition parseTimePosition(Element element)
          creates a TimePosition object from the passed element.
 
Methods inherited from class org.deegree.framework.xml.XMLFragment
getAsPrettyString, getAsString, getAttachedSchemas, getQualifiedName, getRootElement, getSystemId, hasSchema, load, load, load, parseQualifiedName, parseSimpleLink, prettyPrint, prettyPrint, resolve, setRootElement, setSystemId, setSystemId, toString, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GMLDocument

public GMLDocument()
Method Detail

parsePos

public static Point parsePos(Element element)
                      throws InvalidGMLException
creates a Point from the passed element containing a GML pos.

Parameters:
element -
Returns:
created Point
Throws:
InvalidGMLException

parseEnvelope

public static Envelope parseEnvelope(Element element)
                              throws InvalidGMLException,
                                     UnknownCRSException
creates a Envelope from the passed element. Because deegree geometry implementation doesn't use CRS for envelopes the srsName attribute of the passed element is ignored.

Parameters:
element -
Returns:
created Envelope
Throws:
InvalidGMLException
UnknownCRSException

parseTimePosition

public static TimePosition parseTimePosition(Element element)
                                      throws XMLParsingException,
                                             InvalidGMLException
creates a TimePosition object from the passed element.

Parameters:
element -
Returns:
created TimePosition
Throws:
XMLParsingException
InvalidGMLException

parseGrid

public static Grid parseGrid(Element element)
                      throws InvalidGMLException
creates a Grid instance from the passed Element

Parameters:
element -
Returns:
instance of Grid
Throws:
InvalidGMLException

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