public class EdgeElevationSmoothing extends Object
| Constructor and Description |
|---|
EdgeElevationSmoothing() |
| Modifier and Type | Method and Description |
|---|---|
static void |
smoothMovingAverage(PointList geometry)
This method smooths the elevation data of a PointList by calculating the average elevation over
multiple points of that PointList.
|
static void |
smoothRamer(PointList pointList,
double maxElevationDelta)
This method removes elevation fluctuations up to maxElevationDelta.
|
public static void smoothMovingAverage(PointList geometry)
public static void smoothRamer(PointList pointList, double maxElevationDelta)
The underlying algorithm is an adapted Ramer-Douglas-Peucker algorithm (see #2634) with a maximum elevation change and: 1. only elevation changes are considered and any lat,lon difference is ignored 2. instead of removing the point the elevation will be calculated from the average slope of the first and last point of the specified pointList
Copyright © 2012–2022. All rights reserved.