I have a shapefile with several polygons, and I want to convert it to a raster file with 30mx30m (using QGIS 3.2).
I am using "
Raster > Conversion > Rasterize", and I am having trouble with the values I have to use.
So, for the "Input layer" I am obviously using the shapefile. In the "
Field to use for a burn-in value", I am using a column which is filled with "1" values for all polygons.
For the "
Output raster size units", I am selecting "Pixels", and both "
Width" and "
Height" is 500.000000 (the pixel size seems to get smaller each time this value is increased, and I don't fully understand why). "
Output Extent" has the same extent as the shapefile.
And these are the properties I get in the file:
First question: I don't understand how the "Width" and "Height" values work; how do I set pixel size as 30m?
Second question: How do I get each dark pixel to be, for instance, "1", and the white pixel to be "0" (in a way that the raster is binary)? Or is this automatic?