[GRASSLIST:8517] v.reclass

Olivier Faber olivier.faber at tudor.lu
Thu Oct 6 10:41:47 EDT 2005


dear list
 I have a shape file with some 200 classes. I want to create only 2 classes out of it. For example class 120,101,140 etc. become cat1 and the rest cat2
I wrote a script:
cat 1
where CNT_ATT=140
cat 1
where CNT_ATT=101
cat 2
where CNT_ATT=200

(CNT_ATT is the column with categories)
I do not want to write 200 times the same command, and values separated by comma or blank doesn't work.

Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20051006/06a29f9f/attachment.html


More information about the grass-user mailing list