mGetIntersecting: Return polygons enclosed within a container (Deprecated)

Description Usage Arguments Details Examples

Description

Kinda like gEnclosedArea

Usage

1
mGetIntersecting(container, reference)

Arguments

container

A SpatialPolygons or SpatialPolygonsDataFrame object of a single, container polygon

reference

A SpatialPolygons or SpatialPolygonsDataFrame object with the values to be summarized within a containing polygon

centroids

A set of centroids for the reference polygons obtained by gCentroids

Details

Returns all the reference polygons from a SpatialPolygonsDataFrame that intersect with a container. Adds an attribute to the @data slot with the percent of overlapping area.

This function uses name matching / extraction. It's a kludge and often fails. use gPolyByIntersect instead. Preserved for existing code that uses it.

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

Examples

1
gPolyByCentroid(blockgroups, sp::gCentroid(blockgroups, byid = T), cbsa)

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