Skip to contents

Helper function for union operation

Usage

util_nps_unionchunk(sf1, sf2, chunk_size, verbose = TRUE)

Arguments

sf1

First sf object

sf2

Second sf object

chunk_size

Integer. For large datasets, process in chunks of this many features from sf1.

verbose

Logical. If TRUE, will print progress messages. Default is TRUE.

Value

An sf object containing the spatial intersection of sf1 and sf2, with geometries unioned by unique combinations of all attributes from both input objects.

Details

Used internally by util_nps_union. See the help file for more details.

Examples

if (FALSE) { # \dontrun{
data(tbjuris)
data(tbsubshed)
result <- util_nps_unionchunk(tbsubshed, tbjuris)
} # }