org.deegree.gml.geometry
Class GML3SurfacePatchReader
java.lang.Object
org.deegree.gml.geometry.GML3GeometryBaseReader
org.deegree.gml.geometry.GML3SurfacePatchReader
class GML3SurfacePatchReader
- extends GML3GeometryBaseReader
Handles the parsing of gml:_SurfacePatch elements, i.e concrete element declarations that are in the
substitution group of gml:_SurfacePatch.
This class handles all 6 concrete substitutions for gml:_SurfacePatch that are defined in GML 3.1.1:
Cone
Cylinder
PolygonPatch
Rectangle
Sphere
Triangle
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , Andrei Ionita, last edited by: $Author:$
| 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 |
GML3SurfacePatchReader
GML3SurfacePatchReader(GML3GeometryReader geometryParser,
GeometryFactory geomFac)
- Parameters:
geometryParser - geomFac -
parseSurfacePatch
SurfacePatch parseSurfacePatch(XMLStreamReaderWrapper xmlStream,
CRS defaultCRS)
throws XMLParsingException,
XMLStreamException,
UnknownCRSException
- Returns the object representation for a
gml:_SurfacePatch element. Consumes all corresponding events
from the associated XMLStream.
- Precondition: cursor must point at the
START_ELEMENT event (<gml:_SurfacePatch>)
- Postcondition: cursor points at the corresponding
END_ELEMENT event (</gml:_SurfacePatch>)
This method handles all 6 concrete substitutions for gml:_SurfacePatch that are defined in GML
3.1.1:
Cone
Cylinder
PolygonPatch
Rectangle
Sphere
Triangle
- Parameters:
defaultCRS - default CRS for the geometry, this is only used if the "gml:_SurfacePatch" has no srsName
attribute
- Returns:
- corresponding
SurfacePatch object
- Throws:
XMLParsingException
XMLStreamException
UnknownCRSException
parsePolygonPatch
PolygonPatch parsePolygonPatch(XMLStreamReaderWrapper xmlStream,
CRS defaultCRS)
throws XMLParsingException,
XMLStreamException,
UnknownCRSException
- Returns the object representation of a
<gml:PolygonPatch> element. Consumes all corresponding
events from the associated XMLStream.
- Precondition: cursor must point at the
START_ELEMENT event (<gml:PolygonPatch>)
- Postcondition: cursor points at the corresponding
END_ELEMENT event (</gml:PolygonPatch>)
- Parameters:
defaultCRS - default CRS for the geometry, this is propagated if no deeper srsName attribute is
specified
- Returns:
- corresponding
PolygonPatch object
- Throws:
XMLParsingException - if a syntactical (or semantic) error is detected in the element
XMLStreamException
UnknownCRSException
parseTriangle
Triangle parseTriangle(XMLStreamReaderWrapper xmlStream,
CRS defaultCRS)
throws XMLStreamException,
XMLParsingException,
UnknownCRSException
- Returns the object representation of a
<gml:Triangle> element. Consumes all corresponding
events from the associated XMLStream.
- Precondition: cursor must point at the
START_ELEMENT event (<gml:Triangle>)
- Postcondition: cursor points at the corresponding
END_ELEMENT event (</gml:Triangle>)
- Parameters:
defaultCRS - default srs for the geometry, this is propagated if no deeper srsName attribute is
specified
- Returns:
- corresponding
Triangle object
- Throws:
XMLParsingException - if a syntactical (or semantic) error is detected in the element
XMLStreamException
UnknownCRSException
XMLParsingException
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>