Arith: Algebra (notation) for manipulating SpatialPolygons*

Description Author(s)

Description

Given SpatialPolygons* objects x and y

x+y This is the same as merge(x, y)

x*y This is the same as intersect(x, y)

x^y This is the same as crop(x, y)

x-y This is the same as erase(x, y)

These functions are based on functions from rgeos, with some added functionality to, among other things, avoid polygon duplication and to keep the attributes.

Author(s)

Robert J. Hijmans


geovec documentation built on May 2, 2019, 6:15 p.m.