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 have a set of rasters (geologic risk) from which I want to extract zones with a specific color, clipping them with a polygon (administrative borders), outputting a shapefile.
I'm using QGis (and GDAL from command line).
I know I can use clipper, polygonize and show only features with the value I need, but:

  1. it takes ages to polygonize the raster, and I don't want much of the information in it;
  2. clipper doesn't work because the polygon border is larger than each raster, but fits inside the sum of all rasters
  3. to make things complicated, the zone I would like to extract don't have the same color value in all rasters (but do have the same rgb color)

How can I solve it in a fast way?

share|improve this question
1  
I think I got my answer: gis.stackexchange.com/questions/27359/… I simply have to rasterize my polygon (I addedd a field with value=1), then use raster calculator to do: mask * map = color value then I can use polygonyze (and do a join) –  sanzoghenzo Nov 20 '12 at 16:17
    
it is a different enough question that you should accomplish the outcome and then post as an answer below and check the answer as correct. that is how we roll here at GSE –  Brad Nesom Nov 20 '12 at 17:50
add comment

1 Answer

up vote 1 down vote accepted

I think I got my answer: Filtering a raster by pixel value with GDAL

I simply have to rasterize my polygon (I addedd a field with value=1), then use raster calculator to do:

mask * map = color value

then I can use polygonyze (and join)

share|improve this answer
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.