org.geotools.demo.referencing
Class TransformData
java.lang.Object
org.geotools.demo.referencing.TransformData
public class TransformData
- extends java.lang.Object
A simple demo to transform the geometries in a shapefile from the source
coordinate reference system (CRS) to a target CRS. Source and target
CRS's are given here as well know text (WKT) strings. The default output path
is the users home directory.
The following method is rather low-level. Typically the higher-level
DefaultQuery method demoed in org.geotools.demo.data.ShapeReprojector would
be used instead.
- Version:
- $Id: TransformData.java 34132 2009-10-12 07:45:46Z mbedward $
- Author:
- rschulz
Constructor Summary |
TransformData(java.net.URL inURL,
java.net.URL outURL,
java.lang.String inWKT,
java.lang.String outWKT)
Creates a new instance of TransformData |
Method Summary |
static void |
main(java.lang.String[] args)
Command line arguments are:
in file - input shapefile
out file - output shapefile
in WKT - WKT string for the source coordinate system
out WKT - WKT string for the target coordinate system
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformData
public TransformData(java.net.URL inURL,
java.net.URL outURL,
java.lang.String inWKT,
java.lang.String outWKT)
- Creates a new instance of TransformData
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Command line arguments are:
- in file - input shapefile
- out file - output shapefile
- in WKT - WKT string for the source coordinate system
- out WKT - WKT string for the target coordinate system
- Parameters:
args
- the command line arguments
- Throws:
java.lang.Exception
Copyright © 1996-2010 Geotools. All Rights Reserved.