This Densifier only applies on unsnapped segments, and will split it into subsegment by creating
new points on the line, so that the distance between points is not more that distance
(in meters).
The parameter maxPoints overrides maxPointDistance, and creates a hard limit on the number of
points created in the new segment.
If the segment already contains points in between, they are discarded and a new straight segment
between the start and the end of the line is returned.
WARNING:: It is assumed that the map projection is in meters, like EPSG:3857 or EPSG:2056, as the
euclidian distance is used to compute the new points.
This Densifier only applies on unsnapped segments, and will split it into subsegment by creating new points on the line, so that the distance between points is not more that
distance
(in meters).The parameter
maxPoints
overridesmaxPointDistance
, and creates a hard limit on the number of points created in the new segment.If the segment already contains points in between, they are discarded and a new straight segment between the start and the end of the line is returned.
WARNING:: It is assumed that the map projection is in meters, like EPSG:3857 or EPSG:2056, as the euclidian distance is used to compute the new points.