[GRASS-user] creating a new vector layer by table selection fails
Tim Michelsen
timmichelsen at gmx-topmail.de
Wed Aug 13 06:28:04 EDT 2008
Hello,
I am trying to create a new vector by selecting with an SQL query. But I cannot
suceed.
Here is the command I used:
v.extract input=country at PERMANENT output=country_selected
type=boundary,centroid,area,face layer=1 where='("name = Ukraine")' --overwrite
The output in the console:
Load categories from the database (table = country, db =
grassdata/testlocation/PERMANENT/dbf/).
dbmi: Protocol error
-1 categories loaded from the database
dbmi: Protocol error
Building topology ...
0 primitives registered
0 areas built
0 isles built
Attaching islands:
Attaching centroids: Topology was built.
Number of nodes : 0
Number of primitives: 0
Number of points : 0
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0
Writing attributes...
If I use the following command:
v.extract input=country at PERMANENT output=country_selected
type=boundary,centroid,area,face layer=1 list=34 --overwrite
it all works well.
What could be the error?
Thanks in advance!
Regards,
Timmie
More information about the grass-user
mailing list