org.deegree.crs.configuration.deegree.xml.stax.parsers
Class TransformationParser
java.lang.Object
org.deegree.crs.configuration.deegree.xml.stax.parsers.DefinitionParser
org.deegree.crs.configuration.deegree.xml.stax.parsers.TransformationParser
public class TransformationParser
- extends DefinitionParser
A stax based 0.4.0 crs configuration parser for transformation objects.
- Version:
- $Revision: 22662 $, $Date: 2010-02-19 14:51:52 +0100 (Fr, 19 Feb 2010) $
- 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(DeegreeCRSProvider<StAXResource> provider,
URL confURL)
- Parameters:
provider - confURL -
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(CoordinateSystem sourceCRS,
CoordinateSystem 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(CoordinateSystem, CoordinateSystem)
getConversionInfo
public Helmert getConversionInfo(GeographicCRS sourceCRS)
- Parameters:
sourceCRS -
- Returns:
- the configured helmert for the given source crs or
null
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>