make_scan_points: Create points for scan locations around a central point

View source: R/scan_pts.R

make_scan_pointsR Documentation

Create points for scan locations around a central point

Description

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)

Usage

make_scan_points(input_shp, output_shp, dist, dirs = c(0, 90, 180, 270))

Arguments

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)

Examples

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)


jbcannon/landecoutils documentation built on July 16, 2025, 10:17 p.m.