[GRASS-user] Problems with r.viewshed

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

You can reach the person managing the list at
grass-user-owner@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@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-8

On 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-8

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


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-user

End of grass-user Digest, Vol 101, Issue 39


Pedro Palheiro

Thank you very much. That was the problem.

Sorry for any inconvenience.

Kind regards.

···

El 26/09/14 a las #4, Pedro Palheiro escribió:

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

You can reach the person managing the list at
grass-user-owner@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@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-8

On 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-8

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


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-user

End of grass-user Digest, Vol 101, Issue 39


Pedro Palheiro

On Sep 26, 2014 12:37 PM, “Luis Miguel Royo Pérez” <luis.miguel.royo@gmail.com> wrote:

Thank you very much. That was the problem.

Please suggest how to improve the module help text or manual.

Thanks
Markus

Sorry for any inconvenience.

Kind regards.

El 26/09/14 a las #4, Pedro Palheiro escribió:

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

You can reach the person managing the list at
grass-user-owner@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@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-8

On 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-8

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


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-user

End of grass-user Digest, Vol 101, Issue 39



Pedro Palheiro


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hello Markus,

Is there a place/link to include the suggestions to improve the module help or manual?
Or should we send them to you directly?

Thank you,
Regards,
Pedro

···

2014-09-26 12:07 GMT+01:00 Markus Neteler <neteler@osgeo.org>:

On Sep 26, 2014 12:37 PM, “Luis Miguel Royo Pérez” <luis.miguel.royo@gmail.com> wrote:

Thank you very much. That was the problem.

Please suggest how to improve the module help text or manual.

Thanks
Markus

Sorry for any inconvenience.

Kind regards.

El 26/09/14 a las #4, Pedro Palheiro escribió:

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

You can reach the person managing the list at
grass-user-owner@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@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-8

On 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-8

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


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-user

End of grass-user Digest, Vol 101, Issue 39



Pedro Palheiro


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Pedro Palheiro

Hello Pedro,

On Fri, Sep 26, 2014 at 2:16 PM, Pedro Palheiro
<pedro.palheiro@gmail.com> wrote:

Hello Markus,

Is there a place/link to include the suggestions to improve the module help
or manual?

That would be http://trac.osgeo.org/grass

Or should we send them to you directly?

that's also fine.

best
Markus

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