[Qgis-user] r.viewshed batch processing

Samuel Williams sam.williams at sineenvironmental.com
Tue Mar 5 14:52:51 PST 2019


Hello,
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!

Processing algorithm 1/10…

Algorithm r.viewshed starting…

Input parameters:

{'-b': False,
'-c': False,
'-e': False,
'-r': False,
'GRASS_RASTER_FORMAT_META': '',
'GRASS_RASTER_FORMAT_OPT': '',
'GRASS_REGION_CELLSIZE_PARAMETER': 0.0,
'GRASS_REGION_PARAMETER': None,
'coordinates': '263160,606413',
'input': '/home/Sine/Projects - Active/A009.01 Pencloe Wind Farm FEI
2017/04 '
'GIS + Models/4.2 Working/4.2.1 '
'Datasets/Topography/OS_Terrain_5_304095_399562/OS_Terrain_5_No_Data_Val_Set.tif',
'max_distance': -1.0,
'memory': 500,
'observer_elevation': 4.0,
'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': {}}>,
'refraction_coeff': 0.14286,
'target_elevation': 150.0}


g.region n=0.0 s=0.0 e=0.0 w=0.0 res=100.0

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

g.region raster=outputc92a2bbaf5ee495f8178f059efda1a2a

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

Starting GRASS GIS...

Executing
</tmp/processing_74d5b0c5eb1d4f709048279018901380/grassdata/grass_batch_job.sh>
...

Traceback (most recent call last):
File
"/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Algorithm.py",
line 423, in processAlgorithm
Grass7Utils.executeGrass(self.commands, feedback, self.outputCommands)
File
"/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py",
line 400, in executeGrass
feedback.reportError(line.strip())
TypeError: reportError(self, error: str, fatalError: bool): not enough
arguments

Batch execution completed in 0.46 seconds

---

QGIS version

3.6.0-Noosa

QGIS code revision

5873452 <https://github.com/qgis/QGIS/commit/5873452>

Compiled against Qt

5.11.1

Running against Qt

5.11.1

Compiled against GDAL/OGR

2.3.2

Running against GDAL/OGR

2.3.2

Compiled against GEOS

3.6.2-CAPI-1.10.2

Running against GEOS

3.6.2-CAPI-1.10.2 4d2925d6

PostgreSQL Client Version

10.5 (Ubuntu 10.5-1)

SpatiaLite Version

4.3.0a

QWT Version

6.1.3

QScintilla2 Version

2.10.4

Compiled against PROJ

510

Running against PROJ

5.1.0

Kind regards,


Sam.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190305/a5d2f731/attachment.html>


More information about the Qgis-user mailing list