de.soldin.gt2jump.cts
Class CoordinateTransformFilter

java.lang.Object
  extended byde.soldin.gt2jump.cts.CoordinateTransformFilter
All Implemented Interfaces:
com.vividsolutions.jts.geom.CoordinateFilter

public class CoordinateTransformFilter
extends Object
implements com.vividsolutions.jts.geom.CoordinateFilter

Class CoordinateTransformFilter is a utility for transforming coordinates between coordinatesystems.


Constructor Summary
CoordinateTransformFilter(org.geotools.cs.CoordinateSystem src, org.geotools.cs.CoordinateSystem trg)
          Creates a new Filter.
CoordinateTransformFilter(String src_wkt, String trg_wkt)
          Creates a new Filter.
 
Method Summary
 void filter(com.vividsolutions.jts.geom.Coordinate coord)
          Actually modifies the given coordinate
 boolean isYx()
          This is just a workaround.
 void setYx(boolean b)
          Activate the workaround isYx().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinateTransformFilter

public CoordinateTransformFilter(String src_wkt,
                                 String trg_wkt)
                          throws org.geotools.ct.CannotCreateTransformException,
                                 org.geotools.cs.FactoryException
Creates a new Filter.

Parameters:
src_wkt - the source cs as WKT-string
trg_wkt - the target cs as WKT-string
Throws:
org.geotools.ct.CannotCreateTransformException
org.geotools.cs.FactoryException

CoordinateTransformFilter

public CoordinateTransformFilter(org.geotools.cs.CoordinateSystem src,
                                 org.geotools.cs.CoordinateSystem trg)
                          throws org.geotools.ct.CannotCreateTransformException
Creates a new Filter.

Parameters:
src - the source cs
trg - the target cs
Throws:
org.geotools.ct.CannotCreateTransformException
Method Detail

filter

public void filter(com.vividsolutions.jts.geom.Coordinate coord)
Actually modifies the given coordinate

Specified by:
filter in interface com.vividsolutions.jts.geom.CoordinateFilter
See Also:
CoordinateFilter.filter(com.vividsolutions.jts.geom.Coordinate)

isYx

public boolean isYx()
This is just a workaround. Better modify your definitions in the cs.conf file.

Returns:
whether the axes are exchanged.

setYx

public void setYx(boolean b)
Activate the workaround isYx().

Parameters:
b -