|
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.GML3GeometryBaseReader org.deegree.gml.geometry.GML3CurveSegmentReader
class GML3CurveSegmentReader
Handles the parsing of gml:_CurveSegment
elements, i.e concrete element declarations that are in the
substitution group gml:_CurveSegment
.
This class handles all 15 concrete substitutions for gml:_CurveSegment
that are defined in GML 3.1.1:
Arc
ArcByBulge
ArcByCenterPoint
ArcString
ArcStringByBulge
Bezier
BSpline
Circle
CircleByCenterPoint
Clothoid
CubicSpline
Geodesic
GeodesicString
LineStringSegment
OffsetCurve
Field Summary |
---|
Fields inherited from class org.deegree.gml.geometry.GML3GeometryBaseReader |
---|
geomFac, gmlNs, version |
Constructor Summary | |
---|---|
GML3CurveSegmentReader(GML3GeometryReader geometryParser,
GeometryFactory geomFac)
|
Method Summary | |
---|---|
(package private) Points |
parseControlPoints(XMLStreamReaderWrapper xmlStream,
CRS crs)
Parses the control points of a curve segment element. |
(package private) CurveSegment |
parseCurveSegment(XMLStreamReaderWrapper xmlStream,
CRS defaultCRS)
Returns the object representation for a gml:_CurveSegment element. |
(package private) LineStringSegment |
parseLineStringSegment(XMLStreamReaderWrapper xmlStream,
CRS defaultCRS)
Returns the object representation of a (<gml:LineStringSegment>) element. |
Methods inherited from class org.deegree.gml.geometry.GML3GeometryBaseReader |
---|
determineActiveCRS, determineCoordDimensions, parseAngleType, parseCoordinates, parseCoordType, parseDirectPositionType, parseDoubleList, parseLengthType, parseMeasureType, parseOrientation, parsePosList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
GML3CurveSegmentReader(GML3GeometryReader geometryParser, GeometryFactory geomFac)
geometryParser
- geomFac
- Method Detail |
---|
CurveSegment parseCurveSegment(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLParsingException, XMLStreamException, UnknownCRSException
gml:_CurveSegment
element. Consumes all corresponding events
from the associated XMLStream
.
START_ELEMENT
event (<gml:_CurveSegment>)END_ELEMENT
(</gml:_CurveSegment>)
This method handles all 15 concrete substitutions for gml:_CurveSegment
that are defined in GML
3.1.1:
Arc
ArcByBulge
ArcByCenterPoint
ArcString
ArcStringByBulge
Bezier
BSpline
Circle
CircleByCenterPoint
Clothoid
CubicSpline
Geodesic
GeodesicString
LineStringSegment
OffsetCurve
xmlStream
- cursor must point at the START_ELEMENT
event (<gml:_CurveSegment>), points at the
corresponding END_ELEMENT
event (</gml:_CurveSegment>) afterwardsdefaultCRS
- default CRS for the geometry, this is only used if the "gml:_CurveSegment" has no srsName
attribute
CurveSegment
object
XMLParsingException
XMLStreamException
UnknownCRSException
LineStringSegment parseLineStringSegment(XMLStreamReaderWrapper xmlStream, CRS defaultCRS) throws XMLParsingException, XMLStreamException, UnknownCRSException
XMLStream
.
START_ELEMENT
event (<gml:LineStringSegment>)END_ELEMENT
event
(</gml:LineStringSegment>)
xmlStream
- defaultCRS
- default CRS for the geometry, this is propagated if no deeper srsName
attribute is
specified
LineStringSegment
object
XMLParsingException
XMLStreamException
UnknownCRSException
Points parseControlPoints(XMLStreamReaderWrapper xmlStream, CRS crs) throws XMLParsingException, XMLStreamException, UnknownCRSException
The parsed structure is specified by the following XSD choice:
<choice> <choice minOccurs="0" maxOccurs="unbounded"> <element ref="gml:pos"/> <element ref="gml:pointProperty"/> <element ref="gml:pointRep"> </choice> <element ref="gml:posList"/> <element ref="gml:coordinates"/> <element ref="gml:coord"/> </choice>
Precondition: the current event must be the first START_ELEMENT
of the choice. If this is not the
case, an XMLParsingException
is thrown.
Postcondition: the current event is the first tag event after the last END_ELEMENT
that belongs to
the choice
xmlStream
- crs
- default CRS for the points, this is used if no srsName
attribute is specified
XMLStreamException
XMLParsingException
UnknownCRSException
|
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 |