[GRASS-dev] v.extract -r / file=-

Hi,

I have tried to implement the wish [1] (now in CVS). The module
v.extract supports also reverse selection. Category numbers/ranges can
be also read from stdin, e.g.

echo -e "1-2\n3" | v.extract in=roads out=x file=-

v.category x opt=print | sort | uniq
1
2
3

echo -e "1-2\n3" | v.extract in=roads out=x file=- -r

v.category x opt=print | sort | uniq
4
5

Martin

[1] https://intevation.de/rt/webrt?serial_num=2780&display=History

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *