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: 29642 $, $Date: 2011-02-11 13:59:33 +0100 (Fri, 11 Feb 2011) $
- Author:
- Andrei Ionita, last edited by: $Author: lbuesching $
parse
Geometry parse(XMLStreamReaderWrapper xmlStream)
throws XMLParsingException,
XMLStreamException,
UnknownCRSException
- Parameters:
xmlStream
-
- Returns:
-
- Throws:
XMLParsingException
XMLStreamException
UnknownCRSException
parse
Geometry parse(XMLStreamReaderWrapper xmlStream,
ICRS defaultCRS)
throws XMLParsingException,
XMLStreamException,
UnknownCRSException
- Parameters:
xmlStream
- defaultCRS
-
- Returns:
-
- Throws:
XMLParsingException
XMLStreamException
UnknownCRSException
parseEnvelope
Envelope parseEnvelope(XMLStreamReaderWrapper xmlStream,
ICRS 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,
ICRS 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
Copyright © 2011. All Rights Reserved.