Feature request #6436

gdal_rasterize GUI does not include the "-burn" option

Added by Micha Silver about 5 years ago. Updated 6 months ago.

Status:Open
Priority:Normal
Assignee:-
Category:Processing/GDAL
Pull Request or Patch supplied:No Resolution:
Easy fix?:No

Description

The gdal_rasterize command line utility allows for an option "-burn <value>" which sets all raster pixel values to a static value. This option does not exist in the GDALTools GUI for gdal_rasterize. In the GUI you can only choose an attrib column from the vector to obtain raster values.

History

#1 Updated by Giovanni Manghi about 5 years ago

  • Assignee set to Giuseppe Sucameli
  • Target version changed from Version 1.8.0 to Version 2.0.0

#2 Updated by Lorenzo Masini about 5 years ago

The manpage of gdal_rasterize says about the -burn option:

-burn value:
           A fixed value to burn into a band for all objects. A list of -burn options can be supplied, one per band being written to.

The gui doesn't permit to set the band, so gdal_rasterize assume band 1.

Is it correct to permit only one value for burn (the burn value for band 1)?

#3 Updated by Lorenzo Masini about 5 years ago

  • Assignee changed from Giuseppe Sucameli to Lorenzo Masini

#4 Updated by Paolo Cavallini about 5 years ago

IMHO yes

#5 Updated by Giovanni Manghi almost 5 years ago

  • Assignee changed from Lorenzo Masini to Giuseppe Sucameli

#6 Updated by Paolo Cavallini almost 5 years ago

  • Assignee changed from Giuseppe Sucameli to anonymous -

#7 Updated by Jürgen Fischer over 3 years ago

  • Target version changed from Version 2.0.0 to Future Release - Lower Priority

#8 Updated by Jürgen Fischer over 3 years ago

  • Assignee deleted (anonymous -)

#9 Updated by Médéric RIBREUX over 1 year ago

  • Category changed from GDAL Tools to Processing/GDAL
  • Tag set to easy

Hello, bug triage...

still true for QGIS 2.13 master on both fTools and Processing GDAL.
Like suggested, we only need to add an option for band 1 only in python/plugins/processing/algs/gdal/rasterize.py

I think this is easy to fix and this feature request merits the 'easy' tag...

#10 Updated by Giovanni Manghi 6 months ago

  • Easy fix? set to No

Also available in: Atom PDF