Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I classified my raster-DHM into elevation levels using colormap. Its not a "real" classification, just a colormap. So I cant vectorize the classes to get polygones for every class.

Whats the best way, to classify and vectorize a raster? The Rastercalculator? How to use it, if i want to classify my DHM in elevation gradiation like: 1000-1200m; 1200-1400m?

Thanks! Martin

share|improve this question
    
You had another question about working with contours you generated - are those not the 'vectors' you'd like to produce? –  Simbamangu May 16 '12 at 9:05
    
Not exactly :) I need polygones. The elevation-difference is progressive increasing. Im looking for a way to classify the raster, and verctorize the result. I need it in that case, and I need it later for vectorization of classified slopes. –  MAP May 16 '12 at 9:59
add comment

2 Answers

up vote 1 down vote accepted

You can use GRASS r.to.vect

There is already a question (and answer) for that, here

share|improve this answer
    
Yes, thats right! I have not seen it :) But what about qgis? Is there also a way to do that? –  MAP May 16 '12 at 11:35
    
Well you ca use grass in Qgis, using the grass plugin. Or easier using grass in Qgis with SEXTANTE toolbox. That way you don't even have to import your raster in to a grass database. –  Alexandre Neto May 16 '12 at 13:31
add comment

The experimental Sextante toolbox for QGIS is really getting useful now. Using r.reclass with a rules text file allows one to do want you want. The following rules produced the raster shown below (I've coloured this using colormap). The colours are elevation bands at vertical intervals of 200 metres. It should be no problem to polygonize the raster but I can't check this (the raster polygonizer is one of several tools that isn't working here at present). Nick.

0 thru 200 = 1
201 thru 400 = 2
401 thru 600 = 3
601 thru 800 = 4
801 thru 1000 = 5
1001 thru 1200 = 6
1201 thru 1400 = 7

enter image description here

share|improve this answer
1  
In fact in the end I did manage to polygonise the raster, using the Polygonize tool from under the Raster menu. This was with 1.7.4 under Vista. It looks good. –  nhopton May 17 '12 at 7:57
add comment

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.