|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.crs.configuration.deegree.xml.stax.Parser
public class Parser
The CRSParser holds the instances to the StAX based crs components parsers.
| Field Summary | |
|---|---|
static String |
CRS_NS
Default namespace of the crs configuration |
| Constructor Summary | |
|---|---|
Parser(DeegreeCRSProvider<StAXResource> provider,
Properties properties)
|
|
| Method Summary | |
|---|---|
List<CRSCodeType[]> |
getAvailableCRSCodes()
|
Ellipsoid |
getEllipsoidForId(String ellipsoidId)
Tries to find a cached ellipsoid, if not found, the config will be checked. |
GeodeticDatum |
getGeodeticDatumForId(String datumId)
|
PrimeMeridian |
getPrimeMeridianForId(String meridianId)
|
Projection |
getProjectionForId(String id,
GeographicCRS underlyingCRS)
|
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. |
StAXResource |
getURIAsType(String uri)
Opens a stream to a resource which is defined by the uri. |
String |
getVersion()
|
Helmert |
getWGS84Transformation(GeographicCRS sourceCRS)
Implementations should find the helmert transformation which transforms coordinates of the geodetic datum into coordinates of the WGS84 datum. |
CoordinateSystem |
parseCoordinateSystem(StAXResource crsDefintion)
|
CRSIdentifiable |
parseIdentifiableObject(String id)
Gets the Element for the given id and heuristically check the localname of the resulting root Element. |
Transformation |
parseTransformation(StAXResource transformationDefinition)
Retrieves a transformation from the resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CRS_NS
| Constructor Detail |
|---|
public Parser(DeegreeCRSProvider<StAXResource> provider,
Properties properties)
provider - properties - | Method Detail |
|---|
public Transformation getTransformation(CoordinateSystem sourceCRS,
CoordinateSystem targetCRS)
CRSResourcenull
getTransformation in interface CRSResource<StAXResource>sourceCRS - start point of the transformation.targetCRS - end point of the transformations
Transformation or null if no such transformation was defined.public Helmert getWGS84Transformation(GeographicCRS sourceCRS)
CRSResourcenull
getWGS84Transformation in interface CRSResource<StAXResource>sourceCRS - to retrieve the transformation for.
Helmert transformation or null if no such transformation was defined.
public StAXResource getURIAsType(String uri)
throws IOException
XLinkResolver
getURIAsType in interface XLinkResolver<StAXResource>uri - to locate
null if no resource was found.
IOException - If an error occurred while locating or opening the resource.
public List<CRSCodeType[]> getAvailableCRSCodes()
throws CRSConfigurationException
getAvailableCRSCodes in interface CRSParser<StAXResource>CRSConfigurationException
public Ellipsoid getEllipsoidForId(String ellipsoidId)
throws CRSConfigurationException
CRSParser
getEllipsoidForId in interface CRSParser<StAXResource>null if no ellipsoid with given id was found, or the id was
null or empty.
CRSConfigurationException - if something went wrong.
public GeodeticDatum getGeodeticDatumForId(String datumId)
throws CRSConfigurationException
getGeodeticDatumForId in interface CRSParser<StAXResource>CRSConfigurationException
public PrimeMeridian getPrimeMeridianForId(String meridianId)
throws CRSConfigurationException
getPrimeMeridianForId in interface CRSParser<StAXResource>meridianId - the id to search for.
null
CRSConfigurationException - if the longitude was not set or the units could not be parsed.
public Projection getProjectionForId(String id,
GeographicCRS underlyingCRS)
getProjectionForId in interface CRSParser<StAXResource>id - of the projectionunderlyingCRS - of the projection
null if no such projection could be loaded.
public String getVersion()
throws CRSConfigurationException
getVersion in interface CRSParser<StAXResource>CRSConfigurationException - if the root element is empty
public CoordinateSystem parseCoordinateSystem(StAXResource crsDefintion)
throws CRSConfigurationException
parseCoordinateSystem in interface CRSParser<StAXResource>crsDefintion - to be parsed
null if the crsDefinition is null or could not
be mapped to a valid type.
CRSConfigurationException - if something went wrong while constructing the crs.public CRSIdentifiable parseIdentifiableObject(String id)
CRSParser
- ellipsoid
- geodeticDatum
- projectedCRS
- geographicCRS
- compoundCRS
- geocentricCRS
- primeMeridian
- wgs84Transformation
parseIdentifiableObject in interface CRSParser<StAXResource>id - to look for.
CRSIdentifiable or null if it could not be parsed.public Transformation parseTransformation(StAXResource transformationDefinition)
CRSParser
parseTransformation in interface CRSParser<StAXResource>null if no transformation could be parsed.
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||