|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.gml.geometry.GML2GeometryReader
public class GML2GeometryReader
The GML2GeometryReader
parses the geometry elements in GML 2.1 documents. The following geometries are
supported:
Constructor Summary | |
---|---|
GML2GeometryReader()
|
|
GML2GeometryReader(GeometryFactory geomFac,
GMLDocumentIdContext idContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GML2GeometryReader()
public GML2GeometryReader(GeometryFactory geomFac, GMLDocumentIdContext idContext)
geomFac
- idContext
- Method Detail |
---|
public GMLDocumentIdContext getDocumentIdContext()
GMLDocumentIdContext
that keeps track of objects, identifieres and references.
GMLDocumentIdContext
, never null
public Geometry parse(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
parse
in interface GMLGeometryReader
xmlStream
-
XMLStreamException
public boolean isGeometryElement(XMLStreamReader reader)
isGeometryElement
in interface GMLGeometryReader
XMLStreamConstants.START_ELEMENT
&& the current element's name is a
known geometry.public boolean isGeometryOrEnvelopeElement(XMLStreamReader reader)
isGeometryOrEnvelopeElement
in interface GMLGeometryReader
XMLStreamConstants.START_ELEMENT
&& the current element's name is an
envelope.public boolean isGeometryElement(QName elName)
elName
- qualified element name to check
public Geometry parse(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
parse
in interface GMLGeometryReader
xmlStream
- defaultCRS
-
XMLStreamException
public Geometry parseGeometryOrEnvelope(XMLStreamReaderWrapper xmlStream) throws XMLParsingException, XMLStreamException, UnknownCRSException
xmlStream
-
XMLParsingException
XMLStreamException
UnknownCRSException
public Geometry parseGeometryOrBox(XMLStreamReaderWrapper xmlStream) throws XMLParsingException, XMLStreamException, UnknownCRSException
xmlStream
-
XMLParsingException
XMLStreamException
UnknownCRSException
public Geometry parseGeometryOrBox(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLParsingException, XMLStreamException, UnknownCRSException
xmlStream
- defaultCRS
-
XMLParsingException
XMLStreamException
UnknownCRSException
public Geometry parseGeometryOrEnvelope(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLParsingException, XMLStreamException, UnknownCRSException
GMLGeometryReader
parseGeometryOrEnvelope
in interface GMLGeometryReader
XMLParsingException
XMLStreamException
UnknownCRSException
public MultiPolygon parseMultiPolygon(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
public MultiPolygon parseMultiPolygon(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
xmlStream
- defaultCRS
-
XMLStreamException
public MultiLineString parseMultiLineString(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
public MultiLineString parseMultiLineString(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
xmlStream
- defaultCRS
-
XMLStreamException
public MultiPoint parseMultiPoint(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
public MultiPoint parseMultiPoint(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
xmlStream
- defaultCRS
-
XMLStreamException
public MultiGeometry<Geometry> parseMultiGeometry(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
public MultiGeometry<Geometry> parseMultiGeometry(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
xmlStream
- defaultCRS
-
XMLStreamException
public Envelope parseEnvelope(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
public Envelope parseEnvelope(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
parseEnvelope
in interface GMLGeometryReader
xmlStream
- defaultCRS
-
XMLStreamException
public LineString parseLineString(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
public LineString parseLineString(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
xmlStream
- defaultCRS
-
XMLStreamException
public Polygon parsePolygon(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
public Polygon parsePolygon(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
xmlStream
- defaultCRS
-
XMLStreamException
public Ring parseLinearRing(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
public Ring parseLinearRing(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
xmlStream
- defaultCRS
-
XMLStreamException
public Point parsePoint(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
public Point parsePoint(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLStreamException
xmlStream
- defaultCRS
-
XMLStreamException
protected double[] parseCoordType(XMLStreamReaderWrapper xmlStream) throws XMLStreamException
xmlStream
-
XMLStreamException
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |