splitPolyline: Split a polyline into a number of transects

View source: R/splitPolyline.R

splitPolylineR Documentation

Split a polyline into a number of transects

Description

splitPolyline returns a list with a number of transects along a polyline

Usage

splitPolyline(xy, xyp, dmax)

Arguments

xy

2-column [x,y] matrix defining the polyline nodes

xyp

2-column [x,y] matrix with a point set

dmax

maximum distance between points in xy and the polyline, for these to be considered for poyline splitting

Details

splitPolyline obtain the closest points in a polyline to a given input set of points. Those closest points are used to divide the polyline in a number of transects. The indivudual transects are clipped to the input point dataset, so the different transects are continuous in space. Note that if the input points is quite appart from the polyline, the output seqence of transect may substantially differ form the input polyline at rupture zones

Value

A list in which each element is a matrix representing an individual polyline

See Also

Spatial-class


SpatialGraph documentation built on Sept. 28, 2023, 5:08 p.m.