Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Maximum Likelihood classification to classify Landsat image into two landuse classes - one of my interest and rest including all others. Inorder to assess the accuracy I export it in vector format using r.to.vect with feature type as area. But I find no option to export it in such a way that I can differentiate between two classes. Is there any way to do that?

share|improve this question
up vote 7 down vote accepted

Would it be an option to use r.reclass to assign for example 1 to areas of interest and 0 to others. Then use r.to.vect with the -v flag.

share|improve this answer

Doing that, you should have a new vector layer with an attribute containing the values. You then use v.colors to specify the desired color for a given value attribute.

See the exemple at the bottom of the given page to understand how the rules mechanism works.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.