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

org.deegree.crs.configuration.deegree.xml.stax.parsers
Class TransformationParser

java.lang.Object
  extended by org.deegree.crs.configuration.deegree.xml.stax.parsers.DefinitionParser
      extended by 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 $

Constructor Summary
TransformationParser(DeegreeCRSProvider<StAXResource> provider, URL confURL)
           
 
Method Summary
protected  QName expectedRootName()
           
 Helmert getConversionInfo(GeographicCRS sourceCRS)
           
protected  Helmert getConversionInfoForID(String infoID)
           
 Transformation getTransformation(CoordinateSystem sourceCRS, CoordinateSystem targetCRS)
           
 Transformation getTransformationForId(String transformId)
           
protected  Transformation parseTransformation(XMLStreamReader reader)
           
 
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

TransformationParser

public TransformationParser(DeegreeCRSProvider<StAXResource> provider,
                            URL confURL)
Parameters:
provider -
confURL -
Method Detail

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

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

]]>