org.deegree.cs.persistence.deegree.d3.parsers
Class TransformationParser

java.lang.Object
  extended by org.deegree.cs.persistence.deegree.d3.parsers.DefinitionParser
      extended by 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 $

Field Summary
 
Fields inherited from class org.deegree.cs.persistence.deegree.d3.parsers.DefinitionParser
store
 
Constructor Summary
TransformationParser(DeegreeCRSStore provider, URL confURL, TransformationFactory.DSTransform datumShift)
           
 
Method Summary
protected  QName expectedRootName()
           
 Helmert getConversionInfo(GeographicCRS sourceCRS)
           
protected  Helmert getConversionInfoForID(String infoID)
           
 Transformation getTransformation(ICRS sourceCRS, ICRS targetCRS)
           
 Transformation getTransformationForId(String transformId)
           
protected  Transformation parseTransformation(XMLStreamReader reader)
           
 
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

TransformationParser

public TransformationParser(DeegreeCRSStore provider,
                            URL confURL,
                            TransformationFactory.DSTransform datumShift)
Parameters:
provider -
confURL -
datumShift -
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(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.