deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.gml.geometry
Class GML3GeometryBaseReader

java.lang.Object
  extended by org.deegree.gml.geometry.GML3GeometryBaseReader
Direct Known Subclasses:
GML3CurveSegmentReader, GML3GeometryReader, GML3SurfacePatchReader

 class GML3GeometryBaseReader
extends Object

TODO add documentation here

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Field Summary
protected  GeometryFactory geomFac
           
protected  String gmlNs
          Namespace for the parsed GML elements, either CommonNamespaces.GMLNS or CommonNamespaces.GML3_2_NS.
protected  GMLVersion version
           
 
Constructor Summary
protected GML3GeometryBaseReader(GMLVersion version, GeometryFactory geomFac)
           
 
Method Summary
protected  CRS determineActiveCRS(XMLStreamReaderWrapper xmlStream, CRS defaultCRS)
          Determines the active CRS using the value of the srsName attribute of the current geometry element.
protected  int determineCoordDimensions(XMLStreamReaderWrapper xmlStream, int defaultCoordDimensions)
          Applies a simple heuristic to determine the number of coordinate dimensions.
protected  Angle parseAngleType(XMLStreamReaderWrapper xmlStream)
           
protected  List<Point> parseCoordinates(XMLStreamReaderWrapper xmlStream, CRS crs)
           
protected  double[] parseCoordType(XMLStreamReaderWrapper xmlStream)
           
protected  Point parseDirectPositionType(XMLStreamReaderWrapper xmlStream, CRS defaultCRS)
           
protected  double[] parseDoubleList(XMLStreamReaderWrapper xmlStream)
           
protected  Length parseLengthType(XMLStreamReaderWrapper xmlStream)
           
protected  Measure parseMeasureType(XMLStreamReaderWrapper xmlStream)
           
protected  boolean parseOrientation(XMLStreamReaderWrapper xmlStream)
          Parses the orientation attribute from element that the associated XMLStreamReader points to.
protected  List<Point> parsePosList(XMLStreamReaderWrapper xmlStream, CRS crs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

protected final GMLVersion version

gmlNs

protected final String gmlNs
Namespace for the parsed GML elements, either CommonNamespaces.GMLNS or CommonNamespaces.GML3_2_NS.


geomFac

protected final GeometryFactory geomFac
Constructor Detail

GML3GeometryBaseReader

protected GML3GeometryBaseReader(GMLVersion version,
                                 GeometryFactory geomFac)
Method Detail

parseDirectPositionType

protected Point parseDirectPositionType(XMLStreamReaderWrapper xmlStream,
                                        CRS defaultCRS)
                                 throws XMLParsingException,
                                        XMLStreamException
Throws:
XMLParsingException
XMLStreamException

parsePosList

protected List<Point> parsePosList(XMLStreamReaderWrapper xmlStream,
                                   CRS crs)
                            throws XMLParsingException,
                                   XMLStreamException
Throws:
XMLParsingException
XMLStreamException

parseCoordinates

protected List<Point> parseCoordinates(XMLStreamReaderWrapper xmlStream,
                                       CRS crs)
                                throws XMLParsingException,
                                       XMLStreamException
Throws:
XMLParsingException
XMLStreamException

parseCoordType

protected double[] parseCoordType(XMLStreamReaderWrapper xmlStream)
                           throws XMLStreamException
Throws:
XMLStreamException

parseLengthType

protected Length parseLengthType(XMLStreamReaderWrapper xmlStream)
                          throws XMLStreamException
Throws:
XMLStreamException

parseAngleType

protected Angle parseAngleType(XMLStreamReaderWrapper xmlStream)
                        throws XMLStreamException
Throws:
XMLStreamException

parseMeasureType

protected Measure parseMeasureType(XMLStreamReaderWrapper xmlStream)
                            throws XMLStreamException
Throws:
XMLStreamException

determineActiveCRS

protected CRS determineActiveCRS(XMLStreamReaderWrapper xmlStream,
                                 CRS defaultCRS)
Determines the active CRS using the value of the srsName attribute of the current geometry element.

Parameters:
defaultCRS - default CSR for the geometry, this is returned if the geometry element has no srsName attribute
Returns:
the applicable CRS, may be null

parseDoubleList

protected double[] parseDoubleList(XMLStreamReaderWrapper xmlStream)
                            throws XMLParsingException,
                                   XMLStreamException
Throws:
XMLParsingException
XMLStreamException

parseOrientation

protected boolean parseOrientation(XMLStreamReaderWrapper xmlStream)
Parses the orientation attribute from element that the associated XMLStreamReader points to.

Returns:
true, if the orientation is '+' or not present, false if the attribute is '-'

determineCoordDimensions

protected int determineCoordDimensions(XMLStreamReaderWrapper xmlStream,
                                       int defaultCoordDimensions)
Applies a simple heuristic to determine the number of coordinate dimensions.

Parameters:
defaultCoordDimensions - default coordinate dimensionality, this is returned if the element has no srsDimension attribute
Returns:
coordinate dimensionality

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>