Converting a vector to a raster is a very common process in GIS. In this tutorial I’m going to show how it’s done in QGIS in detail.
Follow the following steps:
Step1: Load your desired vectors in layer panel like shown below. Here I will rasterize ‘clipped_building’ vector.
Step2: Processsing Toolbox panel
Go to Processing Toolbox panel -> search ‘vector to raster’, -> under Vector conversion of GDAL section you will get Rasterize(vector to raster).
Step3: Choosing parameters
In input layer select vector that you want to rasterize, choose 1 as fixed value to burn, Georeference units as output raster size units, 15 as Width/Horizontal and Vertical/Height, Output extent as butwal_44N, Assign no data value as Not set. At last save it to a file as ‘Rasterized’.
Remember values you choose depends on for what purpose you are going to use the raster.
If everything is fine you will see output like this.
Definitions
Burn in value: pixel value that represents data(if set to 1 then your data will be white and rest all black).
No data value: invisible region outside the main data.
Vertical/Horizontal resolution: Determines no. of cells/pixels your raster will be formed. If you will give high resolution value then no of cells will be reduced and output raster resolution will be reduced and vice-versa for Georeferenced units.
Output raster size units:
Pixel units: Suppose if you set Vertical/Height resolution and Horizontal/Width resolution as 5 then output raster will have pixels of 5 rows and 5 columns imagining raster as a matrix. This decides spatial resolution of raster.
Georeferenced units: Suppose if you set Vertical/Height resolution and Horizontal/Width resolution as 5 then spatial resolution of each pixel will be 5*5(meaning height and width is 5) and it decides rows and columns of raster matrix.
Output extent: border of raster.
So, that’s all for today we will meet soon in next article.
References:
https://gis.stackexchange.com/questions/379889/qgis-3-16-rasterize-vector-to-raster-parameters
Pirotti, P. F. (n.d.). Multi Criteria Analysis ( MCA ) with GIS Find the best land for growing Mangoes in Madagascar using MCA !
https://www.qgistutorials.com/en/docs/3/multi_criteria_overlay.html
0 comments:
Post a Comment