Hello Luis,
Maybe it is a coordinate reference system problem? It looks like you’re using wgs84 for the input and coordinates, and requesting the calculation in meters (obs_elev, tgt_elev and max_dist). Try to change the CRS to see if it works.
r.viewshed -b input=Portada@inisig output=visPort
coordinates=-3.74034324324,42.5352702703
obs_elev=9 tgt_elev=1.75
max_dist=30000
Computing events…
Computing visibility…
r.viewshed: statusstructure.cpp:73: float
get_vertical_angle(Viewpoint, StatusNode, surface_type,
int): La declaraci?n `fabs(sn.dist2vp) > 0.001’ no se
cumple.
Adios,
Pedro Palheiro
···
2014-09-25 20:00 GMT+01:00 <grass-user-request@lists.osgeo.org>:
Send grass-user mailing list submissions to
grass-user@lists.osgeo.orgTo subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/grass-user
or, via email, send a message with subject or body ‘help’ to
grass-user-request@lists.osgeo.orgYou can reach the person managing the list at
grass-user-owner@lists.osgeo.orgWhen replying, please edit your Subject line so it is more specific
than “Re: Contents of grass-user digest…”Today’s Topics:
- Re: removing small lines (Markus Neteler)
- Problems with r.viewshed (Luis Miguel Royo P?rez)
- Re: Problems with r.viewshed (Markus Neteler)
- Re: Problems with r.viewshed (Luis Miguel Royo P?rez)
Message: 1
Date: Thu, 25 Sep 2014 10:25:25 +0200
From: Markus Neteler <neteler@osgeo.org>
To: Levente Juh?sz <jlevente89@gmail.com>
Cc: GRASS user list <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] removing small lines
Message-ID:
<CALFmHhsJtJ0-=me+C_8o6+Y9CTA1P-cofD3NemuyE30uBmvF5Q@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8On Wed, Sep 24, 2014 at 4:22 PM, Levente Juh?sz <jlevente89@gmail.com> wrote:
Hi all,
I’ve seen that the remove_small method of v.generalize has been eliminated.
Reduction method does not work in the way I want since it just removes point
from lines and it seems like has no effect on a line of 2 points - even if
they’re smaller than the threshold.
Can someone tell me what the workaround is for removing small lines from a
vector for example by a threshold in map units?You may use v.to.db and option=length (line length), then use
v.extract to extract into a new map according to a threshold you need.Markus
Message: 2
Date: Thu, 25 Sep 2014 10:35:52 +0200
From: Luis Miguel Royo P?rez <
luis.miguel.royo@gmail.com>
To: grass-user@lists.osgeo.org
Subject: [GRASS-user] Problems with r.viewshed
Message-ID: <5423D3E8.5090206@gmail.com>
Content-Type: text/plain; charset=“utf-8”; Format=“flowed”Hi everyone,
when I try to run r.viewshed the output shows me this:
Nodata value set to -nan
rows=198, cols=217, total = 42966
In-memory memory usage is 4298336 B (4 MB), max mem
allowed=524288000 B(500MB)
***** IN_MEMORY MODE *****
Start sweeping.
Computing events …
Sorting events…
Terminado.
Determine visibility…
r.viewshed: statusstructure.cpp:73: float
get_vertical_angle(Viewpoint, StatusNode, surface_type,
int): La declaraci?n `fabs(sn.dist2vp) > 0.001’ no se
cumple.Anyone has a clue about what it could be happening?
I’m using GRASS 6.4.4 in Xubuntu 14.04.
I think I must say that a few days ago I installed GRASS 7 but I removed
it and reinstalled GRASS 6.4.4. Maybe is there any incompatibility?Thanks a lot!!!
-------------- next part --------------
An HTML attachment was scrubbed…
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140925/15c0ab71/attachment-0001.html>
Message: 3
Date: Thu, 25 Sep 2014 12:46:13 +0200
From: Markus Neteler <neteler@osgeo.org>
To: Luis Miguel Royo P?rez <luis.miguel.royo@gmail.com>
Cc: GRASS user list <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] Problems with r.viewshed
Message-ID:
<CALFmHhuPb4w+S03JwMEohU0yQaUas+0f65R=sVaXsFFEOaTALg@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8On Thu, Sep 25, 2014 at 10:35 AM, Luis Miguel Royo P?rez
<luis.miguel.royo@gmail.com> wrote:Hi everyone,
when I try to run r.viewshed the output shows me this:
(in GRASS 6 it is an Addon)
Nodata value set to -nan
rows=198, cols=217, total = 42966
In-memory memory usage is 4298336 B (4 MB), max mem
allowed=524288000 B(500MB)
***** IN_MEMORY MODE *****
Start sweeping.
Computing events …
Sorting events…
Terminado.
Determine visibility…
r.viewshed: statusstructure.cpp:73: float
get_vertical_angle(Viewpoint, StatusNode, surface_type,
int): La declaraci?n `fabs(sn.dist2vp) > 0.001’ no se
cumple.Anyone has a clue about what it could be happening?
I’m using GRASS 6.4.4 in Xubuntu 14.04.
I have backported some fixes from GRASS 7 to the addon in GRASS 6.
Please reinstall the addon with g.extension and try again.I think I must say that a few days ago I installed GRASS 7 but I removed it
and reinstalled GRASS 6.4.4. Maybe is there any incompatibility?No, GRASS 6 and 7 can happily live together.
Please let us know if the updated Addon runs ok for you.
Markus
Message: 4
Date: Thu, 25 Sep 2014 14:11:36 +0200
From: Luis Miguel Royo P?rez <luis.miguel.royo@gmail.com>
To: Markus Neteler <neteler@osgeo.org>
Cc: GRASS user list <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] Problems with r.viewshed
Message-ID: <54240678.7060005@gmail.com>
Content-Type: text/plain; charset=“utf-8”; Format=“flowed”I’m sorry but it didn’t work.
I have reinstalled the addon but it didn’t work, reinstalled GRASS 6.4
and neither, then installed GRASS7 again, and appears this message:r.viewshed -b input=Portada@inisig output=visPort
coordinates=-3.74034324324,42.5352702703 obs_elev=9 tgt_elev=1.75
max_dist=30000
Computing events…
Computing visibility…
r.viewshed: statusstructure.cpp:73: float
get_vertical_angle(Viewpoint, StatusNode, surface_type,
int): La declaraci?n `fabs(sn.dist2vp) > 0.001’ no se
cumple.I will try in another PC.
Thank you for your time.
El 25/09/14 a las #4, Markus Neteler escribi?:
On Thu, Sep 25, 2014 at 10:35 AM, Luis Miguel Royo P?rez
<luis.miguel.royo@gmail.com> wrote:Hi everyone,
when I try to run r.viewshed the output shows me this:
(in GRASS 6 it is an Addon)Nodata value set to -nan
rows=198, cols=217, total = 42966
In-memory memory usage is 4298336 B (4 MB), max mem
allowed=524288000 B(500MB)
***** IN_MEMORY MODE *****
Start sweeping.
Computing events …
Sorting events…
Terminado.
Determine visibility…
r.viewshed: statusstructure.cpp:73: float
get_vertical_angle(Viewpoint, StatusNode, surface_type,
int): La declaraci?n `fabs(sn.dist2vp) > 0.001’ no se
cumple.Anyone has a clue about what it could be happening?
I’m using GRASS 6.4.4 in Xubuntu 14.04.
I have backported some fixes from GRASS 7 to the addon in GRASS 6.
Please reinstall the addon with g.extension and try again.I think I must say that a few days ago I installed GRASS 7 but I removed it
and reinstalled GRASS 6.4.4. Maybe is there any incompatibility?
No, GRASS 6 and 7 can happily live together.Please let us know if the updated Addon runs ok for you.
Markus
-------------- next part --------------
An HTML attachment was scrubbed…
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140925/edaf5af2/attachment-0001.html>
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-userEnd of grass-user Digest, Vol 101, Issue 39
–
Pedro Palheiro