[GRASS-user] delete features with v.edit

Dear list,

I try to delete features from a vector theme using v.edit.

After specifying the attribute column to choose with v.db.connect I was entering the following:

v.edit map=geb_emiss_KP@PERMANENT tool=catdel ids=Geb053362

There comes the message within the the output of v.edit:
Tool catdel requires option cats

Any suggestions?

Regards

Chris

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

On 14/10/08 14:36, christian Brandt wrote:

Dear list,

I try to delete features from a vector theme using v.edit.

After specifying the attribute column to choose with v.db.connect

This sentence is not clear: v.db.connect allows you to connect a map to a table indicating the column of the table which contains the category values of the vector features you are linking to. You cannot "specify a column to chose".

I was entering the following:

v.edit map=geb_emiss_KP@PERMANENT tool=catdel ids=Geb053362

There comes the message within the the output of v.edit:
Tool catdel requires option cats

Two issues:

- tool=catdel deletes only the category value, not the feature itself, if you want to do the latter, use tool=delete

- ids= is not what you want to use (you have to know the internal ids of vector features), but rather where=, so something like this:

v.edit map=geb_emiss_KP@PERMANENT tool=delete where="SelectColumn=='Geb053362'"

where SelectColumn is the column which contains your selection criteria.

Moritz