Details Ticket 4428


Comment | Reply | Take | Open


Serial Number 4428
Subject gis.m/r.what incompatible: quering rasters outside current region doesn't work
Area grass6
Queue grass
Requestors werchowyna@epf.pl
Owner none
Status resolved
Last User Contact Tue May 9 10:57:06 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Thu Jul 20 23:35:27 2006 (2 yr ago)
Created Mon May 8 12:23:02 2006 (2 yr ago)

Transaction History Ticket 4428


Mon, May 8 2006 12:23:02    Request created by guest  
Subject: gis.m/r.what incompatible: quering rasters outside current region doesn't
work

Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 2006-05-08

Quering rasters in gis.m doesn't work properly because r.what depends on current
region settings, which gis.m ignores. False nulls are returned as an efect.
Can r.what be fixed to query raster outside the current region?

Maciek
Mon, May 8 2006 13:17:07    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 8 May 2006 23:17:03 +1200
From Hamish <hamish_nospam@yahoo.com>
To Request Tracker <grass-bugs@intevation.de>
Subject Re: [GRASS-dev] [bug #4428] (grass) gis.m/r.what incompatible: quering rasters outside current region doesn't work
Message-Id <20060508231703.74e63f3a.hamish_nospam@yahoo.com>
In-Reply-To <20060508102302.228A2101EF1@lists.intevation.de>
References <20060508102302.228A2101EF1@lists.intevation.de>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> Can r.what be fixed to query raster outside the current region?

better: can gis.m be fixed? this won't just affect r.what.



Hamish


Tue, May 9 2006 00:01:42    Mail sent by glynn@gclements.plus.com  
Return-Path <glynn@gclements.plus.com>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn@gclements.plus.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <17503.49079.108820.326843@cerise.gclements.plus.com>
Date Mon, 8 May 2006 23:01:27 +0100
To Request Tracker <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #4428] (grass) gis.m/r.what incompatible: quering rasters outside current region doesn't work
In-Reply-To <20060508102302.228A2101EF1@lists.intevation.de>
References <20060508102302.228A2101EF1@lists.intevation.de>
X-Mailer VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=4428
> -------------------------------------------------------------------------
> 
> Subject: gis.m/r.what incompatible: quering rasters outside current region
doesn't work
> 
> Platform: GNU/Linux/x86
> grass obtained from: CVS
> grass binary for platform: Compiled from Sources
> GRASS Version: 2006-05-08
> 
> Quering rasters in gis.m doesn't work properly because r.what depends on current
region settings, which gis.m ignores. False nulls are returned as an efect.
> 
> Can r.what be fixed to query raster outside the current region?

Wrong solution. gis.m needs to set WIND_OVERRIDE correctly before
calling r.what.

-- 
Glynn Clements <glynn@gclements.plus.com>


Tue, May 9 2006 07:14:56    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Tue, 9 May 2006 17:14:36 +1200
From Hamish <hamish_nospam@yahoo.com>
To Glynn Clements <glynn@gclements.plus.com>
Cc grass-bugs@intevation.de, grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #4428] (grass) gis.m/r.what incompatible: quering rasters outside current region doesn't work
Message-Id <20060509171436.41a35bfa.hamish_nospam@yahoo.com>
In-Reply-To <17503.49079.108820.326843@cerise.gclements.plus.com>
References <20060508102302.228A2101EF1@lists.intevation.de> <17503.49079.108820.326843@cerise.gclements.plus.com>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=4428
> > -------------------------------------------------------------------
> > 
> > Subject: gis.m/r.what incompatible: quering rasters outside current
> > region doesn't work
..
> > GRASS Version: 2006-05-08
> > 
> > Quering rasters in gis.m doesn't work properly because r.what
> > depends on current region settings, which gis.m ignores. False nulls
> > are returned as an efect.
> > 
> > Can r.what be fixed to query raster outside the current region?
> 
> Wrong solution. gis.m needs to set WIND_OVERRIDE correctly before
> calling r.what.


WIND_OVERRIDE and GRASS_REGION are not documented in the enviroment
variables help page,
 http://grass.ibiblio.org/grass61/manuals/html61_user/variables.html


Can someone describe how to use them?


thanks,
Hamish


Tue, May 9 2006 10:57:06    Mail sent by glynn@gclements.plus.com  
Return-Path <glynn@gclements.plus.com>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn@gclements.plus.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <17504.22872.556283.895660@cerise.gclements.plus.com>
Date Tue, 9 May 2006 09:56:56 +0100
To Hamish <hamish_nospam@yahoo.com>
Cc grass-bugs@intevation.de, grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #4428] (grass) gis.m/r.what incompatible: quering rasters outside current region doesn't work
In-Reply-To <20060509171436.41a35bfa.hamish_nospam@yahoo.com>
References <20060508102302.228A2101EF1@lists.intevation.de> <17503.49079.108820.326843@cerise.gclements.plus.com> <20060509171436.41a35bfa.hamish_nospam@yahoo.com>
X-Mailer VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Hamish wrote:

> > > this bug's URL: http://intevation.de/rt/webrt?serial_num=4428
> > > -------------------------------------------------------------------
> > > 
> > > Subject: gis.m/r.what incompatible: quering rasters outside current
> > > region doesn't work
> ..
> > > GRASS Version: 2006-05-08
> > > 
> > > Quering rasters in gis.m doesn't work properly because r.what
> > > depends on current region settings, which gis.m ignores. False nulls
> > > are returned as an efect.
> > > 
> > > Can r.what be fixed to query raster outside the current region?
> > 
> > Wrong solution. gis.m needs to set WIND_OVERRIDE correctly before
> > calling r.what.
> 
> 
> WIND_OVERRIDE and GRASS_REGION are not documented in the enviroment
> variables help page,
>  http://grass.ibiblio.org/grass61/manuals/html61_user/variables.html
> 
> 
> Can someone describe how to use them?

First and foremost, the user should not set WIND_OVERRIDE in a GRASS
session. It's meant to be set locally for specific commands. It's
debatable whether it belongs in the users' manual.

As for what it does:

	int G_get_window (struct Cell_head *window )
	{
	
	...
	
		wind = getenv("WIND_OVERRIDE");
		if (wind)
		    err = G__get_window (&dbwindow,"windows",wind,G_mapset());
		else
		    err = G__get_window (&dbwindow,"","WIND",G_mapset());

It causes programs to use the specified named region (created with
e.g. "g.region save=...") to be used as the current region, instead of
the region from the WIND file.

This allows programs such as gis.m to run external commands on an
alternate region without having to modify the WIND file then change it
back afterwards.

-- 
Glynn Clements <glynn@gclements.plus.com>


Thu, Jul 20 2006 23:35:27    Status changed to resolved by mbarton  
Comment | Reply | Take | Open

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