[GRASS-user] how to get categoriy values after v.reclass?

Patrick Giraudoux patrick.giraudoux at univ-fcomte.fr
Sun Jan 27 11:09:41 EST 2008


I had a point vector map of three points (name = 'samples') where the 
category values were 1, 100, 200

I reclassified it as following:

v.reclass input=samples output=samples2 rules=reclasscode

where reclasscode is this file:
 > cat reclasscode
cat 1
where cat=1
cat 2
where cat=100
cat 3
where cat=200

Then, I cannot find a way out to read the values of cat in the new file 
'sample2'. Obviously v.info could just give the names of the columns in 
'samples':

 > v.info -c map=samples
Displaying column types/names for database connection of layer 1:
INTEGER|cat
INTEGER|ID
DOUBLE PRECISION|x
DOUBLE PRECISION|y

but with the new file
 > v.info -c map=samples2
ERROR: Database connection for map <samples2> is not defined in DB file

and anyway, this is not exactly what I would like to get.  I would get 
the value of the categories for each point... and cannot make it 
whatever the vector file...

Any hint welcome !

Patrick










More information about the grass-user mailing list