org.deegree.cs.utilities
Class MappingUtils
java.lang.Object
org.deegree.cs.utilities.MappingUtils
public class MappingUtils
- extends Object
The MappingUtils
maps some information onto another.
- Version:
- $Revision: 31365 $, $Date: 2011-07-27 08:38:32 +0200 (Wed, 27 Jul 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: lbuesching $
Method Summary |
static boolean |
matchEPSGString(String compare,
String operationName,
String epsgCode)
Match the given code to all known epsg representations, currently:
urn:x-ogc:def:${operationName}:EPSG::${epsgCode}
urn:x-ogc:def:${operationName}:EPSG:${epsgCode}
urn:ogc:def:${operationName}:EPSG::${epsgCode}
urn:ogc:def:${operationName}:EPSG:${epsgCode}
EPSG::${epsgCode}
EPSG:${epsgCode}
Any string containing EPSG:${epsgCode} or EPSG::${epsgCode}
Any string ending with EPSG/? |
static Transformation |
updateFromDefinedTransformations(List<Transformation> userRequested,
Transformation originalChain)
Iterates over all given Transformations and tries to map one of the given Transformations onto the some part of
the given Transformation chain. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingUtils
public MappingUtils()
matchEPSGString
public static boolean matchEPSGString(String compare,
String operationName,
String epsgCode)
- Match the given code to all known epsg representations, currently:
- urn:x-ogc:def:${operationName}:EPSG::${epsgCode}
- urn:x-ogc:def:${operationName}:EPSG:${epsgCode}
- urn:ogc:def:${operationName}:EPSG::${epsgCode}
- urn:ogc:def:${operationName}:EPSG:${epsgCode}
- EPSG::${epsgCode}
- EPSG:${epsgCode}
- Any string containing EPSG:${epsgCode} or EPSG::${epsgCode}
- Any string ending with EPSG/?/${epsgCode}
- Parameters:
compare
- the String to compareoperationName
- the name of the 'operation', normally an epsg urn is something like this:
urn:ogc:def:${operationName}:EPSG::1234epsgCode
- to check
- Returns:
- true if the given code matches the given String.
updateFromDefinedTransformations
public static Transformation updateFromDefinedTransformations(List<Transformation> userRequested,
Transformation originalChain)
throws TransformationException
- Iterates over all given Transformations and tries to map one of the given Transformations onto the some part of
the given Transformation chain.
- Parameters:
userRequested
- a list of Transformations which should be used in the given transformation chain.originalChain
- the transformation chain which is to be replaced with some (or all) of the given transformations.
- Returns:
- a Transformation which contains some or all of the given transformations.
- Throws:
TransformationException
Copyright © 2011. All Rights Reserved.