|
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.Objectorg.deegree.crs.configuration.deegree.xml.stax.parsers.DefinitionParser
org.deegree.crs.configuration.deegree.xml.stax.parsers.CoordinateSystemParser
public class CoordinateSystemParser
A stax based 0.4.0 crs configuration parser for Coordinate system objects.
| Constructor Summary | |
|---|---|
CoordinateSystemParser(DeegreeCRSProvider<StAXResource> provider,
URL configURL)
|
|
| Method Summary | |
|---|---|
protected QName |
expectedRootName()
|
List<CRSCodeType[]> |
getAvailableCRSs()
|
CoordinateSystem |
getCRSForId(String crsId)
|
protected List<Transformation> |
parseAlternativeTransformations(XMLStreamReader reader)
Parse all polynomial transformations for a given crs. |
protected Axis |
parseAxis(XMLStreamReader reader)
Parses an axis element |
protected Axis[] |
parseAxisOrder(XMLStreamReader reader)
Creates an axis array for the given crs element. |
protected CoordinateSystem |
parseCompoundCRS(XMLStreamReader reader)
|
CoordinateSystem |
parseCoordinateSystem(XMLStreamReader reader)
|
protected CoordinateSystem |
parseGeocentricCRS(XMLStreamReader reader)
|
protected CoordinateSystem |
parseGeographicCRS(XMLStreamReader reader)
|
protected CoordinateSystem |
parseProjectedCRS(XMLStreamReader reader)
|
protected GeodeticDatum |
parseReferencedGeodeticDatum(XMLStreamReader reader,
String parentID)
Parses the required usedDatum element from the given parentElement (probably a crs element). |
Transformation |
parseTransformation(org.apache.axiom.om.OMElement transformationDefinition)
Retrieves a transformation from the resource. |
| Methods inherited from class org.deegree.crs.configuration.deegree.xml.stax.parsers.DefinitionParser |
|---|
getConfigReader, getConfigURL, getProvider, moveReaderToNextIdentifiable, moveReaderToNextIdentifiable, parseIdentifiable, parseLatLonType, parseUnit, readEntireFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoordinateSystemParser(DeegreeCRSProvider<StAXResource> provider,
URL configURL)
provider - to be used for callback.configURL - to be used for the configuration.| Method Detail |
|---|
public CoordinateSystem getCRSForId(String crsId)
throws CRSConfigurationException
crsId -
CRSConfigurationException
public CoordinateSystem parseCoordinateSystem(XMLStreamReader reader)
throws CRSConfigurationException,
XMLStreamException
reader - to be parsed
null if the crsDefinition is null or could not
be mapped to a valid type.
CRSConfigurationException - if something went wrong while constructing the crs.
XMLStreamException
protected Axis[] parseAxisOrder(XMLStreamReader reader)
throws CRSConfigurationException,
XMLStreamException
reader - to be parsed from
CRSConfigurationException - if a required element could not be found, or an xmlParsingException occurred, or the axisorder uses
names which were not defined in the axis elements.
XMLStreamException
protected Axis parseAxis(XMLStreamReader reader)
throws XMLStreamException,
XMLParsingException
reader -
XMLStreamException
XMLParsingExceptionpublic Transformation parseTransformation(org.apache.axiom.om.OMElement transformationDefinition)
transformationDefinition -
null if no transformation could be parsed.protected List<Transformation> parseAlternativeTransformations(XMLStreamReader reader)
reader - to parse the transformations for.
null.
protected CoordinateSystem parseProjectedCRS(XMLStreamReader reader)
throws CRSConfigurationException,
XMLStreamException
reader - from which the crs is to be created (using chached datums, conversioninfos and projections).
CRSConfigurationException - if a required element could not be found, or an xmlParsingException occurred.
XMLStreamException
protected CoordinateSystem parseGeographicCRS(XMLStreamReader reader)
throws CRSConfigurationException,
XMLStreamException
reader - positioned on the crs to be created (using cached datums, conversioninfos and projections).
CRSConfigurationException - if a required element could not be found, or an xmlParsingException occurred.
XMLStreamException
protected CoordinateSystem parseGeocentricCRS(XMLStreamReader reader)
throws CRSConfigurationException,
XMLStreamException
reader - from which the crs is to be created (using cached datums, conversioninfos and projections).
CRSConfigurationException - if a required element could not be found, or an xmlParsingException occurred.
XMLStreamException
protected CoordinateSystem parseCompoundCRS(XMLStreamReader reader)
throws XMLStreamException
reader - from which the crs is to be created.
XMLStreamException
CRSConfigurationException - if a required element could not be found, or an xmlParsingException occurred.
protected GeodeticDatum parseReferencedGeodeticDatum(XMLStreamReader reader,
String parentID)
throws CRSConfigurationException,
XMLStreamException
reader - pointing to the required usedDatum element from.parentID - optional for an appropriate error message.
CRSConfigurationException - if a parsing error occurred, the node was not defined or an illegal id reference (not found) was
given.
XMLStreamExceptionprotected QName expectedRootName()
expectedRootName in class DefinitionParserpublic List<CRSCodeType[]> getAvailableCRSs()
|
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 | |||||||||