org.geotools.geometry.jts
Class DefaultCoordinateSequenceTransformer
Object
DefaultCoordinateSequenceTransformer
- All Implemented Interfaces:
- CoordinateSequenceTransformer
public class DefaultCoordinateSequenceTransformer
- extends 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
- Author:
- Andrea Aime, Martin Desruisseaux
- Module:
modules/library/api (gt-api.jar)
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCoordinateSequenceTransformer
public DefaultCoordinateSequenceTransformer()
- Constructs a default coordinate sequence transformer.
DefaultCoordinateSequenceTransformer
public DefaultCoordinateSequenceTransformer(CoordinateSequenceFactory csFactory)
transform
public CoordinateSequence transform(CoordinateSequence sequence,
MathTransform transform)
throws TransformException
- Returns a transformed coordinate sequence.
- Specified by:
transform
in interface CoordinateSequenceTransformer
- Parameters:
sequence
- The sequence to transform.transform
- The transformation to apply.
- Throws:
TransformException
- if at least one coordinate can't be transformed.
Copyright © 1996-2009 Geotools. All Rights Reserved.