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 Constructor Description PreciseCoordinateSequenceTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getFlatness()
void
setFlatness(double flatness)
CoordinateSequence
transform(CoordinateSequence cs, MathTransform transform)
Returns a transformed coordinate sequence.
-
-
-
Method Detail
-
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:
org.geotools.geometry.jts.CoordinateSequenceTransformer#transform(org.locationtech.jts.geom.CoordinateSequence, org.geotools.ct.MathTransform2D)
-
getFlatness
public double getFlatness()
-
setFlatness
public void setFlatness(double flatness)
-
-