[GRASS-user] Region definition in Grass 6.1 (and 6.1 cvs)

Maciej Sieczka tutey at o2.pl
Fri Aug 18 05:08:55 EDT 2006


Jarek Jasiewicz napisał(a):

> Here result:
> from  shell command line:
> the same

Please, be explicit as much as possible.

Again, let me ask you to do the following:

1. CLI (terminal):
   g.region -p
   copy and paste the result here

2. GUI (gis.m):
   add raster or vector
   display it
   zoom/pan a bit

3. CLI:
   g.region -p
   copy and paste the result here

If 1 and 3 are identical, it's OK. This will prove that region set from
Grass terminal and region set from gis.m don't mix. It works OK for me.

> from GUI command line (Output GIS.m) and from menu
> before:

> projection: 99 (Stereographic)
> zone:       0
> datum:      towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84
> ellipsoid:  a=6378245 es=0.006693421622965943
> north:      5655007.14
> south:      5634997.14
> west:       3559995.16
> east:       3576005.16
> nsres:      5
> ewres:      5
> rows:       4002
> cols:       3202

> after:
> projection: 99 (Stereographic)
> zone:       0
> datum:      towgs84=33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84
> ellipsoid:  a=6378245 es=0.006693421622965943
> north:      5652671.17084
> south:      5644693.61577
> west:       3562331.12916
> east:       3570000.16
> nsres:      4.99846809
> ewres:      4.99936821
> rows:       1596
> cols:       1534
> as you see: that are different values

Correct. All commands called from gis.m should inherit region set using
other gis.m tools. And all commands called from Grass terminal should
inherit region set using other tools called from terminal.

Only I think it's correct - gis.m own CLI and Grass terminal CLI are 2
different beasts.

> but most important: If you zoom in and make some action (for example
> r.to.vect) it will affect ONLY on zoomed fragment

Correct IMHO (see above).

> try to change resolution from GUI (eg menu or GUI command line)

I tried. Behaves as expected (anything wrong for you?).

Maciek

P.S.

There is 1 bad thing happening here though - I can see that gis.m zoom
tool doesn't preserve resolution:

> before:
> nsres:      5
> ewres:      5

> after:
> nsres:      4.99846809
> ewres:      4.99936821

This shouldn't happen IMHO. I'll let Michael know about it.

Thanks.




More information about the grass-user mailing list