|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.cs.persistence.deegree.d3.parsers.DefinitionParser org.deegree.cs.persistence.deegree.d3.parsers.CoordinateSystemParser
public class CoordinateSystemParser
Stax-based parser for Coordinate system objects.
Field Summary |
---|
Fields inherited from class org.deegree.cs.persistence.deegree.d3.parsers.DefinitionParser |
---|
store |
Constructor Summary | |
---|---|
CoordinateSystemParser(DeegreeCRSStore provider,
URL configURL)
|
Method Summary | |
---|---|
protected QName |
expectedRootName()
|
List<CRSCodeType[]> |
getAvailableCRSs()
|
ICRS |
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 CRS |
parseCompoundCRS(XMLStreamReader reader)
|
CRS |
parseCoordinateSystem(XMLStreamReader reader)
|
protected CRS |
parseGeocentricCRS(XMLStreamReader reader)
|
protected CRS |
parseGeographicCRS(XMLStreamReader reader)
|
protected CRS |
parseProjectedCRS(XMLStreamReader reader)
|
protected IGeodeticDatum |
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.cs.persistence.deegree.d3.parsers.DefinitionParser |
---|
getConfigReader, getConfigURL, getStore, 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(DeegreeCRSStore provider, URL configURL)
provider
- to be used for callback.configURL
- to be used for the configuration.Method Detail |
---|
public ICRS getCRSForId(String crsId) throws CRSConfigurationException
crsId
-
CRSConfigurationException
public CRS 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
XMLParsingException
public 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 CRS 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 CRS 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 CRS 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 CRS 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 IGeodeticDatum 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.
XMLStreamException
protected QName expectedRootName()
expectedRootName
in class DefinitionParser
public List<CRSCodeType[]> getAvailableCRSs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |