[GRASS-user] Re:Using v.colors in WinGRASS

Micha Silver micha at arava.co.il
Tue Nov 9 08:05:26 EST 2010


Achim Kisseler wrote:

>
> vector-map - layers - categories - database-connection: thats a bit 
> confusing, but manageble:
>
> Am 09.11.2010 13:27, schrieb Luisa Peña:
>> 1- How can I know that this particular vector data does/doesn't have 
>> a table?
>
> v.db.connect -p map=your_map
>
>>
>> 2- Since this is a vector, created from a raster (r.to.vect) can I 
>> add a table when I create the vector?
>
> No, thats what I dont like, too
>
>>
>> 3- How can I define a table in order to be used by v.colors?
>
> v.db.addtable
>
>
In addition, it might be a good idea, while you create the table, to add 
the column for colors. the default column name is GRASSRGB and it should 
be a text column (format the RGB colors as RRR:GGG:BBB in that column)
So
v.db.addtable  <vector map> column="GRASSRGB varchar(12)"
 
> I use sqlite as database, because it consists of only one file (so it 
> is easy (for a single user)).
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
> This mail was received via Mail-SeCure System.
>
>



More information about the grass-user mailing list