Class: Simplificator

ol.geom. Simplificator

An object to simplify geometry


new Simplificator( [options])

Parameters:
Name Type Argument Description
options Object <optional>

Extends

  • ol.Object

Methods


_chainEdges(edges)

Chain edges backward

Parameters:
Name Type Description
edges *
Returns:
Type
Array.<ol.Feature>

getEdges()

Get source edge


getFeatures()

Get the simplified features

Returns:
Type
Array.<ol.Feature>

setFeatures(features [, round])

Set the features to process

Parameters:
Name Type Argument Description
features Array.<ol.Feature>
round number <optional>

round features


simplify(tolerance)

Simplify edges using Douglas Peucker algorithm

Parameters:
Name Type Description
tolerance number

simplifyVisvalingam(options)

Simplify edges using Visvalingam algorithm

Parameters:
Name Type Description
options Object
Properties
Name Type Description
algo string