org.deegree.cs.persistence.deegree.d3.parsers
Class TransformationParser
java.lang.Object
org.deegree.cs.persistence.deegree.d3.parsers.DefinitionParser
org.deegree.cs.persistence.deegree.d3.parsers.TransformationParser
public class TransformationParser
- extends DefinitionParser
Stax-based configuration parser for transformation objects.
- Version:
- $Revision: 31619 $, $Date: 2011-08-23 14:56:28 +0200 (Tue, 23 Aug 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: mschneider $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformationParser
public TransformationParser(DeegreeCRSStore provider,
URL confURL,
TransformationFactory.DSTransform datumShift)
- Parameters:
provider
- confURL
- datumShift
-
getConversionInfoForID
protected Helmert getConversionInfoForID(String infoID)
throws CRSConfigurationException
- Parameters:
infoID
- to get the conversioninfo from.
- Returns:
- the configured wgs84 conversion info parameters.
- Throws:
CRSConfigurationException
getTransformationForId
public Transformation getTransformationForId(String transformId)
throws CRSConfigurationException
- Parameters:
transformId
- to get the transformation for.
- Returns:
- the configured wgs84 conversion info parameters.
- Throws:
CRSConfigurationException
parseTransformation
protected Transformation parseTransformation(XMLStreamReader reader)
throws XMLStreamException
- Parameters:
reader
- to
- Returns:
- the next datum on the stream.
- Throws:
XMLStreamException
expectedRootName
protected QName expectedRootName()
- Specified by:
expectedRootName
in class DefinitionParser
- Returns:
- the top level element of a configuration file.
getTransformation
public Transformation getTransformation(ICRS sourceCRS,
ICRS targetCRS)
- Parameters:
sourceCRS
- targetCRS
-
- Returns:
- the (concatenated) configured transform between the source and the target crs. Calling this method is not
the same as creating a new Transformation chain with the
TransformationFactory#createFromCoordinateSystems(CRS, ICRS)
getConversionInfo
public Helmert getConversionInfo(GeographicCRS sourceCRS)
- Parameters:
sourceCRS
-
- Returns:
- the configured helmert for the given source crs or
null
Copyright © 2011. All Rights Reserved.