org.geotools.geometry.jts
Class DefaultCoordinateSequenceTransformer

java.lang.Object
  extended byorg.geotools.geometry.jts.DefaultCoordinateSequenceTransformer
All Implemented Interfaces:
CoordinateSequenceTransformer

public class DefaultCoordinateSequenceTransformer
extends java.lang.Object
implements CoordinateSequenceTransformer

A default implementation of coordinate sequence transformer. This transformer applies the coordinate transformations immediately (which means that caller are immediately notified if a transformation fails).

This transformer support math transform with up to 3 source or target dimensions. This transformer is not thread-safe.

Since:
2.1
Version:
$Id: DefaultCoordinateSequenceTransformer.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
Andrea Aime, Martin Desruisseaux

Constructor Summary
DefaultCoordinateSequenceTransformer()
          Constructs a default coordinate sequence transformer.
 
Method Summary
 com.vividsolutions.jts.geom.CoordinateSequence transform(com.vividsolutions.jts.geom.CoordinateSequence sequence, org.opengis.referencing.operation.MathTransform transform)
          Returns a transformed coordinate sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCoordinateSequenceTransformer

public DefaultCoordinateSequenceTransformer()
Constructs a default coordinate sequence transformer.

Method Detail

transform

public com.vividsolutions.jts.geom.CoordinateSequence transform(com.vividsolutions.jts.geom.CoordinateSequence sequence,
                                                                org.opengis.referencing.operation.MathTransform transform)
                                                         throws org.opengis.referencing.operation.TransformException
Returns a transformed coordinate sequence.

Specified by:
transform in interface CoordinateSequenceTransformer
Parameters:
sequence - The sequence to transform.
transform - The transformation to apply.
Throws:
org.opengis.referencing.operation.TransformException - if at least one coordinate can't be transformed.


Copyright © GeoTools. All Rights Reserved.