[R-sig-Geo] Intersect polygon with grid

Adrian.Baddeley at csiro.au Adrian.Baddeley at csiro.au
Thu Dec 24 02:43:16 CET 2009

Johannes Signer <j.m.signer at gmail.com> writes:

> I have a shapefile, that I want to overlay with a raster 
> and then assign each raster cell a value that represents 
> the percentage covered by the shape file.

In the 'spatstat' package the function 'pixellate.owin' does this calculation.

Prof Adrian Baddeley (UWA/CSIRO)
CSIRO Mathematical and Information Sciences
Leeuwin Centre, 65 Brockway Road, Floreat WA 6014, Australia
Tel: 08 9333 6177 | Fax: 08 9333 6121 | Mob: 0410 447 821

More information about the R-sig-Geo mailing list