gBoundingPolyClip: bounding box clip function

Description Usage Arguments Details Examples

Description

This function clips a set of reference polygons to some multiple of the extent of a container polygon. It is most useful for reducing a large set of polygons (e.g. US Census Block groups) to a smaller subset. New! it now returns full intersecting polygons rather than the clipped slivers. And if reference is a SpatialPolygonsDataFrame it will return a SpatialPolygonsDataFrame (yay!)

Usage

1
gBoundingPolyClip(container, reference, tolerance = 1.5)

Arguments

container

The single polygon to whose extent the reference polygons will be included

reference

The set of polygons that will be selected down to the reference polygon

tolerance

The multiple by which the extent of the reference polygon will be expanded (default = 1.5)

Details

Note: all inputs should be of class sp::SpatialPolygons|Points

Examples

1
gBoundingPolyClip(drivetime, block_groups, tolerance = 1.25)

townleym/mSpatial documentation built on May 31, 2019, 6:46 p.m.