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

org.deegree.crs.configuration.gml
Class GMLFileResource

java.lang.Object
  extended by org.deegree.commons.xml.XMLAdapter
      extended by org.deegree.crs.configuration.resources.XMLFileResource
          extended by org.deegree.crs.configuration.gml.GMLFileResource
All Implemented Interfaces:
CRSResource<org.apache.axiom.om.OMElement>, XLinkResolver<org.apache.axiom.om.OMElement>, XMLResource

public class GMLFileResource
extends XMLFileResource

The GMLFileResource provides easy access to a gml3.2. dictionary file, which can be used together with the GMLCRSProvider.

Version:
$Revision: 18793 $, $Date: 2009-07-29 14:07:52 +0200 (Mi, 29 Jul 2009) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

Field Summary
 
Fields inherited from class org.deegree.commons.xml.XMLAdapter
DEFAULT_URL, nsContext, rootElement, XLN_NS
 
Constructor Summary
GMLFileResource(GMLCRSProvider provider, Properties properties)
           
 
Method Summary
 Transformation getTransformation(CoordinateSystem sourceCRS, CoordinateSystem targetCRS)
          Implementations should find a given transformation (chain) which transforms coordinates of the given coordinate system into coordinates of the target crs.
 org.apache.axiom.om.OMElement getURIAsType(String uri)
          Opens a stream to a resource which is defined by the uri.
 Helmert getWGS84Transformation(GeographicCRS sourceCRS)
          Implementations should find the helmert transformation which transforms coordinates of the geodetic datum into coordinates of the WGS84 datum.
 
Methods inherited from class org.deegree.crs.configuration.resources.XMLFileResource
getProvider
 
Methods inherited from class org.deegree.commons.xml.XMLAdapter
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, getNodeAsBoolean, getNodeAsDouble, getNodeAsFloat, getNodeAsInt, getNodeAsQName, getNodeAsString, getNodeAsURL, getNodeAsVersion, getNodes, getNodesAsQNames, getNodesAsStrings, getRequiredElement, getRequiredElements, getRequiredNode, getRequiredNodeAsBoolean, getRequiredNodeAsDouble, getRequiredNodeAsFloat, getRequiredNodeAsInteger, getRequiredNodeAsQName, getRequiredNodeAsString, getRequiredNodeAsURL, getRequiredNodeAsVersion, getRequiredNodes, getRootElement, getSchemas, getSystemId, hasSchemas, load, load, load, load, load, maybeWriteElement, maybeWriteElementNS, parseBoolean, parseDouble, parseFloat, parseInt, parseQName, parseSimpleLink, parseURL, resolve, setRootElement, setSystemId, toString, writeElement, writeElement, writeElement, writeElement, writeElement, writeOptionalAttribute, writeOptionalElement, writeOptionalNSAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GMLFileResource

public GMLFileResource(GMLCRSProvider provider,
                       Properties properties)
Parameters:
provider -
properties -
Method Detail

getWGS84Transformation

public Helmert getWGS84Transformation(GeographicCRS sourceCRS)
Description copied from interface: CRSResource
Implementations should find the helmert transformation which transforms coordinates of the geodetic datum into coordinates of the WGS84 datum. If no such transformation could be found, the implementation should return null

Parameters:
sourceCRS - to retrieve the transformation for.
Returns:
the Helmert transformation or null if no such transformation was defined.

getTransformation

public Transformation getTransformation(CoordinateSystem sourceCRS,
                                        CoordinateSystem targetCRS)
Description copied from interface: CRSResource
Implementations should find a given transformation (chain) which transforms coordinates of the given coordinate system into coordinates of the target crs. If no such transformation could be found, the implementation should return null

Parameters:
sourceCRS - start point of the transformation.
targetCRS - end point of the transformations
Returns:
the Transformation or null if no such transformation was defined.

getURIAsType

public org.apache.axiom.om.OMElement getURIAsType(String uri)
                                           throws IOException
Description copied from interface: XLinkResolver
Opens a stream to a resource which is defined by the uri.

Parameters:
uri - to locate
Returns:
an opened InputStream to the given resource or null if no resource was found.
Throws:
IOException - If an error occurred while locating or opening the resource.

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

]]>