Package org.geotools.geometry.jts
Class PreciseCoordinateSequenceTransformer
Object
PreciseCoordinateSequenceTransformer
- All Implemented Interfaces:
CoordinateSequenceTransformer
public class PreciseCoordinateSequenceTransformer
extends Object
implements CoordinateSequenceTransformer
This coordinate sequence transformer will take a Geometry and transform in a set of curved lines that will be
"flattened" in order to get back a set of straight segments. The error in the transform is linked to the
"flattening", the higher the flattening, the bigger the error, but also, the lesser the number of points that will be
used to represent the resulting coordinate sequence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
void
setFlatness
(double flatness) transform
(CoordinateSequence cs, MathTransform transform) Returns a transformed coordinate sequence.
-
Constructor Details
-
PreciseCoordinateSequenceTransformer
public PreciseCoordinateSequenceTransformer()
-
-
Method Details
-
transform
public CoordinateSequence transform(CoordinateSequence cs, MathTransform transform) throws TransformException Description copied from interface:CoordinateSequenceTransformer
Returns a transformed coordinate sequence.- Specified by:
transform
in interfaceCoordinateSequenceTransformer
- Parameters:
cs
- The sequence to transform.transform
- The transformation to apply.- Throws:
TransformException
- if at least one coordinate can't be transformed.- See Also:
-
getFlatness
public double getFlatness() -
setFlatness
public void setFlatness(double flatness)
-