[GRASS-dev] What is the status of g.list, g.remove, g.mlist and g.mremove?

Huidae Cho grass4u at gmail.com
Thu Sep 25 09:20:55 PDT 2014


Markus,

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 at osgeo.org> wrote:

>
> On Sep 13, 2014 3:54 AM, "Huidae Cho" <grass4u at gmail.com> 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.
>
> Best
> Markus
>
> > On Fri, Sep 12, 2014 at 9:05 PM, Vaclav Petras <wenzeslaus at gmail.com>
> wrote:
> >>
> >> Hi,
> >>
> >> 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.
> >>
> >> Vaclav
> >
> >
> >
> > _______________________________________________
> > grass-dev mailing list
> > grass-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140925/352ff521/attachment.html>


More information about the grass-dev mailing list