<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#444444">Hello,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#444444">I'm having some difficulty running the G.R.A.S.S r.viewshed tool in batch mode from QGIS. Everything runs fine when initiated via the single run interface, but switching to batch mode and entering the same parameters fails - it looks like a parameter isn't being sent to G.R.A.S.S correctly. If anyone can see why it is failing I would be most grateful for any suggestions! <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#444444"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#444444"><p style="margin:0px;white-space:pre-wrap">Processing algorithm 1/10…</p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-weight:600">Algorithm r.viewshed starting…</span></p>
<p style="margin:0px;white-space:pre-wrap">Input parameters:</p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:monospace">{'-b': False,<br>'-c': False,<br>'-e': False,<br>'-r': False,<br>'GRASS_RASTER_FORMAT_META': '',<br>'GRASS_RASTER_FORMAT_OPT': '',<br>'GRASS_REGION_CELLSIZE_PARAMETER': 0.0,<br>'GRASS_REGION_PARAMETER': None,<br>'coordinates': '263160,606413',<br>'input': '/home/Sine/Projects - Active/A009.01 Pencloe Wind Farm FEI 2017/04 '<br>'GIS + Models/4.2 Working/4.2.1 '<br>'Datasets/Topography/OS_Terrain_5_304095_399562/OS_Terrain_5_No_Data_Val_Set.tif',<br>'max_distance': -1.0,<br>'memory': 500,<br>'observer_elevation': 4.0,<br>'output': <QgsProcessingOutputLayerDefinition {'sink':/home/Sine/Projects - Active/A009.01 Pencloe Wind Farm FEI 2017/04 GIS + Models/4.2 Working/4.2.1 Datasets/Viewsheds/OS Terrain 5/Viewshed-R02-150m-Tip-R001.tif, 'createOptions': {}}>,<br>'refraction_coeff': 0.14286,<br>'target_elevation': 150.0}</span></p>
<p style="margin:0px;white-space:pre-wrap"><br></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:monospace">g.region n=0.0 s=0.0 e=0.0 w=0.0 res=100.0</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:monospace">r.viewshed input=rast_5c7edf2bb077e4 coordinates=263160.0,606413.0 observer_elevation=4 target_elevation=150 max_distance=-1 refraction_coeff=0.14286 memory=500 output=outputc92a2bbaf5ee495f8178f059efda1a2a --overwrite</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:monospace">g.region raster=outputc92a2bbaf5ee495f8178f059efda1a2a</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:monospace">r.out.gdal -t -m input="outputc92a2bbaf5ee495f8178f059efda1a2a" output="/home/Sine/Projects - Active/A009.01 Pencloe Wind Farm FEI 2017/04 GIS + Models/4.2 Working/4.2.1 Datasets/Viewsheds/OS Terrain 5/Viewshed-R02-150m-Tip-R001.tif" format="GTiff" createopt="TFW=YES,COMPRESS=LZW" --overwrite</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:monospace;color:rgb(119,119,119)">Starting GRASS GIS...</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="font-family:monospace;color:rgb(119,119,119)">Executing </tmp/processing_74d5b0c5eb1d4f709048279018901380/grassdata/grass_batch_job.sh> ...</span></p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">Traceback (most recent call last):<br>File "/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Algorithm.py", line 423, in processAlgorithm<br>Grass7Utils.executeGrass(self.commands, feedback, self.outputCommands)<br>File "/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py", line 400, in executeGrass<br>feedback.reportError(line.strip())<br>TypeError: reportError(self, error: str, fatalError: bool): not enough arguments<br></span></p>
<p style="margin:0px;white-space:pre-wrap">Batch execution completed in 0.46 seconds</p><p style="margin:0px;white-space:pre-wrap">---</p><table border="0" style="margin:0px" align="center" width="100%" cellspacing="2" cellpadding="0">
<tbody><tr>
<td>
<p style="margin:0px;white-space:pre-wrap">QGIS version</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">3.6.0-Noosa</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">QGIS code revision</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap"><a href="https://github.com/qgis/QGIS/commit/5873452"><span style="color:rgb(0,0,255)">5873452</span></a></p></td></tr>
<tr>
<td>
<p style="margin:0px;white-space:pre-wrap">Compiled against Qt</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">5.11.1</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">Running against Qt</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">5.11.1</p></td></tr>
<tr>
<td>
<p style="margin:0px;white-space:pre-wrap">Compiled against GDAL/OGR</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">2.3.2</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">Running against GDAL/OGR</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">2.3.2</p></td></tr>
<tr>
<td>
<p style="margin:0px;white-space:pre-wrap">Compiled against GEOS</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">3.6.2-CAPI-1.10.2</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">Running against GEOS</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">3.6.2-CAPI-1.10.2 4d2925d6</p></td></tr>
<tr>
<td>
<p style="margin:0px;white-space:pre-wrap">PostgreSQL Client Version</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">10.5 (Ubuntu 10.5-1)</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">SpatiaLite Version</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">4.3.0a</p></td></tr>
<tr>
<td>
<p style="margin:0px;white-space:pre-wrap">QWT Version</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">6.1.3</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">QScintilla2 Version</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">2.10.4</p></td></tr>
<tr>
<td>
<p style="margin:0px;white-space:pre-wrap">Compiled against PROJ</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">510</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">Running against PROJ</p></td>
<td>
<p style="margin:0px;white-space:pre-wrap">5.1.0</p></td></tr></tbody></table></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin-bottom:0cm;line-height:16px;color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Arial, sans-serif"><font color="#444444"><font style="font-size:10pt" size="2">Kind regards,</font></font></font></p><p style="margin-bottom:0cm;line-height:16px;color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></p><p style="margin-bottom:0cm;line-height:16px;color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font color="#444444"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2">Sam.<br></font></font></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div>