1

I need to create a point layer from a big raster layer in QGIS. I only want points on the pixels with a '1' value, rather than have a point in EVERY cell (which apparently will take a day to process and will likely not load on my laptop if it completes). The pixel cell value should be either 1 or 0.

Is there a way to do this?

1 Answer 1

2

You need to set all raster values except those you want to vectorize to nodata.

For example using Reclassify by table.

I have a raster with many values, I want to create points only of the cells with value=2.

In reclassify by table, under Advanced settings set Use NoData when no range matches value = Yes.

enter image description here

My Reclassification table: enter image description here

to set all pixels with value 2 to 1. All other values will be set to nodata because Use NoData when no range matches=Yes

Raster pixels to points will only create points of pixels with values other than nodata:

enter image description here

2
  • Thanks, I'm getting this error: "Invalid value for TABLE: list must contain a multiple of 3 elements (found 1)" what am I doing wrong?
    – Phoebe
    Commented Apr 26 at 9:11
  • 1
    Ah, I think I've fixed it. Thank god it's Friday! 🤦‍♀️
    – Phoebe
    Commented Apr 26 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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