Class 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 Detail

      • PreciseCoordinateSequenceTransformer

        public PreciseCoordinateSequenceTransformer()
    • 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 interface CoordinateSequenceTransformer
        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)