org.deegree.cs.utilities
Class MappingUtils

java.lang.Object
  extended by 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 $

Constructor Summary
MappingUtils()
           
 
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
 

Constructor Detail

MappingUtils

public MappingUtils()
Method Detail

matchEPSGString

public static boolean matchEPSGString(String compare,
                                      String operationName,
                                      String epsgCode)
Match the given code to all known epsg representations, currently:

Parameters:
compare - the String to compare
operationName - the name of the 'operation', normally an epsg urn is something like this: urn:ogc:def:${operationName}:EPSG::1234
epsgCode - 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.