|Input vector contour lines|
|Input raster GeoTiff file|
- Open up a Windows Command Prompt.
- Type in the following command, (assuming the GDAL installation bin folder is in the system path).
C:\> gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 0 -burn 0 -l contour contour.shp lub_tile1.tif
Note 1: -burn 255 -burn 0 -burn 0 means burn the RGB color values (255, 0, 0).
Note 2: -b 1 -b 2 -b 3 means to use the three bands of R, G, and B.
Note 3: this utility will overwrite the input raster file, so make sure there is a backup copy of the file.
The contour.shp vector lines are burned onto the GeoTiff file lub_tile1.tif.