Package 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
-
-
Constructor Summary
Constructors Constructor Description DefaultCoordinateSequenceTransformer()
Constructs a default coordinate sequence transformer.DefaultCoordinateSequenceTransformer(CoordinateSequenceFactory csFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateSequence
transform(CoordinateSequence sequence, MathTransform transform)
Returns a transformed coordinate sequence.
-
-
-
Constructor Detail
-
DefaultCoordinateSequenceTransformer
public DefaultCoordinateSequenceTransformer()
Constructs a default coordinate sequence transformer.
-
DefaultCoordinateSequenceTransformer
public DefaultCoordinateSequenceTransformer(CoordinateSequenceFactory csFactory)
-
-
Method Detail
-
transform
public CoordinateSequence transform(CoordinateSequence sequence, MathTransform transform) throws TransformException
Returns a transformed coordinate sequence.- Specified by:
transform
in interfaceCoordinateSequenceTransformer
- Parameters:
sequence
- The sequence to transform.transform
- The transformation to apply.- Throws:
TransformException
- if at least one coordinate can't be transformed.
-
-