Skip to content

Commit 0f23abd

Browse files
committed
resulution rasterization
1 parent c46a13b commit 0f23abd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

05-geometry-operations.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,7 @@ The **raster** package contains the function `rasterize()` for doing this work.
10161016
Its first two arguments are `x`, vector object to be rasterized and `y`, a 'template raster' object defining the extent, resolution and CRS of the output.
10171017
The geographic resolution of the input raster has a major impact on the results: if it is too low (cell size is too large) the result may miss the full geographic variability of the vector data; if it is too high computational times may be excessive.
10181018
There are no simple rules to follow when deciding an appropriate geographic resolution, which is heavily dependent on the intended use of the results.
1019+
Often the target resolution is imposed on the user, for example when the output of rasterization needs to be aligned to the existing raster.
10191020

10201021
To demonstrate rasterization in action, we will use a template raster that has the same extent and CRS as the input vector data `cycle_hire_osm_projected` (a dataset on cycle hire points in London illustrated in Figure \@ref(fig:vector-rasterization1):A) and spatial resolution of 1000 meters:
10211022

0 commit comments

Comments
 (0)