org.geotools.geometry.jts
Class PreciseCoordinateSequenceTransformer
java.lang.Object
org.geotools.geometry.jts.PreciseCoordinateSequenceTransformer
- All Implemented Interfaces:
- CoordinateSequenceTransformer
- public class PreciseCoordinateSequenceTransformer
- extends java.lang.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.
- To Do:
- Not yet implemented.
Method Summary |
double |
getFlatness()
|
void |
setFlatness(double flatness)
|
com.vividsolutions.jts.geom.CoordinateSequence |
transform(com.vividsolutions.jts.geom.CoordinateSequence cs,
org.opengis.referencing.operation.MathTransform transform)
Returns a transformed coordinate sequence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreciseCoordinateSequenceTransformer
public PreciseCoordinateSequenceTransformer()
transform
public com.vividsolutions.jts.geom.CoordinateSequence transform(com.vividsolutions.jts.geom.CoordinateSequence cs,
org.opengis.referencing.operation.MathTransform transform)
throws org.opengis.referencing.operation.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:
org.opengis.referencing.operation.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 © GeoTools. All Rights Reserved.