there was an effort to replace g.list by g.mlist and the same for g.remove/g.mremove?
What is the status now and how would the API change?
We can also have one as a script with different defaults if this would help to keep compatibility (then we would be able to make the changes any time later).
If there is some ticket for it, please update the ticket and make it a blocker for 7.0.0.
there was an effort to replace g.list by g.mlist and the same for g.remove/g.mremove?
What is the status now and how would the API change?
We can also have one as a script with different defaults if this would help to keep compatibility (then we would be able to make the changes any time later).
If there is some ticket for it, please update the ticket and make it a blocker for 7.0.0.
There are two major changes:
…
2. g.mremove consolidated multiple options into the type= option.
I tested this just today and I am not convinced at all of this choice.
It looks dangerous to me.
I would prefer to see type as single option and pattern as multi option to remain as close as possible to what it used to be, allowing for e.g.
g.remove vect pattern=map1,map2
It rarely happens that you have maps with identical name but different type which you want to remove at the same time but rather that you have different map names of the same type you want to remove…
At the same time pattern allows to select something more complicated. But likely I don’t want to invent a regex for deleting three maps out of many.
there was an effort to replace g.list by g.mlist and the same for g.remove/g.mremove?
What is the status now and how would the API change?
We can also have one as a script with different defaults if this would help to keep compatibility (then we would be able to make the changes any time later).
If there is some ticket for it, please update the ticket and make it a blocker for 7.0.0.
Currently, g.remove supports “g.remove vect pattern=map1,map2”. Pattern can take multiple map names separated by a comma. You don’t have to invent a wildcard or regex pattern for deleting a couple maps. g.mremove wouldn’t have replaced g.remove without this feature.
Regarding the type option, in some case, we may want to remove temporary raster and vector maps at once for example:
g.remove rast,vect pattern=“tmp*”
I don’t think this usage is particularly dangerous because the user must specify data types explicitly and it’s actually less dangerous than the old g.remove, IMO. g.remove also has the -f flag.
Regards,
Huidae
···
On Thu, Sep 25, 2014 at 12:01 PM, Markus Neteler <neteler@osgeo.org> wrote:
There are two major changes:
…
2. g.mremove consolidated multiple options into the type= option.
I tested this just today and I am not convinced at all of this choice.
It looks dangerous to me.
I would prefer to see type as single option and pattern as multi option to remain as close as possible to what it used to be, allowing for e.g.
g.remove vect pattern=map1,map2
It rarely happens that you have maps with identical name but different type which you want to remove at the same time but rather that you have different map names of the same type you want to remove…
At the same time pattern allows to select something more complicated. But likely I don’t want to invent a regex for deleting three maps out of many.
there was an effort to replace g.list by g.mlist and the same for g.remove/g.mremove?
What is the status now and how would the API change?
We can also have one as a script with different defaults if this would help to keep compatibility (then we would be able to make the changes any time later).
If there is some ticket for it, please update the ticket and make it a blocker for 7.0.0.
(This test ends with error, PyGRASS is used internally.)
I don't know what to do about it besides stating that it how it is or
relaxing the type checks in PyGRASS. Adding some info to the option like
"behaves as multiple=YES" seem too complicated.
On Thu, Sep 25, 2014 at 6:20 PM, Huidae Cho <grass4u@gmail.com> wrote:
> Markus,
>
> Currently, g.remove supports "g.remove vect pattern=map1,map2". Pattern
can
> take multiple map names separated by a comma.
ok, good. Perhaps I got just confused because the help text does not
show this yet:
(This test ends with error, PyGRASS is used internally.)
I don’t know what to do about it besides stating that it how it is or relaxing the type checks in PyGRASS. Adding some info to the option like “behaves as multiple=YES” seem too complicated.
Vaclav
Regards,
Huidae
On Sep 26, 2014 5:48 AM, “Markus Neteler” <neteler@osgeo.org> wrote:
Hi Huidae,
On Thu, Sep 25, 2014 at 6:20 PM, Huidae Cho <grass4u@gmail.com> wrote:
Markus,
Currently, g.remove supports “g.remove vect pattern=map1,map2”. Pattern can
take multiple map names separated by a comma.
ok, good. Perhaps I got just confused because the help text does not
show this yet:
I lost a bit of track here - what is the current state? My real
question regards the needed backport to relbranch7 in order to be able
to prepare the next beta (the first RC should come with the definite
API).
These modules work fine in command line, but GUI has some issues (ticket #2437). I’ll backport to rel7 once GUI gets fixed.
Thank you.
Huidae
···
On Wed, Oct 8, 2014 at 12:03 PM, Markus Neteler <neteler@osgeo.org> wrote:
Hi all,
I lost a bit of track here - what is the current state? My real
question regards the needed backport to relbranch7 in order to be able
to prepare the next beta (the first RC should come with the definite
API).