[GRASS-user] Problems with r.viewshed

Pedro Palheiro pedro.palheiro at gmail.com
Thu Sep 25 16:15:36 PDT 2014


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 at 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 at lists.osgeo.org>:

> Send grass-user mailing list submissions to
>         grass-user at lists.osgeo.org
>
> To 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 at lists.osgeo.org
>
> You can reach the person managing the list at
>         grass-user-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of grass-user digest..."
>
>
> Today's Topics:
>
>    1. Re: removing small lines (Markus Neteler)
>    2. Problems with r.viewshed (Luis Miguel Royo P?rez)
>    3. Re: Problems with r.viewshed (Markus Neteler)
>    4. 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 at osgeo.org>
> To: Levente Juh?sz <jlevente89 at gmail.com>
> Cc: GRASS user list <grass-user at lists.osgeo.org>
> Subject: Re: [GRASS-user] removing small lines
> Message-ID:
>         <CALFmHhsJtJ0-=
> me+C_8o6+Y9CTA1P-cofD3NemuyE30uBmvF5Q at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> On Wed, Sep 24, 2014 at 4:22 PM, Levente Juh?sz <jlevente89 at 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 at gmail.com>
> To: grass-user at lists.osgeo.org
> Subject: [GRASS-user] Problems with r.viewshed
> Message-ID: <5423D3E8.5090206 at 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 at osgeo.org>
> To: Luis Miguel Royo P?rez <luis.miguel.royo at gmail.com>
> Cc: GRASS user list <grass-user at lists.osgeo.org>
> Subject: Re: [GRASS-user] Problems with r.viewshed
> Message-ID:
>         <CALFmHhuPb4w+S03JwMEohU0yQaUas+0f65R=
> sVaXsFFEOaTALg at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> On Thu, Sep 25, 2014 at 10:35 AM, Luis Miguel Royo P?rez
> <luis.miguel.royo at 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 at gmail.com>
> To: Markus Neteler <neteler at osgeo.org>
> Cc: GRASS user list <grass-user at lists.osgeo.org>
> Subject: Re: [GRASS-user] Problems with r.viewshed
> Message-ID: <54240678.7060005 at 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 at 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 at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
> End of grass-user Digest, Vol 101, Issue 39
> *******************************************
>



-- 
Pedro Palheiro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140926/174472ca/attachment.html>


More information about the grass-user mailing list