1

I used a water index (NDWI) to extract pixels from a raster, then turned it into a polygon layer. The goal is to create samples for image classification. Now, the resulting layer is kind of patchy, and I'm trying to figure out if there is a way to fill up the space between those polygons that are within a certain distance (let's say 50 meters), and merge them. If that space could be filled, I guess it would be simple to merge, really. I'm using QGIS.

enter image description here

2
  • 4
    You could try buffer by 50m with dissolve then buffer by -50m to move the unaffected lines back to somewhere close to their original location. Commented Sep 28, 2022 at 2:44
  • 1
    You could play around with the raster to fill the gaps before you convert it to polygons. For example with Raster Calculator to set the values above som threshold to 1 and the other values to 0. Adjust the threshold until the gaps are filled, then convert to polygons
    – Bera
    Commented Sep 28, 2022 at 5:15

0

Your Answer

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

Browse other questions tagged or ask your own question.