Details Ticket 4065


Comment | Reply | Take | Open


Serial Number 4065
Subject gis.m: displaying a map automatically switches resolution back to default
Area grass6
Queue grass
Requestors mlennert@club.worldonline.be
Owner none
Status resolved
Last User Contact Tue Feb 7 19:20:27 2006 (3 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Mar 8 05:49:55 2006 (2 yr ago)
Created Tue Feb 7 12:24:57 2006 (3 yr ago)

Transaction History Ticket 4065


Tue, Feb 7 2006 12:24:57    Request created by guest  
Subject: gis.m: displaying a map automatically switches resolution back to default
Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: cvs_head_20060207

Using gis.m I get the following:

GRASS 6.1.cvs (ESPON):~ > g.region -p
projection: 99 (Lambert Azimuthal Equal Area)
zone:       0
datum:      etrs89
ellipsoid:  grs80
north:      2396151
south:      -1864119
west:       -3717942
east:       2583415
nsres:      1
ewres:      1
rows:       4260270
cols:       6301357

GRASS 6.1.cvs (ESPON):~ > g.region nsres=10000 ewres=10000
GRASS 6.1.cvs (ESPON):~ > g.region -p
projection: 99 (Lambert Azimuthal Equal Area)
zone:       0
datum:      etrs89
ellipsoid:  grs80
north:      2396151
south:      -1864119
west:       -3717942
east:       2583415
nsres:      10000.63380282
ewres:      10002.15396825
rows:       426
cols:       630

Now click on "Display active layers in current region" button:

GRASS 6.1.cvs (ESPON):~ > PNG: GRASS_TRUECOLOR status: TRUE
PNG: collecting to file: dispmon_1.ppm,
     GRASS_WIDTH=865, GRASS_HEIGHT=585
Graphics driver [gism] started
Monitor 'gism' terminated

and resolution has automatically (and before map is drawn) been set back to default:
GRASS 6.1.cvs (ESPON):~ > g.region -p
projection: 99 (Lambert Azimuthal Equal Area)
zone:       0
datum:      etrs89
ellipsoid:  grs80
north:      2396151
south:      -1864119
west:       -3717942
east:       2583415
nsres:      1
ewres:      1
rows:       4260270
cols:       6301357

(I know the default resolution setting here is not very sensible, but that is
not the point ;-) )

Moritz
Tue, Feb 7 2006 19:20:27    Mail sent by michael.barton@asu.edu  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
Date Tue, 07 Feb 2006 11:19:00 -0700
From Michael Barton <michael.barton@asu.edu>
Subject Re: [GRASS5] [bug #4065] (grass) gis.m: displaying a map automatically switches resolution back to default
In-reply-to <20060207112457.7AB1C1005B7@lists.intevation.de>
To Paolo Cavallini via RT <grass-bugs@intevation.de>, grass5@grass.itc.it
Message-id <C00E32A4.1DFDD%michael.barton@asu.edu>
MIME-version 1.0
Content-type text/plain; charset=US-ASCII
Content-transfer-encoding 7bit
User-Agent Microsoft-Entourage/11.2.1.051004
Thread-Topic [GRASS5] [bug #4065] (grass) gis.m: displaying a map automatically switches resolution back to default
Thread-Index AcYsEvd/Nc/POJgGEdqhuAAUUSYxwg==
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
I just realized that this would happen last night. This is due to each map
display having its own, independent region settings. I have a fix planned (a
button to display map in current region).

Until I get a chance to create this, there is a simple work around.

In g.region, save the region to a name. Then use the 'zoom to named region'
button.

You can also save it to "mon_#" where # is the number of the map display
(top of window), and press the display button.

Michael
______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


> From: Request Tracker <grass-bugs@intevation.de>
> Reply-To: Request Tracker <grass-bugs@intevation.de>
> Date: Tue,  7 Feb 2006 12:24:57 +0100 (CET)
> To: <grass5@grass.itc.it>
> Subject: [GRASS5] [bug #4065] (grass) gis.m: displaying a map automatically
> switches resolution back to default
> 
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4065
> -------------------------------------------------------------------------
> 
> Subject: gis.m: displaying a map automatically switches resolution back to
> default
> 
> Platform: GNU/Linux/x86
> grass obtained from: CVS
> grass binary for platform: Compiled from Sources
> GRASS Version: cvs_head_20060207
> 
> Using gis.m I get the following:
> 
> GRASS 6.1.cvs (ESPON):~ > g.region -p
> projection: 99 (Lambert Azimuthal Equal Area)
> zone:       0
> datum:      etrs89
> ellipsoid:  grs80
> north:      2396151
> south:      -1864119
> west:       -3717942
> east:       2583415
> nsres:      1
> ewres:      1
> rows:       4260270
> cols:       6301357
> 
> GRASS 6.1.cvs (ESPON):~ > g.region nsres=10000 ewres=10000
> GRASS 6.1.cvs (ESPON):~ > g.region -p
> projection: 99 (Lambert Azimuthal Equal Area)
> zone:       0
> datum:      etrs89
> ellipsoid:  grs80
> north:      2396151
> south:      -1864119
> west:       -3717942
> east:       2583415
> nsres:      10000.63380282
> ewres:      10002.15396825
> rows:       426
> cols:       630
> 
> Now click on "Display active layers in current region" button:
> 
> GRASS 6.1.cvs (ESPON):~ > PNG: GRASS_TRUECOLOR status: TRUE
> PNG: collecting to file: dispmon_1.ppm,
>      GRASS_WIDTH=865, GRASS_HEIGHT=585
> Graphics driver [gism] started
> Monitor 'gism' terminated
> 
> and resolution has automatically (and before map is drawn) been set back to
> default:
> 
> GRASS 6.1.cvs (ESPON):~ > g.region -p
> projection: 99 (Lambert Azimuthal Equal Area)
> zone:       0
> datum:      etrs89
> ellipsoid:  grs80
> north:      2396151
> south:      -1864119
> west:       -3717942
> east:       2583415
> nsres:      1
> ewres:      1
> rows:       4260270
> cols:       6301357
> 
> (I know the default resolution setting here is not very sensible, but that
is
> not the point ;-) )
> 
> Moritz
> 
> -------------------------------------------- Managed by Request Tracker
> 


Wed, Mar 8 2006 05:49:55    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