I have seen this solution to generate random point on polygon's border. I was wondering how I could add a minimum distance constrain to this solution ?! For example :
len <- st_length(st_cast(nc_p,"MULTILINESTRING"))
will return the polygon perimeter, and maximum number of points ,n
, will be :
n = floor(len/min_distance)
But how the minimum distance should be implemented ?!