2

I have a raster mask that I have created in QGIS (2.2.0) that consist of 0, 1 and nodata values. I would like to end up with a polygon dataset that consist of only the value of one pixels from this same raster dataset. I have tried the polygonize tool, but it doesn't seem to be producing what I am looking for as it is taking both the 0 and 1 pixel values into the polygons.

How can I accomplish this task?

3
  • 1
    Why not poligonize the whole raster and remove the values you're not interested in? – Michael Stimson Jul 20 '14 at 23:53
  • Thanks for the reply Micheal. This does seem like a good course of action to reach my goal. Sometimes the best solutions are the most simple. This works Raster --> Conversion --> Polygonize (Raster to Vector) and get a vector layer. – geo derek Jul 21 '14 at 1:53
  • You're welcome. You could also try to set the NoData value to 0 if there are no other values besides 0 and 1. – Michael Stimson Jul 21 '14 at 2:00
1

You can use a SAGA tool Vectorising grid classes. Just set Class Selection to One Single Class and set Class Identifier to 1.

vectorising_grid_classes_snapshot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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