deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official

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: 22389 $, $Date: 2010-02-04 10:28:30 +0100 (Do, 04 Feb 2010) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

Constructor Summary
CoordinateTransform(org.deegree.crs.CRS sourceCRS, org.deegree.crs.CRS 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(org.deegree.crs.CRS sourceCRS,
                           org.deegree.crs.CRS targetCRS)
Construct a demo crs with following coordinate systems.

Parameters:
sourceCRS -
targetCRS -
Method Detail

doTransform

public void doTransform(double[] coordinate,
                        boolean withInverse)
                 throws IllegalArgumentException,
                        org.deegree.crs.exceptions.TransformationException,
                        org.deegree.crs.exceptions.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:
org.deegree.crs.exceptions.TransformationException
IllegalArgumentException
org.deegree.crs.exceptions.UnknownCRSException

main

public static void main(String[] args)
                 throws org.deegree.crs.exceptions.UnknownCRSException,
                        IOException
a starter method to transform a given point or a serie of points read from a file.

Parameters:
args -
Throws:
org.deegree.crs.exceptions.UnknownCRSException
IOException - if the buffered reader could not read from the file

deegree-tools-3.0-pre-nightly (2010/03/05 00:05) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>