Re: [R-sig-Geo] raster / polygon overlay

2010-01-05 Thread laure velez
Thanks again for the fast reply, In fact this problem is only a tiny part of the project and I'll need to run this overlay operation over more than 600 polygons (watersheds) to get mean values (and standard error) of ~10 environmental variables (rasters that are not at the same resolution,

Re: [R-sig-Geo] raster / polygon overlay

2010-01-05 Thread laure velez
Many thanks for the fast replies, @ Roger : polygons and raster are ok (see attached file). @ Johannes : I have already try this but the result was not satisfying, using a SpatialPointsDataFrame do not solve the problem as the points are not inside the polygon (see attached file). I gues

[R-sig-Geo] (no subject)

2010-01-05 Thread laure velez
Dear list member, Although the answer to this might be straightforward I'm struggling with this issue for weeks now : I have a shapefile (only one polygon) and a raster (.tif). I would like to know the value of each pixel on the raster which overlap with the polygon in the shapefile. I ha