Hi all,
I can't figure out how to call gdal_rasterize option ALL_TOUCH through a
processing call.
It works fine when calling gdal_rasterize directly but option seems unavailable
in processing wrapper (for instance in algorithm GUI, no way to enable it).
Looking into code, this parameter is not initialized in initAlgorithm , is
there a reason why ?
I call gdal:rasterize with below parameters :
{'ALL_TOUCH': True, 'BURN': None, 'DATA_TYPE': 1, 'EXTENT':
'693953.2805533272,727536.3604331076,6268381.3726414265,6308149.877684969[]',
'FIELD': 'Code', 'HEIGHT': 25.0, 'INPUT':
'C:/Users/mathieu.chailloux/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/BioDispersal/sample_data/BousquetOrbFull/Groups/w2/w2_vector.shp',
'NODATA': '-9999', 'OUTPUT':
'C:/Users/mathieu.chailloux/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/BioDispersal/sample_data/BousquetOrbFull/Groups/w2/w2_raster.tif',
'UNITS': 1, 'WIDTH': 25.0}
and the resulting gdal command is :
BQ_BEGIN
gdal_rasterize -l w2_vector -a Code -tr 25.0 25.0 -a_nodata -9999.0 -te
693953.2805533272 6268381.3726414265 727536.3604331076 6308149.877684969 -ot
Int16 -of GTiff
C:/Users/mathieu.chailloux/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/BioDispersal/sample_data/BousquetOrbFull/Groups/w2/w2_vector.shp
C:/Users/mathieu.chailloux/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/BioDispersal/sample_data/BousquetOrbFull/Groups/w2/w2_raster.tif
BQ_END
I hope someone can help me !
Regards,
Mathieu [ http://www.irstea.fr/ ]
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer