splitClip: Fast Clip for Spatial* objects.

Description Usage Arguments Details Value Warning

View source: R/splitClip.R

Description

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

Usage

1
splitClip(input, clipFeature, sep = 1000)

Arguments

input

Spatial* object.

clipFeature

SpatialPolygons* object.

sep

Passed to seqSPDF(). Default set to 1000.

Details

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

Value

Returns the true clip of a Spatial* feature.

Warning

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


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