splitBuffer: Fast Buffer for Spatial* objects.

Description Usage Arguments Details Value Warning

View source: R/splitBuffer.R

Description

splitClip splits a Spatial* object from the (sp) package using seqSPDF, and runs rgeos::gBuffer() on the list.

Usage

1
splitBuffer(input, width = 1, sep = 1000, dissolve = F)

Arguments

input

Spatial* object.

width

Distance for buffer.Defaults to 1.

sep

Passed to seqSPDF(). Default set to 1000.

dissolve

Do you want to dissolve the buffered feature? Defaults to FALSE.

Details

This is a general wrapper for rgeos::gBuffer() that allows for quicker buffer and fixed a ram leak issue caused by large datasets when using the native rgeos function.

Value

Returns a buffer of the Spatial* input feature.

Warning

Will not output with a dataframe due to limitations of the rgeos functions. Will look into using raster::buffer() in a future release.


jacpete/jpfxns documentation built on May 16, 2020, 5:02 a.m.