R/poly.counts.R

Defines functions poly.areas generalize.polys

Documented in generalize.polys poly.areas

poly.counts<-function (pts, polys) 
  colSums(gContains(polys, pts, byid=TRUE))

poly.areas <- function(polys) gArea(polys, byid=TRUE)

generalize.polys <- function(sp,tol) gSimplify(sp,tol)

Try the GISTools package in your browser

Any scripts or data that you put into this service are public.

GISTools documentation built on May 6, 2019, 1:09 a.m.