org.jaitools.jts
Interface SmootherControl
-
public interface SmootherControl
Defines methods to control the smoothing process. LineSmoother
has a default implementation that specifies a constant number of vertices in smoothed segments and no lower bound on the distance between input vertices for smoothing.
To customize smoothing, pass your own implementation to AbstractSmoother.setControl(org.jaitools.jts.SmootherControl)
- Since:
- 1.1
- Version:
- $Id$
- Author:
- Michael Bedward
Method Summary |
double |
getMinLength()
Gets the minimum distance between input vertices for the segment to be smoothed. |
int |
getNumVertices(double length)
Given an input segment length, returns the number of vertices to use for the smoothed segment. |
getMinLength
double getMinLength()
-
Gets the minimum distance between input vertices for the segment to be smoothed. Segments smaller than this will be copied to the output unchanged.
-
- Returns:
- minimum segment length for smoothing
getNumVertices
int getNumVertices(double length)
-
Given an input segment length, returns the number of vertices to use for the smoothed segment. This number includes the segment end-points.
-
- Parameters:
-
length
- input segment length
- Returns:
- number of vertices in the smoothed segment including the end-points
Copyright © 2009-2013. All Rights Reserved.