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

Martin Landa landa.martin at gmail.com
Tue Feb 20 09:00:31 EST 2007


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 at gmail.com> * http://gama.fsv.cvut.cz/~landa *




More information about the grass-dev mailing list