Re: [GRASS-dev] New: v.db.droprow

2009-08-14 Thread Martin Landa
Hi, 2009/8/11 Markus Neteler nete...@osgeo.org: to be able to easily filter vector maps geometrically (i.e. remove vectors) I have written the v.db.droprow script (G6.5; needs a Python port for GRASS 7). Done in r38716. It removes vector objects (point, line, area, face etc.) from a

Re: [GRASS-dev] New: v.db.droprow

2009-08-14 Thread Markus Neteler
On Fri, Aug 14, 2009 at 10:15 AM, Martin Landalanda.mar...@gmail.com wrote: 2009/8/11 Markus Neteler nete...@osgeo.org: It removes vector objects (point, line, area, face etc.) from a vector map through attribute selection in the table. Also not sure if we need this script. How would you do

Re: [GRASS-dev] New: v.db.droprow

2009-08-14 Thread Martin Landa
Hi, 2009/8/14 Markus Neteler nete...@osgeo.org: * are these extra checks needed (it's done by v.extract) [1,2] Yes, I think so: if you create a map with v.random it won't have a connected table, so better don't badly crash. Likewise with a non-existing map. I used existing msg strings (for

Re: [GRASS-dev] New: v.db.droprow

2009-08-14 Thread Martin Landa
Hi, 2009/8/14 Martin Landa landa.mar...@gmail.com: * are these extra checks needed (it's done by v.extract) [1,2] Yes, I think so: if you create a map with v.random it won't have a connected table, so better don't badly crash. Likewise with a non-existing map. I used existing msg strings

Re: [GRASS-dev] New: v.db.droprow

2009-08-14 Thread Moritz Lennert
On 14/08/09 10:43, Markus Neteler wrote: On Fri, Aug 14, 2009 at 10:15 AM, Martin Landalanda.mar...@gmail.com wrote: 2009/8/11 Markus Neteler nete...@osgeo.org: It removes vector objects (point, line, area, face etc.) from a vector map through attribute selection in the table. Also not sure

Re: [GRASS-dev] New: v.db.droprow

2009-08-14 Thread Markus Neteler
On Fri, Aug 14, 2009 at 3:30 PM, Moritz Lennertmlenn...@club.worldonline.be wrote: On 14/08/09 10:43, Markus Neteler wrote: On Fri, Aug 14, 2009 at 10:15 AM, Martin Landalanda.mar...@gmail.com wrote: 2009/8/11 Markus Neteler nete...@osgeo.org: It removes vector objects (point, line, area,

[GRASS-dev] New: v.db.droprow

2009-08-11 Thread Markus Neteler
Hi, to be able to easily filter vector maps geometrically (i.e. remove vectors) I have written the v.db.droprow script (G6.5; needs a Python port for GRASS 7). It removes vector objects (point, line, area, face etc.) from a vector map through attribute selection in the table. Example: remove all

Re: [GRASS-dev] New: v.db.droprow

2009-08-11 Thread Moritz Lennert
On 11/08/09 14:49, Markus Neteler wrote: Hi, to be able to easily filter vector maps geometrically (i.e. remove vectors) I have written the v.db.droprow script (G6.5; needs a Python port for GRASS 7). It removes vector objects (point, line, area, face etc.) from a vector map through attribute

Re: [GRASS-dev] New: v.db.droprow

2009-08-11 Thread Markus Neteler
On Tue, Aug 11, 2009 at 5:53 PM, Moritz Lennertmlenn...@club.worldonline.be wrote: On 11/08/09 14:49, Markus Neteler wrote: ... Example: remove all vector with a certain attribute missing (nice when doing random sampling). Can't you do that with v.extract ? It is using v.extract. But IMHO

Re: [GRASS-dev] New: v.db.droprow

2009-08-11 Thread Moritz Lennert
On 11/08/09 19:29, Markus Neteler wrote: On Tue, Aug 11, 2009 at 5:53 PM, Moritz Lennertmlenn...@club.worldonline.be wrote: On 11/08/09 14:49, Markus Neteler wrote: ... Example: remove all vector with a certain attribute missing (nice when doing random sampling). Can't you do that with

Re: [GRASS-dev] New: v.db.droprow

2009-08-11 Thread Markus Neteler
On Tue, Aug 11, 2009 at 8:10 PM, Moritz Lennertmlenn...@club.worldonline.be wrote: On 11/08/09 19:29, Markus Neteler wrote: On Tue, Aug 11, 2009 at 5:53 PM, Moritz Lennert wrote: On 11/08/09 14:49, Markus Neteler wrote: ... Example: remove all vector with a certain attribute missing (nice