Approx Vector
This layer (approx_vector) approximates vector figures: lines and polygons.
The operation decreases number of vertices with Douglas-Peucker algorithm.
Example:
1
{
2
"action": "approx_vector",
3
"src": [
4
"$sample1"
5
],
6
"dst": "$sample2",
7
"settings": {
8
"classes": [
9
"my_line",
10
"interesting_poly"
11
],
12
"epsilon": 3
13
}
14
}
Copied!

Settings

  • 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).

Example

Illustrated examples of usage may be found here.
Last modified 1yr ago
Copy link