This layer (`approx_vector`

) approximates vector figures: lines and polygons.

The operation decreases number of vertices with Douglas-Peucker algorithm.

Example:

{"action": "approx_vector","src": ["$sample1"],"dst": "$sample2","settings": {"classes": ["my_line","interesting_poly"],"epsilon": 3}}

`classes`

— list of classes to apply transformation. Only classes with shape "line" or "polygon" are allowed.`epsilon`

— approximation accuracy (maximum distance between the original curve and its approximation).

Illustrated examples of usage may be found here.