<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><style type="text/css" scoped="">
p, li { white-space: pre-wrap; }
</style><style type="text/css" scoped="">
p, li { white-space: pre-wrap; }
</style><div data-marker="__QUOTED_TEXT__"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;" data-mce-style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;"><br><div>Hi all,<br></div><br><div>I can't figure out how to call <em>gdal_rasterize</em> option <em>ALL_TOUCH</em> through a processing call.<br></div><div>It works fine when calling <em>gdal_rasterize</em> directly but option seems unavailable in processing wrapper (for instance in algorithm GUI, no way to enable it).<br></div><div>Looking into code, this parameter is not initialized in <em>initAlgorithm</em>, is there a reason why ?<br></div><div><br data-mce-bogus="1"></div>I call <em>gdal:rasterize</em> with below parameters :<br><blockquote><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"><!--StartFragment--><span style="color: #808080;" data-mce-style="color: #808080;">{'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}</span><!--EndFragment--></p></blockquote><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;">and the resulting gdal command is :<br data-mce-bogus="1"></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"><br data-mce-bogus="1"></p><blockquote><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;" data-mce-style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"><!--StartFragment--><span style="color: #808080;" data-mce-style="color: #808080;">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</span><!--EndFragment--></p></blockquote>I hope someone can help me !</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;" data-mce-style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;"><br data-mce-bogus="1"></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;" data-mce-style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;">Regards,</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;" data-mce-style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000;">Mathieu<span class="apple-style-span"><span style="font-size: 10pt; color: #810081; font-family: arial;" data-mce-style="font-size: 10pt; color: #810081; font-family: arial;"><span class="Object" id="OBJ_PREFIX_DWT95_com_zimbra_url"><span class="Object" id="OBJ_PREFIX_DWT96_com_zimbra_url"><a title="http://www.irstea.fr/
              blocked::http://www.irstea.fr/" href="http://www.irstea.fr/" target="_blank" rel="noopener" data-mce-href="http://www.irstea.fr/"></a></span></span></span></span></div><br></div></div></body></html>