Details Ticket 1369


Comment | Reply | Take | Resolve


Serial Number 1369
Subject r.los man page doesn't give a hint how to make the 'pattern map'
Area wish
Queue grass
Requestors jidanni@dman.ddts.net
Owner none
Status open
Last User Contact Thu Nov 14 12:29:20 2002 (6 yr ago)
Current Priority 20
Final Priority 70
Due No date assigned
Last Action Wed Sep 27 01:19:55 2006 (2 yr ago)
Created Tue Oct 22 23:48:39 2002 (6 yr ago)

Transaction History Ticket 1369


Tue, Oct 22 2002 23:48:39    Request created by guest  
Subject: r.los man page doesn't give a hint how to make the 'pattern map'

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0pre1

r.los man page doesn't give a hint how to make the 'pattern map' it talks about,
for us non experts.  Please add a hint.  E.g. first use g.region to make a new
region,
then [how to?] fill it with 1's.  Mention r.mapcalc file=1
Wed, Oct 23 2002 10:59:46    Mail sent by paul-grass@stjohnspoint.co.uk  
Return-Path <paul-grass@stjohnspoint.co.uk>
Delivered-To grass-bugs@lists.intevation.de
Date Wed, 23 Oct 2002 09:59:38 +0100 (BST)
From Paul Kelly <paul-grass@stjohnspoint.co.uk>
X-X-Sender paulk@agrippa.ukshells.co.uk
To Request Tracker <grass-bugs@intevation.de>
Cc "grass5@grass.itc.it" <grass5@grass.itc.it>
Subject Re: [GRASS5] [bug #1369] (grass) r.los man page doesn't give a hint how to make the 'pattern map'
In-Reply-To <20021022214839.680B31394F@lists.intevation.de>
Message-ID <Pine.LNX.4.44.0210230947540.32384-100000@agrippa.ukshells.co.uk>
MIME-Version 1.0
Content-Type TEXT/PLAIN; charset=US-ASCII
X-Spam-Status No, hits=-8.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, SPAM_PHRASE_00_01,USER_AGENT_PINE version=2.41
X-Spam-Level

On Tue, 22 Oct 2002, Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=1369
> -------------------------------------------------------------------------
>
> Subject: r.los man page doesn't give a hint how to make the 'pattern map'
>
> Platform: GNU/Linux/i386
> grass obtained from: Mirror of Trento site
> grass binary for platform: Compiled from Sources
> GRASS Version: 5.0pre1
>
> r.los man page doesn't give a hint how to make the 'pattern map' it talks about,
> for us non experts.  Please add a hint.  E.g. first use g.region to make a
new region,
> then [how to?] fill it with 1's.  Mention r.mapcalc file=1
>
> -------------------------------------------- Managed by Request Tracker

Try using r.cva (cumulative viewshed analysis) instead of r.los
I just found it at
http://www.ucl.ac.uk/~tcrnmar/GIS/r.cva.html
There is a lot of information and there have been research papers
published about it as well.
It is based on r.los and has so much more functionality and works better.
The instructions that come with it for compiling it are very good; you
just need to change one line in the cmd/Gmakefile from
LIBES = $(GISLIB) $(SEGMENTLIB) $(DATETIMELIB)
to
LIBES = $(DEPGISLIB) $(DEPSEGMENTLIB) $(DEPDATETIMELIB)
and delete or comment the line
char *G_malloc();
from cmd/make_point3.c
I haven't tested it much but using a sites file for the viewpoint didn't
seem to work; I needed to use a raster map with the viewpoint cell having
a value of 1 and all other cells 0. This gave excellent results: a binary
map containing 1 in all the cells visible from the viewpoint and 0
elsewhere. But there are many other possibilities to the program's usage.
The program doesn't use the GRASS5 concept of nulls so you may need to use
r.null to set null values to 0.
Also it doesn't support floating point elevation maps but you can just
e.g. multiply your elevation map by 100 to convert it to centimetres if it
is in metres.

It seems really useful and would only take a bit of work to update it
properly to GRASS5.0 (although it's perfectly usable as it is, with some
care), but maybe there's a reason why it isn't included in the current
GRASS distribution?




>
> _______________________________________________
> grass5 mailing list
> grass5@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
>


Thu, Oct 24 2002 05:53:18    Mail sent by guest  
hello
  i have got a dgn   file  and  want  to  display it using  GRASS.i tried  
it  using  the  module  v.in.dgn  .but  it says  some  elements are not  supported.
can  u help me out  to display the  file.
guide  me asap.
waiting  for  ur reply.
regards
sangeeta
Sat, Oct 26 2002 01:30:47    Mail sent by jidanni@dman.ddts.net  
Return-Path <jidanni@dman.ddts.net>
Delivered-To grass-bugs@lists.intevation.de
To guest user via RT <grass-bugs@intevation.de>
Subject Re: [bug #1369] (grass) Transaction (guest)
References <20021024035319.10B1F13AB4@lists.intevation.de>
In-Reply-To <20021024035319.10B1F13AB4@lists.intevation.de>
From Dan Jacobson <jidanni@dman.ddts.net>
Date 26 Oct 2002 06:03:09 +0800
Message-ID <87k7k689cy.fsf@jidanni.org>
Lines 1
User-Agent Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Spam-Status No, hits=-1.9 required=5.0 tests=IN_REP_TO,RCVD_IN_MULTIHOP_DSBL,RCVD_IN_RFCI, RCVD_IN_UNCONFIRMED_DSBL,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT version=2.41
X-Spam-Level
I'm sorry.  I'm such a beginner i dont even know what a dgn file is yet.


Sat, Oct 26 2002 11:17:48    Mail sent by jidanni@dman.ddts.net  
Return-Path <jidanni@dman.ddts.net>
Delivered-To grass-bugs@lists.intevation.de
To Paul Kelly via RT <grass-bugs@intevation.de>
Subject Re: [bug #1369] (grass) r.los man page doesn't give a hint
References <20021023085946.7DCB013ABE@lists.intevation.de>
In-Reply-To <20021023085946.7DCB013ABE@lists.intevation.de>
From Dan Jacobson <jidanni@dman.ddts.net>
User-Agent Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Date 26 Oct 2002 17:14:36 +0800
Message-ID <8765vpa7er.fsf@jidanni.org>
Lines 32
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Spam-Status No, hits=-2.7 required=5.0 tests=IN_REP_TO,RCVD_IN_RFCI,RCVD_IN_UNCONFIRMED_DSBL,REFERENCES, SPAM_PHRASE_00_01,USER_AGENT version=2.41
X-Spam-Level
>>>>> "M" == Paul Kelly via RT <grass-bugs@intevation.de> writes:

M> Try using r.cva (cumulative viewshed analysis) instead of r.los
M> I just found it at
M> http://www.ucl.ac.uk/~tcrnmar/GIS/r.cva.html
M> There is a lot of information and there have been research papers
M> published about it as well.
M> It is based on r.los and has so much more functionality and works better.
M> The instructions that come with it for compiling it are very good; you
M> just need to change one line in the cmd/Gmakefile from
M> LIBES = $(GISLIB) $(SEGMENTLIB) $(DATETIMELIB)
M> to
M> LIBES = $(DEPGISLIB) $(DEPSEGMENTLIB) $(DEPDATETIMELIB)
M> and delete or comment the line
M> char *G_malloc();
M> from cmd/make_point3.c

well, apparently
$ locate gmake
gives me nothing even though I built grass from source last year.
And even if I get the debian version of grass, I don't suppose I could
build it.
So I might as well download and build grass 5.1 snapshot, so I can
compile r.cva.  Or how else could I ever build it?  Or if you sent my
your binary copy would it execute here?  My system is
http://jidanni.org/comp/system.txt

M> It seems really useful and would only take a bit of work to update it
M> properly to GRASS5.0 (although it's perfectly usable as it is, with some
M> care), but maybe there's a reason why it isn't included in the current
M> GRASS distribution?


Sat, Oct 26 2002 16:23:18    Mail sent by guest  
The command to compile is 'gmake5'. See INSTALL file in the source code.
Thu, Nov 14 2002 12:29:20    Mail sent by guest  
> r.los man page doesn't give a hint how to make the 'pattern map' it talks
> about, for us non experts.  Please add a hint.  E.g. first use g.region
> to make a new region, then [how to?] fill it with 1's.  Mention r.mapcalc
> file=1

I think when it talks about the pattern map being for "areas of interest,"
this is just a proto-NULL mask. (??)

If it is, just use r.mask to create a mask, and ignore the pattern map.

alternatively:
r.mapcalc MASK="if(where_you_want, 1, null() )"

or to make the pattern map:
r.mapcalc pat_map="if(where_you_want, 1, 0 )"


but I haven't looked at the code, so I could be wrong.

H.
<ihatejunkyabastards at yahoo dot com>
Tue, Sep 26 2006 18:29:55    Comments added by guest  
Good Luck! http://xoomer.alice.it/pik0/poker-rooms/
Tue, Sep 26 2006 22:35:12    Comments added by guest  
Cool design http://xoomer.alice.it/pik0/razz-poker/
Wed, Sep 27 2006 01:19:55    Comments added by guest  
Great work on website. <a href="http://xoomer.alice.it/pik0/rules-of-poker/">rules
of poker</a> [url=http://xoomer.alice.it/pik0/rules-of-poker/]rules of poker[/url]
http://xoomer.alice.it/pik0/rules-of-poker/
Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request