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

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

java.lang.Object
  extended by org.deegree.crs.configuration.deegree.xml.stax.parsers.DefinitionParser
      extended by org.deegree.crs.configuration.deegree.xml.stax.parsers.ProjectionParser

public class ProjectionParser
extends DefinitionParser

A stax based 0.4.0 crs configuration parser for projection 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
ProjectionParser(DeegreeCRSProvider<StAXResource> provider, URL configURL)
           
 
Method Summary
protected  QName expectedRootName()
           
 Projection getProjectionForId(String projectionId, GeographicCRS underlyingCRS)
           
protected  Projection parseProjection(XMLStreamReader reader, GeographicCRS underlyingCRS)
           
 
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

ProjectionParser

public ProjectionParser(DeegreeCRSProvider<StAXResource> provider,
                        URL configURL)
Parameters:
provider -
configURL -
Method Detail

parseProjection

protected Projection parseProjection(XMLStreamReader reader,
                                     GeographicCRS underlyingCRS)
                              throws XMLStreamException
Parameters:
reader - to
underlyingCRS -
Returns:
the next datum on the stream.
Throws:
XMLStreamException

getProjectionForId

public Projection getProjectionForId(String projectionId,
                                     GeographicCRS underlyingCRS)
                              throws CRSConfigurationException
Parameters:
projectionId -
underlyingCRS - the crs to which the projection is defined.
Returns:
the
Throws:
CRSConfigurationException

expectedRootName

protected QName expectedRootName()
Specified by:
expectedRootName in class DefinitionParser
Returns:
the top level element of a configuration file.

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

]]>