Adds coordinates along a LineString ensuring that no two coordinates are
further than a maximum distance apart from eachother.
Usage
densify_euclidean(x, max_distance)
densify_haversine(x, max_distance)
Arguments
x
an object with linear geometries. Can be an rsgeo object except"rs_POINT" or "rs_MULTIPOINT".
max_distance
the maximum allowed distance between coordinates.
Details
max_distance expects meters for densify_haversine() whereas
densify_euclidean() expects the units of the geometry.
Be sure to use the appropriate densification function based on
the type of geometries you have. rsgeo does not check if your coordinates
are geographic or planar. It is up to you to choose the correct algorithm.