The default function in raster::rasterize is to see if a point is within a polygon and if yes, make a cell. This results in that some of the outer parts of the polygon is not covered by the new raster. Is it possible to use rasterize (or fasterize or whatever) in a way, so that the entire polygon is covered?
-
2You could maybe buffer the polygons by half-a-cell and then rasterise, or rasterise and then buffer the raster by a cell using a "grow" operation. Alternatively you have to form a rectangle for each of your raster cells and do a load of polygons-raster intersections...– SpacedmanMar 18, 2019 at 15:33
Add a comment
|