[GRASS-user] deleting vectors not having any attribute

hello

when I enter this command :

GRASS 6.3.cvs (bartin):~ > d.vect -c map=hey4 display=shape,attr attrcol=cat lcolor=black

it gives :

WARNING: No attribute found for cat 123:
         select cat from hey4 where cat = 123
WARNING: No attribute found for cat 124:
         select cat from hey4 where cat = 124
(and the others)

how can I eliminate the vectors that does not have any attribute ?
when I try to delete that records in postgresql, I think grass keeps
vectors internally ?

regards

--
Ahmet Temiz

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

how can I eliminate the vectors that does not have any attribute ?
when I try to delete that records in postgresql, I think grass keeps
vectors internally ?

No attribute table in a vector means no need for a db connection, (is it our case?) but if you got ‘null’ atts for some cats I think you should not delete those records at all.

Null values in a db table won’t do you no harm and you will spent only few bytes for the primary key storage :wink:
of course you won’t see the warnings

regards
raffaele

temiz wrote:

how can I eliminate the vectors that does not have any attribute ?
when I try to delete that records in postgresql, I think grass keeps
vectors internally ?

v.extract only copies features with a cat.

I think it is an error for the cat column to be NULL in the attribute table.

v.extract or d.vect with a SQL where= query should help.

Hamish