split_lines_using_rules: Calculate the number of times to split/divide each...

Description Usage Arguments Value

View source: R/break_linestrings.R

Description

This function loads an R object with the active geometry "linestring" and a column denoting the minimum value to split large lines with.

Usage

1
2
3
4
5
6
split_lines_using_rules(
  x,
  max_length = 20,
  length_col = "length_m",
  messaging = 5
)

Arguments

x

An sf object or sf dataframe consisting of a column denoting the length of geometry

max_length

Maximum length for each linestring. Can also be a floating value.

length_col

The field with the length variable

messaging

Progress indicator displaying in Percentages

Value

Returns the same R object with the addition of "splits_in_meters" column


tayoso2/sfXtra documentation built on Dec. 23, 2021, 7:50 a.m.