org.deegree.cs.persistence.gml
Class GMLFileResource
java.lang.Object
org.deegree.commons.xml.XMLAdapter
org.deegree.cs.configuration.resources.XMLFileResource
org.deegree.cs.persistence.gml.GMLFileResource
- All Implemented Interfaces:
- CRSResource<org.apache.axiom.om.OMElement>, XLinkResolver<org.apache.axiom.om.OMElement>, XMLResource, GMLResource
public class GMLFileResource
- extends XMLFileResource
- implements GMLResource
The GMLFileResource
provides easy access to a gml3.2. dictionary file, which can be used together with
the GMLCRSStore
.
- Version:
- $Revision: 30120 $, $Date: 2011-03-22 10:04:15 +0100 (Tue, 22 Mar 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
Methods inherited from class org.deegree.commons.xml.XMLAdapter |
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, getNodeAsBigInt, 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, load, load, maybeWriteElement, maybeWriteElementNS, parseBoolean, parseDouble, parseFloat, parseInt, parseQName, parseSimpleLink, parseURL, resolve, setRootElement, setSystemId, toString, writeElement, writeElement, writeElement, writeElement, writeElement, writeOptionalAttribute, writeOptionalElement, writeOptionalNSAttribute |
GMLFileResource
public GMLFileResource(GMLCRSStore provider,
URL gmlFile)
- Parameters:
provider
- properties
-
getWGS84Transformation
public Helmert getWGS84Transformation(IGeographicCRS 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
- Specified by:
getWGS84Transformation
in interface CRSResource<org.apache.axiom.om.OMElement>
- Parameters:
sourceCRS
- to retrieve the transformation for.
- Returns:
- the
Helmert
transformation or null
if no such transformation was defined.
getTransformation
public Transformation getTransformation(ICRS sourceCRS,
ICRS 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
- Specified by:
getTransformation
in interface CRSResource<org.apache.axiom.om.OMElement>
- 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.
- Specified by:
getURIAsType
in interface XLinkResolver<org.apache.axiom.om.OMElement>
- 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.
getAvailableCRSIds
public List<CRSCodeType[]> getAvailableCRSIds()
- Specified by:
getAvailableCRSIds
in interface GMLResource
- Returns:
- the available crs ids of this gml resource.
getAvailableCRSs
public List<ICRS> getAvailableCRSs()
- Specified by:
getAvailableCRSs
in interface GMLResource
- Returns:
- the list of coordinate systems.
Copyright © 2011. All Rights Reserved.