org.geotools.geometry.jts
Class PreciseCoordinateSequenceTransformer

Object
  extended by 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
PreciseCoordinateSequenceTransformer()
           
 
Method Summary
 double getFlatness()
           
 void setFlatness(double flatness)
           
 CoordinateSequence transform(CoordinateSequence cs, MathTransform transform)
          Returns a transformed coordinate sequence.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(com.vividsolutions.jts.geom.CoordinateSequence, org.geotools.ct.MathTransform2D)

getFlatness

public double getFlatness()

setFlatness

public void setFlatness(double flatness)


Copyright © 1996-2014 Geotools. All Rights Reserved.