[GRASS-user] Problems with r.viewshed

Markus Neteler neteler at osgeo.org
Mon Oct 13 12:24:45 PDT 2014


Hi,

just for the record: I tried and did not have a problem:


GRASS 7.0.0svn (latlong):~ > r.viewshed -b input=srtmv4_spain
output=visPort coordinates=-3.74034324324,42.5352702703 obs_elev=9
tgt_elev=1.75 max_dist=30000
Computing events...
 100%

Computing visibility...
 100%
Writing output raster map...
 100%
GRASS 7.0.0svn (latlong):~ >
GRASS 7.0.0svn (latlong):~ > d.mon wx0
GRASS 7.0.0svn (latlong):~ > d.rast srtmv4_spain
 100%
GRASS 7.0.0svn (latlong):~ > d.rast visPort
 100%
--> looks ok.


Then I tried with a large computational region:

GRASS 7.0.0svn (latlong):~ > g.region n=50 s=30 w=-20 e=20 -p
projection: 3 (Latitude-Longitude)
zone:       0
datum:      wgs84
ellipsoid:  wgs84
north:      50N
south:      30N
west:       20W
east:       20E
nsres:      0:00:30
ewres:      0:00:30
rows:       2400
cols:       4800
cells:      11520000
GRASS 7.0.0svn (latlong):~ > r.viewshed -b input=srtmv4_spain
output=visPort coordinates=-3.74034324324,42.5352702703 obs_elev=9
tgt_elev=1.75 max_dist=30000
ERROR: option <output>: <visPort> exists.
GRASS 7.0.0svn (latlong):~ > r.viewshed -b input=srtmv4_spain
output=visPort coordinates=-3.74034324324,42.5352702703 obs_elev=9
tgt_elev=1.75 max_dist=30000 --o
Intermediate files will not be deleted in case of abnormal termination.
Intermediate location:
/home/neteler/grassdata/latlong/neteler/.tmp/oboe.localdomain/929.0
To save space delete these files manually!
Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode.
Start sweeping.
Computing events...
 100%
Initialize sweepline...
 100%
Determine visibility...
 100%
Sweeping done.
Saving grid to <visPort>

--> also fine.

I am using a 64bit Linux computer (Fedora 20), are you also on 64bit?

Markus


More information about the grass-user mailing list