API / geotoolkit / util / PolylineOptimizer / PolylineOptimizer
util.PolylineOptimizer.PolylineOptimizer
This utility class performs a various line simplification algorithms
Deprecated
since 4.0
Constructors
Methods
▸ getClassName(): string
string
▸ Static filterByPrecision(x, y, tolerances, size, modelToDevice): [Float64Array, Float64Array, Float64Array, number, number[]]
Filters the unnecessary points using precision data from pre-computed Douglas-Peucker simplification values.
Deprecated
since 4.0
| Name | Type | Description |
|---|---|---|
x | number[] | Float64Array | The x-coordinates |
y | number[] | Float64Array | The y-coordinates |
tolerances | Float64Array | The tolerances array. |
size | number | The number of points. |
modelToDevice | Transformation | The model to device transform. |
[Float64Array, Float64Array, Float64Array, number, number[]]
filteredResult The resulting filtered coordinates and size.
▸ Static getClassName(): string
string
▸ Static reducePoints(x, y, size, tolerancesArray): void
Determines what points can be removed without compromising the polyline structure. (Douglas-Peucker algorithm)
Deprecated
since 4.0
| Name | Type | Description |
|---|---|---|
x | number[] | Float64Array | The x-coordinates of the points |
y | number[] | Float64Array | The y-coordinates of the points |
size | number | The size of the coordinate arrays to use |
tolerancesArray | number[] | Float64Array | The tolerance limit |
void