For reference for other beginners here:
I did not import the file nor link it externally, thus that step was
missing.
I got it to work and the updated script is:
-------------
----------------
However the last step failed in Grass 7.2.2 on ubuntu Xenial, thus I needed
to inmstall an older version, and in Grass 7.0.3 it is working fine.
Cheers
Karsten
-----Original Message-----
From: karsten [mailto:karsten@terragis.net]
Sent: Mittwoch, 1. November 2017 20:02
To: 'grass-user@lists.osgeo.org'
Subject: where is grass looking for the input tif - r.viewshed run from bash
script
I am trying to run r.viewshed from a bash script on ubuntu following
instruction on https://grasswiki.osgeo.org/wiki/GRASS_and_Shell "GRASS Batch
jobs". I got an error that my input tif file is not found.
I tried specifying the full path to file but get then the Error Illegal
filename
</var/www/mapdata/ilpoe/layers/results/dem30m_cut_852af91d4fe5fd938fa57893e5
991dfe.tif> Character </> not allowed.
My 3 line script is below:
--------------
export GRASS_MESSAGE_FORMAT=plain
g.region n=6446299.8941608080640435 s=5942051.4022588636726141
w=779220.9745125266490504 e=1224529.8597663976252079 res=30 r.viewshed -b
input="/var/www/results/dem30m.tif" output="/var/www/results/vis.tif"
coordinates=1127369.7301780644,6268333.160068306 observer_elevation=120
max_distance=1800 memory=2000
------------
Where is Grass looking for the input tif and how do I need to specify that ?
For reference for other beginners here:
I did not import the file nor link it externally, thus that step was
missing.
I got it to work and the updated script is:
However the last step failed in Grass 7.2.2 on ubuntu Xenial,
How did it fail? Can you provide the error messages?
Markus M
thus I needed
to inmstall an older version, and in Grass 7.0.3 it is working fine.
Cheers
Karsten
-----Original Message-----
From: karsten [mailto:karsten@terragis.net]
Sent: Mittwoch, 1. November 2017 20:02
To: ‘grass-user@lists.osgeo.org’
Subject: where is grass looking for the input tif - r.viewshed run from bash
script
I am trying to run r.viewshed from a bash script on ubuntu following
instruction on https://grasswiki.osgeo.org/wiki/GRASS_and_Shell “GRASS Batch
jobs”. I got an error that my input tif file is not found.
I tried specifying the full path to file but get then the Error Illegal
filename
</var/www/mapdata/ilpoe/layers/results/dem30m_cut_852af91d4fe5fd938fa57893e5
991dfe.tif> Character </> not allowed.
My 3 line script is below:
It failed with all 3 options I tried:
using r.external for linking the dem ( as in https://trac.osgeo.org/grass/ticket/3285 )
but also failed the same way with
r.in.gdal
OR using
r.import.
The error messages in all case where “Error in `r.viewshed’: free(): invalid pointer:”
plus a Backtrace and Memory map like in https://trac.osgeo.org/grass/ticket/3285
I can’t provide the exact ones of those any more because I have deinstalled grass7.2.2 as I could not use it for this task.
Cheers
Karsten
From: Markus Metz [mailto:markus.metz.giswork@gmail.com] Sent: Mittwoch, 1. November 2017 21:52 To: karsten Cc: grass-user Subject: Re: [GRASS-user] where is grass looking for the input tif - r.viewshed run from bash script
For reference for other beginners here:
I did not import the file nor link it externally, thus that step was
missing.
I got it to work and the updated script is:
However the last step failed in Grass 7.2.2 on ubuntu Xenial,
How did it fail? Can you provide the error messages?
Markus M
thus I needed
to inmstall an older version, and in Grass 7.0.3 it is working fine.
Cheers
Karsten
-----Original Message-----
From: karsten [mailto:karsten@terragis.net]
Sent: Mittwoch, 1. November 2017 20:02
To: ‘grass-user@lists.osgeo.org’
Subject: where is grass looking for the input tif - r.viewshed run from bash
script
I am trying to run r.viewshed from a bash script on ubuntu following
instruction on https://grasswiki.osgeo.org/wiki/GRASS_and_Shell “GRASS Batch
jobs”. I got an error that my input tif file is not found.
I tried specifying the full path to file but get then the Error Illegal
filename
</var/www/mapdata/ilpoe/layers/results/dem30m_cut_852af91d4fe5fd938fa57893e5
991dfe.tif> Character </> not allowed.
My 3 line script is below:
On Wed, Nov 1, 2017 at 10:11 PM, karsten <karsten@terragis.net> wrote:
It failed with all 3 options I tried:
using r.external for linking the dem ( as in https://trac.osgeo.org/grass/ticket/3285 )
but also failed the same way with
r.in.gdal
OR using
r.import.
The error messages in all case where "Error in `r.viewshed': free():
invalid pointer:"
plus a Backtrace and Memory map like in https://trac.osgeo.org/grass/ticket/3285
I can't provide the exact ones of those any more because I have deinstalled
grass7.2.2 as I could not use it for this task.