org.deegree.tools.crs
Class CoordinateTransform

java.lang.Object
  extended by org.deegree.tools.crs.CoordinateTransform

@Tool(value="Convert a point or a list of points from one SRS to another.")
public class CoordinateTransform
extends Object

The DemoCRSTransform is a sa(i)mple application for using deegree coordinate systems and their transformations.

Version:
$Revision: 29660 $, $Date: 2011-02-14 11:23:38 +0100 (Mon, 14 Feb 2011) $
Author:
Rutger Bezema, last edited by: $Author: aschmitz $

Constructor Summary
CoordinateTransform(ICRS sourceCRS, ICRS targetCRS)
          Construct a demo crs with following coordinate systems.
 
Method Summary
 void doTransform(double[] coordinate, boolean withInverse)
          This method transforms the given coordinate (in the sourceCRS) into a coordinate of the targetCRS and back.
static void main(String[] args)
          a starter method to transform a given point or a serie of points read from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinateTransform

public CoordinateTransform(ICRS sourceCRS,
                           ICRS targetCRS)
Construct a demo crs with following coordinate systems.

Parameters:
sourceCRS -
targetCRS -
Method Detail

doTransform

public void doTransform(double[] coordinate,
                        boolean withInverse)
                 throws IllegalArgumentException,
                        TransformationException,
                        UnknownCRSException
This method transforms the given coordinate (in the sourceCRS) into a coordinate of the targetCRS and back.

Parameters:
coordinate - to be transformed.
withInverse - true if the inverse has to be calculated.
Throws:
TransformationException
IllegalArgumentException
UnknownCRSException

main

public static void main(String[] args)
a starter method to transform a given point or a serie of points read from a file.

Parameters:
args -


Copyright © 2011. All Rights Reserved.