[GRASS-dev] g.mremove: adding 'map name exclusion pattern' option
Huidae Cho
grass4u at gmail.com
Thu May 1 18:01:54 PDT 2014
Well, the g.mremove interface looks convenient, but can be dangerous also.
For example, yesterday, I almost deleted my raster files by using the
positional parameter thing while trying to delete all my temporary vectors.
g.mremove tmp*
Whops! Did I want to delete tmp* rasters or vectors? I forgot to add vect=
and my tmp* rasters were listed. Thanks to the -f option. Like Glynn said,
having separate parameters allows deleting different types of data, but its
interface is long and not rush-to-hit-enter mistake free. Also, if we want
to add the exclude= parameter to g.mremove, it's not just one but 12
because there are 12 data types and pattern parameters. Wow! Total 24
pattern and exclude parameters. It's also more coding and headache. I would
like to suggest the following changes:
1. Change g.mremove syntax to g.mremove type= pattern=
2. Add exclude= to g.mremove.
3. Replace g.remove/g.list with g.mremove/g.mlist.
Regards,
Huidae
On Thu, May 1, 2014 at 6:19 PM, Markus Neteler <neteler at osgeo.org> wrote:
> On Mon, Mar 24, 2014 at 7:04 PM, Vaclav Petras <wenzeslaus at gmail.com>
> wrote:
> > On Wed, Mar 19, 2014 at 7:14 AM, Paulo van Breugel <
> p.vanbreugel at gmail.com>
> > wrote:
> >> Would it be difficult to add an option to use 'map name exclusion
> >> patterns' like is available in g.mlist?
> >
> > I'm always very confused when switching between g.mlist and g.mremove.
> The
> > parameters are almost the same, yet different.
> >
> > g.mlist type=rast pattern="tmp_*"
> >
> > g.mremove rast="tmp_*"
> >
>
> In the past, there was some discussion about this with a longer answer
> from Glynn:
> http://lists.osgeo.org/pipermail/grass-dev/2008-October/040506.html
>
> Markus
> _______________________________________________
> 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/20140501/8043ab8b/attachment.html>
More information about the grass-dev
mailing list