make_scan_points | R Documentation |
This function takes a shapefile containing plot locations, and creates new points in the specified directions at a constant distance. It returns the original points (newid=0) plus the surrounding pionts (newid > 0)
make_scan_points(input_shp, output_shp, dist, dirs = c(0, 90, 180, 270))
input_shp |
path to a .SHP containing points |
output_shp |
path to a .SHP to output points |
dist |
distance (in meters) of desired distance to each point |
dirs |
directions of desired new points (in degrees) |
in_file = 'R:/landscape_ecology/test.shp'
out_file = 'R:/landscape_ecology/output.shp'
dirs = c(0,90,180,270)
dist = 20
make_scan_points(in_file, out_file, dist, dirs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.