|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.gml.geometry.GML3GeometryReader
public class GML3GeometryReader
Parser for geometry and geometry-related constructs from the GML 3 specification series (3.0/3.1/3.2).
Supports the following geometry elements:
Point
LineString
Curve
OrientableCurve
CompositeCurve
LinearRing
Ring
Polygon
Surface
CompositeSurface
OrientableSurface
PolyhedralSurface
Surface
Tin
TriangulatedSurface
Solid
CompositeSolid
GeometricComplex
MultiPoint
MultiLineString
MultiCurve
MultiPolygon
MultiSurface
MultiGeometry
Additionally, parsing of Envelope
elements is supported, parseEnvelope(XMLStreamReaderWrapper)
and parseGeometryOrEnvelope(XMLStreamReaderWrapper)
.
TODO Currently unsupported are the elements from the _ImplicitGeometry
substitution group, i.e.
Grid
and RectifiedGrid
).
Field Summary | |
---|---|
protected org.deegree.geometry.GeometryFactory |
geomFac
|
protected String |
gmlNs
Namespace for the parsed GML elements, either CommonNamespaces.GMLNS or
CommonNamespaces.GML3_2_NS . |
protected GMLVersion |
version
|
Constructor Summary | |
---|---|
GML3GeometryReader(GMLVersion version,
org.deegree.geometry.GeometryFactory geomFac,
GMLDocumentIdContext idContext,
int defaultCoordDim)
Creates a new GML3GeometryReader instance. |
Method Summary | |
---|---|
protected org.deegree.cs.coordinatesystems.ICRS |
determineActiveCRS(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Determines the active CRS using the value of the srsName attribute of the current geometry
element. |
protected int |
determineCoordDimensions(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
int defaultCoordDimensions)
Applies a simple heuristic to determine the number of coordinate dimensions. |
GMLDocumentIdContext |
getDocumentIdContext()
Returns the GMLDocumentIdContext that keeps track of objects, identifieres and references. |
boolean |
isGeometryElement(QName elName)
Returns whether the given element name denotes a GML 3.1.1 geometry element (a concrete element substitutable for "gml:_Geometry"). |
boolean |
isGeometryElement(XMLStreamReader reader)
|
boolean |
isGeometryOrEnvelopeElement(QName elName)
Returns whether the given element name denotes a GML 3.1.1 geometry (a concrete element substitutable for "gml:_Geometry") or envelope element. |
boolean |
isGeometryOrEnvelopeElement(XMLStreamReader reader)
|
org.deegree.geometry.Geometry |
parse(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
Returns the object representation for the given gml:_Geometry element event that the cursor of the
associated XMLStreamReader points at. |
org.deegree.geometry.Geometry |
parse(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation for the given gml:_Geometry element event that the cursor of the
associated XMLStreamReader points at. |
org.deegree.geometry.primitive.Curve |
parseAbstractCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation for the given gml:_Curve element event that the cursor of the
associated XMLStreamReader points at. |
org.deegree.geometry.Geometry |
parseAbstractGeometricComplex(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.CRS defaultCRS)
Returns the object representation for the given gml:_Geometry event that represents a geometric
complex (either gml:CompositeCurve , gml:CompositeSolid ,
gml:CompositeSurface or gml:GeometricComplex ), that the cursor of the given
XMLStreamReader points at. |
org.deegree.geometry.primitive.Ring |
parseAbstractRing(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a (<gml:_Ring>) element. |
org.deegree.geometry.primitive.Solid |
parseAbstractSolid(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:_Solid element. |
org.deegree.geometry.primitive.Surface |
parseAbstractSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a (<gml:_Surface>) element. |
protected org.deegree.commons.uom.Angle |
parseAngleType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
|
org.deegree.geometry.composite.CompositeCurve |
parseCompositeCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:CompositeCurve element. |
org.deegree.geometry.composite.CompositeSolid |
parseCompositeSolid(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:CompositeSolid element. |
org.deegree.geometry.composite.CompositeSurface |
parseCompositeSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:CompositeSurface element. |
protected List<org.deegree.geometry.primitive.Point> |
parseCoordinates(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS crs)
|
protected double[] |
parseCoordType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
|
org.deegree.geometry.primitive.Curve |
parseCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:Curve element. |
org.deegree.geometry.primitive.Curve |
parseCurveProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of an element with type gml:CurvePropertyType (such as
gml:curveProperty ). |
protected org.deegree.geometry.primitive.Point |
parseDirectPositionType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
|
protected double[] |
parseDoubleList(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
|
org.deegree.geometry.Envelope |
parseEnvelope(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
Returns the object representation of a gml:Envelope element. |
org.deegree.geometry.Envelope |
parseEnvelope(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:Envelope element. |
org.deegree.geometry.multi.MultiGeometry<? extends org.deegree.geometry.Geometry> |
parseGeometricAggregate(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation for the given gml:_GeometricAggregate element event that the
cursor of the given XMLStreamReader points at. |
org.deegree.geometry.composite.CompositeGeometry<org.deegree.geometry.primitive.GeometricPrimitive> |
parseGeometricComplex(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:GeometricComplex element. |
org.deegree.geometry.primitive.GeometricPrimitive |
parseGeometricPrimitive(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation for the given gml:_GeometricPrimitive element event that the
cursor of the associated XMLStreamReader points at. |
org.deegree.geometry.primitive.GeometricPrimitive |
parseGeometricPrimitiveProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of an element with type gml:GeometricPrimitivePropertyType (such
as gml:element ). |
org.deegree.geometry.Geometry |
parseGeometryOrEnvelope(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
Returns the object representation for the given gml:_Geometry/gml:Envelope element event that the
cursor of the associated XMLStreamReader points at. |
org.deegree.geometry.Geometry |
parseGeometryOrEnvelope(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation for the given gml:_Geometry/gml:Envelope element event that the
cursor of the associated XMLStreamReader points at. |
org.deegree.geometry.Geometry |
parseGeometryProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of an element with type gml:GeometryPropertyType (such as
gml:geometryMember ). |
org.deegree.geometry.Geometry |
parseImplicitGeometry(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation for the given gml:_ImplicitGeometry element event that the cursor
of the associated XMLStreamReader points at. |
protected org.deegree.commons.uom.Length |
parseLengthType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
|
org.deegree.geometry.primitive.LinearRing |
parseLinearRing(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:LinearRing element. |
org.deegree.geometry.primitive.LineString |
parseLineString(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:LineString element. |
org.deegree.geometry.primitive.LineString |
parseLineStringProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of an element with type gml:LineStringPropertyType (such as
gml:lineStringProperty ). |
protected org.deegree.commons.uom.Measure |
parseMeasureType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
|
org.deegree.geometry.multi.MultiCurve |
parseMultiCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:MultiCurve element. |
org.deegree.geometry.multi.MultiGeometry<org.deegree.geometry.Geometry> |
parseMultiGeometry(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:MultiGeometry element. |
org.deegree.geometry.multi.MultiLineString |
parseMultiLineString(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:MultiLineString element. |
org.deegree.geometry.multi.MultiPoint |
parseMultiPoint(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:MultiPoint element. |
org.deegree.geometry.multi.MultiPolygon |
parseMultiPolygon(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:MultiPolygon element. |
org.deegree.geometry.multi.MultiSolid |
parseMultiSolid(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:MultiSolid element. |
org.deegree.geometry.multi.MultiSurface |
parseMultiSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:MultiSurface element. |
org.deegree.geometry.primitive.OrientableCurve |
parseOrientableCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:OrientableCurve element. |
org.deegree.geometry.primitive.OrientableSurface |
parseOrientableSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:OrientableSurface element. |
protected boolean |
parseOrientation(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
Parses the orientation attribute from element that the associated XMLStreamReader
points to. |
org.deegree.geometry.primitive.Point |
parsePoint(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a (<gml:Point>) element. |
org.deegree.geometry.primitive.Point |
parsePointProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of an element with type gml:PointPropertyType (such as
gml:pointProperty ). |
org.deegree.geometry.primitive.Polygon |
parsePolygon(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a (<gml:Polygon>) element. |
org.deegree.geometry.primitive.Polygon |
parsePolygonProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of an element with type gml:PolygonPropertyType (such as
gml:polygonProperty ). |
org.deegree.geometry.primitive.PolyhedralSurface |
parsePolyhedralSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a (<gml:PolyhedralSurface>) element. |
protected List<org.deegree.geometry.primitive.Point> |
parsePosList(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS crs)
|
org.deegree.geometry.primitive.Ring |
parseRing(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a gml:Ring element. |
org.deegree.geometry.primitive.Solid |
parseSolid(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a (<gml:Solid>) element. |
org.deegree.geometry.primitive.Solid |
parseSolidProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of an element with type gml:SolidPropertyType (such as
gml:solidProperty ). |
org.deegree.geometry.primitive.Surface |
parseSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a (<gml:Surface>) element. |
org.deegree.geometry.primitive.Surface |
parseSurfaceProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of an element with type gml:SurfacePropertyType (such as
gml:surfaceProperty ). |
org.deegree.geometry.primitive.Tin |
parseTin(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a (<gml:Tin>) element. |
org.deegree.geometry.primitive.TriangulatedSurface |
parseTriangulatedSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream,
org.deegree.cs.coordinatesystems.ICRS defaultCRS)
Returns the object representation of a (<gml:TriangulatedSurface>) element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final GMLVersion version
protected final String gmlNs
CommonNamespaces.GMLNS
or
CommonNamespaces.GML3_2_NS
.
protected final org.deegree.geometry.GeometryFactory geomFac
Constructor Detail |
---|
public GML3GeometryReader(GMLVersion version, org.deegree.geometry.GeometryFactory geomFac, GMLDocumentIdContext idContext, int defaultCoordDim)
GML3GeometryReader
instance.
version
- either GMLVersion.GML_30
, GMLVersion.GML_31
or GMLVersion.GML_32
geomFac
- geometry factory to be used for creating geometry objects, can be null
idContext
- id context for keeping track of objects and references, can be null
Method Detail |
---|
public GMLDocumentIdContext getDocumentIdContext()
GMLDocumentIdContext
that keeps track of objects, identifieres and references.
GMLDocumentIdContext
, never null
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 boolean isGeometryOrEnvelopeElement(QName elName)
elName
- qualified element name to check
public org.deegree.geometry.Geometry parse(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:_Geometry
element event that the cursor of the
associated XMLStreamReader
points at.
START_ELEMENT
event (<gml:_Geometry>)END_ELEMENT
event (</gml:_Geometry>)
GML 3.1.1 specifies the following elements to be directly substitutable for gml:_Geometry
:
_GeometricPrimitive
_Ring
_GeometricAggregate
GeometricComplex
_ImplicitGeometry
parse
in interface GMLGeometryReader
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_Geometry>), points at the
corresponding END_ELEMENT
event (</gml:_Geometry>) afterwards
Geometry
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid "gml:_Geometry" element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.Geometry parse(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:_Geometry
element event that the cursor of the
associated XMLStreamReader
points at.
START_ELEMENT
event (<gml:_Geometry>)END_ELEMENT
event (</gml:_Geometry>)
GML 3.1.1 specifies the following elements to be directly substitutable for gml:_Geometry
:
_GeometricPrimitive
_Ring
_GeometricAggregate
GeometricComplex
_ImplicitGeometry
parse
in interface GMLGeometryReader
xmlStream
- cursor must point at the jec
event (<gml:_Geometry>), points at the corresponding
END_ELEMENT
event (</gml:_Geometry>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the geometry element has no own
srsName
attribute
Geometry
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid "gml:_Geometry" element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.Geometry parseGeometryOrEnvelope(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:_Geometry/gml:Envelope
element event that the
cursor of the associated XMLStreamReader
points at.
START_ELEMENT
event (<gml:_Geometry> or
<gml:Envelope>)END_ELEMENT
event (</gml:_Geometry> or
<gml:Envelope>)
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_Geometry> or
<gml:Envelope>), points at the corresponding END_ELEMENT
event
(</gml:_Geometry> or <gml:Envelope>) afterwards
Geometry
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid gml:_Geometry
or gml:Envelope
element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.Geometry parseGeometryOrEnvelope(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:_Geometry/gml:Envelope
element event that the
cursor of the associated XMLStreamReader
points at.
START_ELEMENT
event (<gml:_Geometry> or
<gml:Envelope>)END_ELEMENT
event (</gml:_Geometry> or
<gml:Envelope>)
parseGeometryOrEnvelope
in interface GMLGeometryReader
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_Geometry> or
<gml:Envelope>), points at the corresponding END_ELEMENT
event
(</gml:_Geometry> or <gml:Envelope>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the geometry element has no own
srsName
attribute
Geometry
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid gml:_Geometry
or gml:Envelope
element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.primitive.GeometricPrimitive parseGeometricPrimitive(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:_GeometricPrimitive
element event that the
cursor of the associated XMLStreamReader
points at.
START_ELEMENT
event (<gml:_GeometricPrimitive>)END_ELEMENT
event
(</gml:_GeometricPrimitive>)
GML 3.1.1 specifies the following elements to be directly substitutable for
gml:_GeometricPrimitive
:
Point
_Curve
_Surface
_Solid
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_GeometricPrimitive>), points at
the corresponding END_ELEMENT
event (</gml:_GeometricPrimitive>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the geometry element has no own
srsName
attribute
GeometricPrimitive
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid gml:_GeometricPrimitive
element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.multi.MultiGeometry<? extends org.deegree.geometry.Geometry> parseGeometricAggregate(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:_GeometricAggregate
element event that the
cursor of the given XMLStreamReader
points at.
START_ELEMENT
event (<gml:_GeometricAggregate>)END_ELEMENT
event
(</gml:_GeometricAggregate>)
GML 3.1.1 specifies the following concrete elements to be substitutable for gml:_GeometricAggregate
:
MultiCurve
MultiGeometry
MultiLineString
MultiPoint
MultiPolygon
MultiSolid
MultiSurface
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_GeometricAggregate>), points at
the corresponding END_ELEMENT
event (</gml:_GeometricAggregate>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the geometry element has no own
srsName
attribute
MultiGeometry
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid "gml:_GeometricAggregate" element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.Geometry parseAbstractGeometricComplex(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.CRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:_Geometry
event that represents a geometric
complex (either gml:CompositeCurve
, gml:CompositeSolid
,
gml:CompositeSurface
or gml:GeometricComplex
), that the cursor of the given
XMLStreamReader
points at.
START_ELEMENT
eventEND_ELEMENT
eventGML 3.1.1 specifies the following four concrete geometry elements with an geometry complex semantic:
CompositeCurve
CompositeSolid
CompositeSurface
GeometricComplex
NOTE: For technical reasons (XML Schema does not support multiple inheritance), there is no substitution group
gml:_GeometricComplex
defined in the GML schemas. However, it is described in the comments.
xmlStream
- cursor must point at the START_ELEMENT
event, points at the corresponding
END_ELEMENT
event afterwardsdefaultCRS
- default crs for the geometry, this is only used if the geometry element has no own
srsName
attribute
Geometry
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid "gml:_Geometry" element with geometric complex semantic
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.Geometry parseImplicitGeometry(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException
gml:_ImplicitGeometry
element event that the cursor
of the associated XMLStreamReader
points at.
START_ELEMENT
event (<gml:_ImplicitGeometry>)END_ELEMENT
event
(</gml:_GeometricAggregate>)
GML 3.1.1 specifies the following two concrete elements to be substitutable for
gml:_ImplicitGeometry
:
Grid
RectifiedGrid
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_ImplicitGeometry>), points at
the corresponding END_ELEMENT
event (</gml:_ImplicitGeometry>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the geometry element has no own
srsName
attribute
Geometry
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid "gml:_ImplicitGeometry" element
XMLStreamException
public org.deegree.geometry.primitive.Curve parseAbstractCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:_Curve
element event that the cursor of the
associated XMLStreamReader
points at.
GML 3.1.1 specifies the following elements to be substitutable for gml:_Curve
:
CompositeCurve
Curve
LineString
OrientableCurve
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_Curve>), points at the
corresponding END_ELEMENT
event (</gml:_Curve>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the geometry element has no own
srsName
attribute
Curve
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid "gml:_Curve" element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.primitive.Ring parseAbstractRing(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
XMLStream
.
GML 3.1.1 specifies the following elements to be substitutable for gml:_Ring
:
LinearRing
Ring
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_Ring>), points at the
corresponding END_ELEMENT
event (</gml:_Ring>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the geometry element has no own
srsName
attribute
Ring
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid "gml:_Ring" element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.primitive.Surface parseAbstractSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
XMLStream
.
GML 3.1.1 specifies the following seven elements to be substitutable for gml:_Surface
:
Polygon
CompositeSurface
OrientableSurface
PolyhedralSurface
Surface
Tin
TriangulatedSurface
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_Surface>), points at the
corresponding END_ELEMENT
event (</gml:_Surface>) afterwardsdefaultCRS
- default CRS for the geometry, this is only use CoordinateSystem the geometry element has no own
srsName
attribute
Surface
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid "gml:_Surface" element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.primitive.Solid parseAbstractSolid(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:_Solid
element. Consumes all corresponding events from
the associated XMLStream
.
GML 3.1.1 specifies the following two elements to be substitutable for gml:_Solid
elements:
CompositeSolid
Solid
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_Solid>), points at the
corresponding END_ELEMENT
event (</gml:_Solid>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the geometry element has no own
srsName
attribute
Solid
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid "gml:_Solid" element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.primitive.Point parsePoint(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
XMLStream
.
START_ELEMENT
event (<gml:Point>)END_ELEMENT
(</gml:Point>)
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:Point>), points at the
corresponding END_ELEMENT
event (</gml:Point>) afterwardsdefaultCRS
- default CRS for the geometry, this is used if the "gml:Point" has no srsName
attribute
Point
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid gml:Point
element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
public org.deegree.geometry.primitive.LineString parseLineString(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:LineString
element. Consumes all corresponding events
from the given XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:LineString>), points at the
corresponding END_ELEMENT
event (</gml:LineString>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:LineString
has no
srsName
attribute
LineString
object
org.deegree.commons.xml.XMLParsingException
- if the element is not a valid gml:LineString
element
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Curve parseCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:Curve
element. Consumes all corresponding events from the
associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:Curve>), points at the
corresponding END_ELEMENT
event (</gml:Curve>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:Curve
has no
srsName
attribute
Curve
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.OrientableCurve parseOrientableCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:OrientableCurve
element. Consumes all corresponding
events from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:OrientableCurve>), points at the
corresponding END_ELEMENT
event (</gml:OrientableCurve>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:OrientableCurve
has no
srsName
attribute
OrientableCurve
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.LinearRing parseLinearRing(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:LinearRing
element. Consumes all corresponding events
from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:LinearRing>), points at the
corresponding END_ELEMENT
event (</gml:LinearRing>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:LinearRing
element has no
srsName
attribute
Ring
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Ring parseRing(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:Ring
element. Consumes all corresponding events from the
given XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:Ring>), points at the
corresponding END_ELEMENT
event (</gml:Ring>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:Ring
element has no
srsName
attribute
Ring
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Polygon parsePolygon(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:Polygon>), points at the
corresponding END_ELEMENT
event (</gml:Polygon>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the "gml:Polygon" has no srsName
attribute
Polygon
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Surface parseSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:Surface>), points at the
corresponding END_ELEMENT
event (</gml:Surface>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the "gml:Surface" has no srsName
attribute
Surface
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.PolyhedralSurface parsePolyhedralSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:PolyhedralSurface>), points at
the corresponding END_ELEMENT
event (</gml:PolyhedralSurface>) afterwardsdefaultCRS
- default CoordinateSystem for the geometry, this is only used if the "gml:PolyhedralSurface" has no
srsName
attribute
PolyhedralSurface
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.TriangulatedSurface parseTriangulatedSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:TriangulatedSurface>), points at
the corresponding END_ELEMENT
event (</gml:TriangulatedSurface>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the "gml:TriangulatedSurface" has no
srsName
attribute
TriangulatedSurface
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Tin parseTin(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
XMLStream
.
Note: GML 3.1.1 specifies both "gml:trianglePatches" and "gml:controlPoint" properties for "gml:Tin". This is
apparently redundant, and consequently (?) GML 3.2.1 only allows the controlPoint property here. This method
copes with this by only using the controlPoints for building the Tin
object.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:Tin>), points at the
corresponding END_ELEMENT
event (</gml:Tin>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the "gml:Tin" has no srsName
attribute
Tin
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.OrientableSurface parseOrientableSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:OrientableSurface
element. Consumes all corresponding
events from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:OrientableSurface>), points at
the corresponding END_ELEMENT
event (</gml:OrientableSurface>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:OrientableSurface
has no
srsName
attribute
OrientableSurface
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Solid parseSolid(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:Solid>), points at the
corresponding END_ELEMENT
event (</gml:Solid>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the "gml:Solid" has no srsName
attribute
Solid
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.composite.CompositeCurve parseCompositeCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.cs.exceptions.UnknownCRSException
gml:CompositeCurve
element. Consumes all corresponding events
from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:CompositeCurve>), points at the
corresponding END_ELEMENT
event (</gml:CompositeCurve>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:CompositeCurve
has no
srsName
attribute
CompositeCurve
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.composite.CompositeSurface parseCompositeSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:CompositeSurface
element. Consumes all corresponding
events from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:CompositeSurface>), points at
the corresponding END_ELEMENT
event (</gml:CompositeSurface>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:CompositeSurface
has no
srsName
attribute
CompositeSurface
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.composite.CompositeSolid parseCompositeSolid(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:CompositeSolid
element. Consumes all corresponding events
from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:CompositeSolid>), points at the
corresponding END_ELEMENT
event (</gml:CompositeSolid>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:CompositeSolid
has no
srsName
attribute
CompositeSolid
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.composite.CompositeGeometry<org.deegree.geometry.primitive.GeometricPrimitive> parseGeometricComplex(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:GeometricComplex
element. Consumes all corresponding
events from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:GeometricComplex>), points at
the corresponding END_ELEMENT
event (</gml:GeometricComplex>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:GeometricComplex
has no
srsName
attribute
CompositeGeometry
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.multi.MultiPoint parseMultiPoint(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:MultiPoint
element. Consumes all corresponding events
from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:MultiPoint>), points at the
corresponding END_ELEMENT
event (</gml:MultiPoint>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:MultiPoint
has no
srsName
attribute
MultiPoint
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.multi.MultiCurve parseMultiCurve(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:MultiCurve
element. Consumes all corresponding events
from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:MultiCurve>), points at the
corresponding END_ELEMENT
event (</gml:MultiCurve>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:MultiCurve
has no
srsName
attribute
MultiCurve
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.multi.MultiLineString parseMultiLineString(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:MultiLineString
element. Consumes all corresponding
events from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:MultiLineString>), points at the
corresponding END_ELEMENT
event (</gml:MultiLineString>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:MultiLineString
has no
srsName
attribute
MultiLineString
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.multi.MultiSurface parseMultiSurface(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:MultiSurface
element. Consumes all corresponding events
from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:MultiSurface>), points at the
corresponding END_ELEMENT
event (</gml:MultiSurface>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:MultiSurface
has no
srsName
attribute
MultiSurface
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.multi.MultiPolygon parseMultiPolygon(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:MultiPolygon
element. Consumes all corresponding events
from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:MultiPolygon>), points at the
corresponding END_ELEMENT
event (</gml:MultiPolygon>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:MultiPolygon
has no
srsName
attribute
MultiPolygon
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.multi.MultiSolid parseMultiSolid(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:MultiSolid
element. Consumes all corresponding events
from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:MultiSolid>), points at the
corresponding END_ELEMENT
event (</gml:MultiSolid>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:MultiSolid
has no
srsName
attribute
MultiSolid
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.multi.MultiGeometry<org.deegree.geometry.Geometry> parseMultiGeometry(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:MultiGeometry
element. Consumes all corresponding events
from the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:MultiGeometry>), points at the
corresponding END_ELEMENT
event (</gml:MultiGeometry>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the gml:MultiGeometry
has no
srsName
attribute
MultiGeometry
object
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.Envelope parseEnvelope(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException
gml:Envelope
element. Consumes all corresponding events from
the associated XMLStream
.
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:Envelope>), points at the
corresponding END_ELEMENT
event (</gml:Envelope>) afterwards
Envelope
object
XMLStreamException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.Envelope parseEnvelope(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException
gml:Envelope
element. Consumes all corresponding events from
the associated XMLStream
.
parseEnvelope
in interface GMLGeometryReader
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:Envelope>), points at the
corresponding END_ELEMENT
event (</gml:Envelope>) afterwardsdefaultCRS
- default CRS for the envelope, this is only used if the gml:Envelope
has no
srsName
attribute itself
Envelope
object
XMLStreamException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Point parsePointProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:PointPropertyType
(such as
gml:pointProperty
). Consumes all corresponding events from the given XMLStream
.
The point value may be specified using an inline gml:Point
element or using an
xlink:href
attribute. In the latter case, a PointReference
object is returned.
xmlStream
- cursor must point at the START_ELEMENT
event, points at the corresponding
END_ELEMENT
event afterwardsdefaultCRS
- default CRS for the geometry, this is used if the contained "gml:Point" has no srsName
attribute
Point
object, this is a PointReference
if the content is specified using
xlink
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.LineString parseLineStringProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:LineStringPropertyType
(such as
gml:lineStringProperty
). Consumes all corresponding events from the given XMLStream
.
The LineString value may be specified using an inline gml:LineString
element or using an
xlink:href
attribute. In the latter case, a LineStringReference
object is returned.
xmlStream
- cursor must point at the START_ELEMENT
event, points at the corresponding
END_ELEMENT
event afterwardsdefaultCRS
- default CRS for the geometry, this is used if the contained "gml:LineString" has no
srsName
attribute
LineString
object, this is a LineStringReference
if the content is
specified using xlink
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Curve parseCurveProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:CurvePropertyType
(such as
gml:curveProperty
). Consumes all corresponding events from the given XMLStream
.
The curve value may be specified using an inline gml:_Curve
element or using an
xlink:href
attribute. In the latter case, a CurveReference
object is returned.
xmlStream
- cursor must point at the START_ELEMENT
event, points at the corresponding
END_ELEMENT
event afterwardsdefaultCRS
- default CRS for the geometry, this is used if the contained "gml:_Curve" has no srsName
attribute
Curve
object, this is a CurveReference
if the content is specified using
xlink
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Polygon parsePolygonProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:PolygonPropertyType
(such as
gml:polygonProperty
). Consumes all corresponding events from the given XMLStream
.
The polygon value may be specified using an inline gml:Polygon
element or using an
xlink:href
attribute. In the latter case, a PolygonReference
object is returned.
xmlStream
- cursor must point at the START_ELEMENT
event, points at the corresponding
END_ELEMENT
event afterwardsdefaultCRS
- default CRS for the geometry, this is used if the contained "gml:Polygon" has no srsName
attribute
Polygon
object, this is a PolygonReference
if the content is specified
using xlink
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Surface parseSurfaceProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:SurfacePropertyType
(such as
gml:surfaceProperty
). Consumes all corresponding events from the given XMLStream
.
The curve value may be specified using an inline gml:_Surface
element or using an
xlink:href
attribute. In the latter case, a SurfaceReference
object is returned.
xmlStream
- cursor must point at the START_ELEMENT
event, points at the corresponding
END_ELEMENT
event afterwardsdefaultCRS
- default CRS for the geometry, this is used if the contained "gml:_Surface" has no srsName
attribute
Surface
object, this is a SurfaceReference
if the content is specified
using xlink
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.Solid parseSolidProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:SolidPropertyType
(such as
gml:solidProperty
). Consumes all corresponding events from the given XMLStream
.
The solid value may be specified using an inline gml:Solid
element or using an
xlink:href
attribute. In the latter case, a SolidReference
object is returned.
xmlStream
- cursor must point at the START_ELEMENT
event, points at the corresponding
END_ELEMENT
event afterwardsdefaultCRS
- default CRS for the geometry, this is used if the contained "gml:Solid" has no srsName
attribute
Solid
object, this is a SolidReference
if the content is specified using
xlink
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.primitive.GeometricPrimitive parseGeometricPrimitiveProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:GeometricPrimitivePropertyType
(such
as gml:element
). Consumes all corresponding events from the given XMLStream
.
The solid value may be specified using an inline gml:_GeometricPrimitive
element or using an
xlink:href
attribute. In the latter case, a GeometricPrimitiveReference
object is returned.
xmlStream
- cursor must point at the START_ELEMENT
event, points at the corresponding
END_ELEMENT
event afterwardsdefaultCRS
- default CRS for the geometry, this is used if the contained "gml:_GeometricPrimitive" has no
srsName
attribute
GeometricPrimitive
object, this is a GeometricPrimitiveReference
if the
content is specified using xlink
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
public org.deegree.geometry.Geometry parseGeometryProperty(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws XMLStreamException, org.deegree.commons.xml.XMLParsingException, org.deegree.cs.exceptions.UnknownCRSException
gml:GeometryPropertyType
(such as
gml:geometryMember
). Consumes all corresponding events from the given XMLStream
.
The geometry value may be specified using an inline gml:_Geometry
element or using an
xlink:href
attribute. In the latter case, a GeometryReference
object is returned.
xmlStream
- cursor must point at the START_ELEMENT
event, points at the corresponding
END_ELEMENT
event afterwardsdefaultCRS
- default CRS for the geometry, this is used if the contained "gml:_Geometry" has no
srsName
attribute
Geometry
object, this is a GeometryReference
if the content is specified
using xlink
XMLStreamException
org.deegree.cs.exceptions.UnknownCRSException
org.deegree.commons.xml.XMLParsingException
protected org.deegree.geometry.primitive.Point parseDirectPositionType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException
org.deegree.commons.xml.XMLParsingException
XMLStreamException
protected List<org.deegree.geometry.primitive.Point> parsePosList(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS crs) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException
org.deegree.commons.xml.XMLParsingException
XMLStreamException
protected List<org.deegree.geometry.primitive.Point> parseCoordinates(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS crs) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException
org.deegree.commons.xml.XMLParsingException
XMLStreamException
protected double[] parseCoordType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream) throws XMLStreamException
XMLStreamException
protected org.deegree.commons.uom.Length parseLengthType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream) throws XMLStreamException
XMLStreamException
protected org.deegree.commons.uom.Angle parseAngleType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream) throws XMLStreamException
XMLStreamException
protected org.deegree.commons.uom.Measure parseMeasureType(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream) throws XMLStreamException
XMLStreamException
protected org.deegree.cs.coordinatesystems.ICRS determineActiveCRS(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, org.deegree.cs.coordinatesystems.ICRS defaultCRS)
CRS
using the value of the srsName
attribute of the current geometry
element.
defaultCRS
- default CSR for the geometry, this is returned if the geometry element has no srsName
attribute
protected double[] parseDoubleList(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream) throws org.deegree.commons.xml.XMLParsingException, XMLStreamException
org.deegree.commons.xml.XMLParsingException
XMLStreamException
protected boolean parseOrientation(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream)
orientation
attribute from element that the associated XMLStreamReader
points to.
orientation is '+' or not present, false if the attribute is '-'
protected int determineCoordDimensions(org.deegree.commons.xml.stax.XMLStreamReaderWrapper xmlStream, int defaultCoordDimensions)
defaultCoordDimensions
- default coordinate dimensionality, this is returned if the element has no srsDimension
attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |