Fri, Jun 23 2006
20:33:21
|
|
Request created by guest
|
|
Subject: g.mapset: MAPSET parameter should default to PERMANENT
Platform: GNU/Linux/x86
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: CVS checked out 2006-06-23
For faster switching between Locations, g.mapset should include a default of
"PERMANENT" for the mapset parameter. Given that every Location must have at
least this mapset, I think PERMANENT would make a reasonable default so this
parameter needn't be completed every time (if the user intends to switch to PERMANENT).
Most of my Grass Locations only have one mapset, so typing this in for every
switch gets tedious.
~ Eric. |
|
Fri, Jun 23 2006
21:25:06
|
|
Mail sent by msieczka
|
|
IMHO this is *not* a good idea. Why should we assume most users will want to
switch most times to PERMANENT and not to any other mapset? I never do, so
having a default target mapset will only be a problem for me, not help.
Besides, switching mapsets should be done in full concious, as you never can
say what mapset you are in just at a glance, and this might lead to undesired
data manipulation when you have layers of the same name in different mapsets
and you switched not to the mapset you meant.
What do you think?
Maciek
|
|
Fri, Jun 23 2006
21:51:59
|
|
Mail sent by epatton@nrcan.gc.ca
|
|
Return-Path |
<epatton@nrcan.gc.ca>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Message-ID |
<0E5A77B55A57D511BB3F0002A537C262064111F0@s5-dar-r1.nrn.nrcan.gc.ca>
|
From |
"Patton, Eric" <epatton@nrcan.gc.ca>
|
To |
'Maciek Sieczka via RT ' <grass-bugs@intevation.de>
|
Cc |
"'grass-dev@grass.itc.it '" <grass-dev@grass.itc.it>
|
Subject |
RE: [bug #4726] (grass) g.mapset: MAPSET parameter should default to PERMANENT
|
Date |
Fri, 23 Jun 2006 16:51:51 -0300
|
MIME-Version |
1.0
|
X-Mailer |
Internet Mail Service (5.5.2657.72)
|
x-originalarrivaltime |
<rt@intevation.de>
|
x-envelope-from |
<rt@intevation.de>
|
x-envelope-to |
<rt@intevation.de>
|
x-warning |
<rt@intevation.de>
|
x-whitelist |
<rt@intevation.de>
|
x-sender |
<rt@intevation.de>
|
x-rt-loop-prevention |
<rt@intevation.de>
|
x-request-id |
<rt@intevation.de>
|
x-managed-by |
<rt@intevation.de>
|
Content-Type |
text/plain; charset="iso-8859-1"
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-3.337 tagged_above=-999 required=4 tests=[AWL=1.663, BAYES_00=-5]
|
X-Spam-Level |
|
Maciek:
>IMHO this is *not* a good idea. Why should we assume most users will want
to
>switch most times to PERMANENT and not to any other mapset? I never do, so
>having a default target mapset will only be a problem for me, not help.
Even so, you're doing no more work this way. You would still have had to
type in a new mapset for the mapset parameter. Ok, you are doing slightly
more work in that you have to delete the default entry an type over it, but
for users who are headed to PERMANENT anyway, there's no more typing to be
done. Where before everyone had to type in the mapset parameter, now at
least some people won't have to.
Maciek:
>Besides, switching mapsets should be done in full concious, as you never
can
>say what mapset you are in just at a glance, and this might lead to
undesired
>data manipulation when you have layers of the same name in different
mapsets
>and you switched not to the mapset you meant.
Hm, true. I always just put an alias for g.gisenv in my .grass.bashrc (like
'ev') so I can check quickly on the CLI where I am. Maybe a good idea for
gis.m map displays would be to include the name of the current mapset in the
tcltk canvas titlebar to aid in mapset identification? Michael, what do you
think?
~ Eric.
|
|
Fri, Jun 23 2006
21:53:49
|
|
Mail sent by epatton@nrcan.gc.ca
|
|
Return-Path |
<epatton@nrcan.gc.ca>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Message-ID |
<0E5A77B55A57D511BB3F0002A537C262064111F1@s5-dar-r1.nrn.nrcan.gc.ca>
|
From |
"Patton, Eric" <epatton@nrcan.gc.ca>
|
To |
'Maciek Sieczka via RT ' <grass-bugs@intevation.de>
|
Subject |
RE: [bug #4726] (grass) g.mapset: MAPSET parameter should default to PERMANENT
|
Date |
Fri, 23 Jun 2006 16:53:36 -0300
|
MIME-Version |
1.0
|
X-Mailer |
Internet Mail Service (5.5.2657.72)
|
x-originalarrivaltime |
<rt@intevation.de>
|
x-envelope-from |
<rt@intevation.de>
|
x-envelope-to |
<rt@intevation.de>
|
x-warning |
<rt@intevation.de>
|
x-whitelist |
<rt@intevation.de>
|
x-sender |
<rt@intevation.de>
|
x-rt-loop-prevention |
<rt@intevation.de>
|
x-request-id |
<rt@intevation.de>
|
x-managed-by |
<rt@intevation.de>
|
Content-Type |
text/plain; charset="iso-8859-1"
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-3.401 tagged_above=-999 required=4 tests=[AWL=1.599, BAYES_00=-5]
|
X-Spam-Level |
|
BTW, Do wishes always come up on the subject lines as bugs? (see subject
line for this email). My intention was to file a wish, not a bug, but the
email looks as though I was complaining about a bug in g.mapset.
~ Eric.
|
|
Fri, Jun 23 2006
22:37:57
|
|
Mail sent by kyngchaos@kyngchaos.com
|
|
Return-Path |
<woklist@kyngchaos.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
In-Reply-To |
<0E5A77B55A57D511BB3F0002A537C262064111F0@s5-dar-r1.nrn.nrcan.gc.ca>
|
References |
<0E5A77B55A57D511BB3F0002A537C262064111F0@s5-dar-r1.nrn.nrcan.gc.ca>
|
Mime-Version |
1.0 (Apple Message framework v750)
|
Content-Type |
text/plain; charset=US-ASCII; delsp=yes; format=flowed
|
Message-Id |
<A7200BA0-6E9B-4DAF-80AA-BB6940B1C752@kyngchaos.com>
|
Cc |
grass-dev@grass.itc.it
|
Reply-To |
William Kyngesburye <kyngchaos@kyngchaos.com>
|
Content-Transfer-Encoding |
7bit
|
From |
William Kyngesburye <woklist@kyngchaos.com>
|
Subject |
Re: [GRASS-dev] RE: [bug #4726] (grass) g.mapset: MAPSET parameter should default to PERMANENT
|
Date |
Fri, 23 Jun 2006 15:37:33 -0500
|
To |
grass-bugs@intevation.de
|
X-Mailer |
Apple Mail (2.750)
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-3.237 tagged_above=-999 required=4 tests=[AWL=1.763, BAYES_00=-5]
|
X-Spam-Level |
|
I agree with Maciek. This is not a good place to assume what the
user wants to do.
And I, and I'm sure many others, never put data into PERMANENT (and
there are probably many others who do, it's the user's preference),
it's not a very descriptive name for a mapset and it's difficult to
type (in my opinion). I wouldn't want to accidentally start
importing data into a mapset I hadn't conciously selected.
If you want it to default to a mapset it would be quite simple to
write a shell script, say g.mapset.default, to do this. It would
then only need to take location and gisdbase params and pass them
on. At least 'default' is easier to type than 'PERMANENT', or you
can pick something shorter.
-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/
"Those people who most want to rule people are, ipso-facto, those
least suited to do it."
- A rule of the universe, from the HitchHiker's Guide to the Galaxy
|
|
Fri, Jun 23 2006
22:44:51
|
|
Mail sent by epatton@nrcan.gc.ca
|
|
Delivered-To |
grass-bugs@lists.intevation.de
|
+0200 (CEST)
|
|
+0200 (CEST)
|
|
+0200 (CEST)
|
|
+0200 (CEST)
|
|
+0200 (CEST)
|
|
[208.97.132.5]) by mail.intevation.de (Postfix) with ESMTP id 939CD37204 for <grass-bugs@intevation.de>; Fri, 23 Jun 2006 22 |
37:50 +0200
|
(CEST)
|
|
[69.129.24.86]) by randymail-a6.dreamhost.com (Postfix) with ESMTP id
|
|
DEA391756E5; Fri, 23 Jun 2006 13 |
37:43 -0700 (PDT)
|
In-Reply-To |
|
<0E5A77B55A57D511BB3F0002A537C262064111F0@s5-dar-r1.nrn.nrcan.gc.ca>
|
|
References |
|
<0E5A77B55A57D511BB3F0002A537C262064111F0@s5-dar-r1.nrn.nrcan.gc.ca>
|
|
Mime-Version |
1.0 (Apple Message framework v750)
|
Content-Type |
text/plain; charset=US-ASCII; delsp=yes; format=flowed
|
Message-Id |
<A7200BA0-6E9B-4DAF-80AA-BB6940B1C752@kyngchaos.com>
|
Cc |
grass-dev@grass.itc.it
|
Reply-To |
William Kyngesburye <kyngchaos@kyngchaos.com>
|
Content-Transfer-Encoding |
7bit
|
From |
William Kyngesburye <woklist@kyngchaos.com>
|
Subject |
Re: [GRASS-dev] RE: [bug #4726] (grass) g.mapset: MAPSET
|
parameter should default to PERMANENT
|
|
Date |
Fri, 23 Jun 2006 15:37:33 -0500
|
To |
grass-bugs@intevation.de
|
X-Mailer |
Apple Mail (2.750)
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-3.237 tagged_above=-999 required=4
|
tests=[AWL=1.763, BAYES_00=-5]
|
|
X-Spam-Level |
-------------------------------------------- Managed by Request Tracker --- Headers Follow --- >From epatton@nrcan.gc.ca Fri Jun 23 22:44:51 2006
|
Return-Path |
<epatton@nrcan.gc.ca>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Message-ID |
<0E5A77B55A57D511BB3F0002A537C262064111F2@s5-dar-r1.nrn.nrcan.gc.ca>
|
From |
"Patton, Eric" <epatton@nrcan.gc.ca>
|
To |
'William Kyngesburye via RT ' <grass-bugs@intevation.de>
|
Cc |
"'werchowyna@epf.pl'" <werchowyna@epf.pl>
|
Subject |
RE: [Spam/Pourriel] [bug #4726] (grass) g.mapset: MAPSET paramete r should default to PERMANENT
|
Date |
Fri, 23 Jun 2006 17:44:42 -0300
|
MIME-Version |
1.0
|
X-Mailer |
Internet Mail Service (5.5.2657.72)
|
x-originalarrivaltime |
<rt@intevation.de>
|
x-mailfoundry |
<rt@intevation.de>
|
x-warning |
<rt@intevation.de>
|
x-whitelist |
<rt@intevation.de>
|
x-envelope-from |
<rt@intevation.de>
|
x-envelope-to |
<rt@intevation.de>
|
x-sender |
<rt@intevation.de>
|
x-request-id |
<rt@intevation.de>
|
x-rt-loop-prevention |
<rt@intevation.de>
|
x-managed-by |
<rt@intevation.de>
|
Content-Type |
text/plain; charset="iso-8859-1"
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-3.421 tagged_above=-999 required=4 tests=[AWL=1.579, BAYES_00=-5]
|
X-Spam-Level |
|
Good enough; everyone has made valid points. I'll just write a wrapper
script to customize g.mapset.
~ Eric.
-----Original Message-----
From: William Kyngesburye via RT
To: Patton, Eric
Sent: 6/23/2006 4:37 PM
Subject: [Spam/Pourriel] [bug #4726] (grass) g.mapset: MAPSET parameter
should default to PERMANENT
I agree with Maciek. This is not a good place to assume what the
user wants to do.
And I, and I'm sure many others, never put data into PERMANENT (and
there are probably many others who do, it's the user's preference),
it's not a very descriptive name for a mapset and it's difficult to
type (in my opinion). I wouldn't want to accidentally start
importing data into a mapset I hadn't conciously selected.
If you want it to default to a mapset it would be quite simple to
write a shell script, say g.mapset.default, to do this. It would
then only need to take location and gisdbase params and pass them
on. At least 'default' is easier to type than 'PERMANENT', or you
can pick something shorter.
-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/
"Those people who most want to rule people are, ipso-facto, those
least suited to do it."
- A rule of the universe, from the HitchHiker's Guide to the Galaxy
|
|
Fri, Jun 23 2006
22:49:09
|
|
Status changed to resolved by msieczka
|
|
Fri, Jun 23 2006
22:49:09
|
|
Mail sent by msieczka
|
|
Eric wrote:
> Good enough; everyone has made valid points. I'll just write a wrapper
> script to customize g.mapset.
Nice we have this sorted out. Closing it.
Thanks,
Maciek
|
|
Mon, Jun 26 2006
06:39:26
|
|
Mail sent by hamish_nospam@yahoo.com
|
|
Return-Path |
<hamish_nospam@yahoo.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Mon, 26 Jun 2006 16:39:17 +1200
|
From |
Hamish <hamish_nospam@yahoo.com>
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass-dev@grass.itc.it
|
Subject |
Re: [GRASS-dev] [bug #4726] (grass) g.mapset: MAPSET parameter should default to PERMANENT
|
Message-Id |
<20060626163917.6ce43c2d.hamish_nospam@yahoo.com>
|
In-Reply-To |
<20060623183321.31434101F12@lists.intevation.de>
|
References |
<20060623183321.31434101F12@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-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-1.243 tagged_above=-999 required=4 tests=[AWL=1.662, BAYES_00=-5, FORGED_YAHOO_RCVD=2.095]
|
X-Spam-Level |
|
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4726
> ---------------------------------------------------------------------
>
> Subject: g.mapset: MAPSET parameter should default to PERMANENT
..
> For faster switching between Locations, g.mapset should include a
> default of "PERMANENT" for the mapset parameter. Given that every
> Location must have at least this mapset, I think PERMANENT would make
> a reasonable default so this parameter needn't be completed every time
> (if the user intends to switch to PERMANENT). Most of my Grass
> Locations only have one mapset, so typing this in for every switch
> gets tedious.
I don't think it should have a default value -- all calls to this module
should be explicit. Valuable maps are kept in PERMANENT and it could be
dangerous to dump users in there by default. Similar argument to not
running user code as root. If you use the same mapset names in different
locations then this isn't a problem? (e.g. MAPSET=$USER)
While "no known bugs", I don't think using this module to switch
locations (or gisdbase) should be encouraged for everyday use. It's
better to restart GRASS. i.e. Init.sh checks, cleanup, command history,
etc, should all be used if possible -- reserve g.mapset for changing
mapsets and for scripting.
Hamish
|
|
Mon, Jun 26 2006
06:39:26
|
|
Status changed to open by _rt_system
|
|
Mon, Jun 26 2006
06:42:02
|
|
Status changed to resolved by hbowman
|
|
Mon, Jun 26 2006
13:54:23
|
|
Mail sent by epatton@nrcan.gc.ca
|
|
Return-Path |
<epatton@nrcan.gc.ca>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Message-ID |
<0E5A77B55A57D511BB3F0002A537C262064111F3@s5-dar-r1.nrn.nrcan.gc.ca>
|
From |
"Patton, Eric" <epatton@nrcan.gc.ca>
|
To |
'Hamish via RT ' <grass-bugs@intevation.de>
|
Subject |
RE: [bug #4726] (grass) g.mapset: MAPSET parameter
|
Date |
Mon, 26 Jun 2006 08:54:07 -0300
|
MIME-Version |
1.0
|
X-Mailer |
Internet Mail Service (5.5.2657.72)
|
x-originalarrivaltime |
<rt@intevation.de>
|
x-envelope-from |
<rt@intevation.de>
|
x-envelope-to |
<rt@intevation.de>
|
x-warning |
<rt@intevation.de>
|
x-whitelist |
<rt@intevation.de>
|
x-sender |
<rt@intevation.de>
|
x-rt-loop-prevention |
<rt@intevation.de>
|
x-request-id |
<rt@intevation.de>
|
x-managed-by |
<rt@intevation.de>
|
Content-Type |
text/plain; charset="iso-8859-1"
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-3.441 tagged_above=-999 required=4 tests=[AWL=1.559, BAYES_00=-5]
|
X-Spam-Level |
|
>I don't think it should have a default value -- all calls to this module
>should be explicit. Valuable maps are kept in PERMANENT and it could be
>dangerous to dump users in there by default. Similar argument to not
>running user code as root. If you use the same mapset names in different
>locations then this isn't a problem? (e.g. MAPSET=$USER)
Indeed. Maciek and Paul convinced me of the same.
>While "no known bugs", I don't think using this module to switch
>locations (or gisdbase) should be encouraged for everyday use. It's
>better to restart GRASS. i.e. Init.sh checks, cleanup, command history,
>etc, should all be used if possible -- reserve g.mapset for changing
>mapsets and for scripting.
Thanks. This is good to know.
~ Eric.
|
|
Mon, Jun 26 2006
13:54:23
|
|
Status changed to open by _rt_system
|
|
Mon, Jun 26 2006
21:25:22
|
|
Status changed to resolved by msieczka
|
|