deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.gml.geometry
Interface GMLGeometryReader

All Known Implementing Classes:
GML2GeometryReader, GML3GeometryReader

public interface GMLGeometryReader

Interface for all version of GML geometry decoders. Any new geometry decoder should implement this interface.

Version:
$Revision: 22821 $, $Date: 2010-03-03 17:34:11 +0100 (Mi, 03 Mrz 2010) $
Author:
Andrei Ionita, last edited by: $Author: rbezema $

Method Summary
 boolean isGeometryElement(XMLStreamReader xmlReader)
           
 boolean isGeometryOrEnvelopeElement(XMLStreamReader xmlReader)
           
 Geometry parse(XMLStreamReaderWrapper xmlStream)
           
 Geometry parse(XMLStreamReaderWrapper xmlStream, CRS defaultCRS)
           
 Envelope parseEnvelope(XMLStreamReaderWrapper xmlStream, CRS defaultCRS)
           
 Geometry parseGeometryOrEnvelope(XMLStreamReaderWrapper xmlStream, CRS defaultCRS)
          Parse the current geometry or envelope the given stream is pointing to.
 

Method Detail

parse

Geometry parse(XMLStreamReaderWrapper xmlStream)
               throws XMLParsingException,
                      XMLStreamException,
                      UnknownCRSException
Parameters:
xmlStream -
Returns:
Throws:
XMLParsingException
XMLStreamException
UnknownCRSException

parse

Geometry parse(XMLStreamReaderWrapper xmlStream,
               CRS defaultCRS)
               throws XMLParsingException,
                      XMLStreamException,
                      UnknownCRSException
Parameters:
xmlStream -
defaultCRS -
Returns:
Throws:
XMLParsingException
XMLStreamException
UnknownCRSException

parseEnvelope

Envelope parseEnvelope(XMLStreamReaderWrapper xmlStream,
                       CRS defaultCRS)
                       throws XMLParsingException,
                              XMLStreamException
Parameters:
xmlStream -
defaultCRS -
Returns:
Throws:
XMLParsingException
XMLStreamException

isGeometryElement

boolean isGeometryElement(XMLStreamReader xmlReader)
Parameters:
xmlReader -
Returns:
true if stream's event is an XMLStreamConstants.START_ELEMENT && the current element's name is a known geometry.

isGeometryOrEnvelopeElement

boolean isGeometryOrEnvelopeElement(XMLStreamReader xmlReader)
Parameters:
xmlReader -
Returns:
true if stream's event is an XMLStreamConstants.START_ELEMENT && the current element's name is an envelope.

parseGeometryOrEnvelope

Geometry parseGeometryOrEnvelope(XMLStreamReaderWrapper xmlStream,
                                 CRS defaultCRS)
                                 throws XMLParsingException,
                                        XMLStreamException,
                                        UnknownCRSException
Parse the current geometry or envelope the given stream is pointing to.

Parameters:
xmlStream -
Returns:
the Geometry (or Envelope) the given stream is pointing to.
Throws:
XMLParsingException
XMLStreamException
UnknownCRSException

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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

]]>