Patrick Giraudoux a écrit :
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 !
Sorry to answer to myself, but it looks like
v.category input=samples2 option=print
makes it !
Patrick
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user