class SimplifyDouglasPeucker implements SimplifyInterface (View source)

Simplify Polyline with the Douglas-Peucker-Algorithm

Methods

__construct(float $tolerance)

No description

simplify(Polyline $polyline)

No description

array
douglasPeucker(array $line)

No description

Details

__construct(float $tolerance)

Parameters

float $tolerance the perpendicular distance threshold in meters

Polyline simplify(Polyline $polyline)

Parameters

Polyline $polyline

Return Value

Polyline

protected array douglasPeucker(array $line)

Parameters

array $line

Return Value

array