Class GaussianLineSmoothing
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.algo.line.GaussianLineSmoothing
-
public class GaussianLineSmoothing extends Object
Line gaussian smoothing.- Author:
- julien Gaffuri
-
-
Constructor Summary
Constructors Constructor Description GaussianLineSmoothing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.LineString
get(org.locationtech.jts.geom.LineString line, double sigmaM)
static org.locationtech.jts.geom.LineString
get(org.locationtech.jts.geom.LineString line, double sigmaM, double resolution)
Line gaussian smoothing.
-
-
-
Method Detail
-
get
public static org.locationtech.jts.geom.LineString get(org.locationtech.jts.geom.LineString line, double sigmaM)
- Parameters:
line
-sigmaM
-- Returns:
-
get
public static org.locationtech.jts.geom.LineString get(org.locationtech.jts.geom.LineString line, double sigmaM, double resolution)
Line gaussian smoothing. The position of each point is the average position of its neighbors, weighted by a gaussian kernel. For non-closed lines, the initial and final points are preserved.- Parameters:
line
- The input linesigmaM
- The standard deviation of the gaussian kernel. The larger, the more smoothed.resolution
- The target resolution of the geometry. This parameter is used to filter the final geometry.- Returns:
-
-