4

I have a layer of very 3 x 3 m square polygons. I would like to rasterize just the border of the squares, so the interior cells just have 'nodata' values, and you can see layers below it. When I process this with rasterize in QGIS, the whole square comes out black. Any way to do this?

parameters

result

1 Answer 1

5
  1. Convert polygons to lines.

  2. Buffer the lines.

  3. Rasterize the buffer.

Left: original with initial polygon (red hached), line around polygon (black) and buffer (blue). Right: rasterized (black), initial, red hached polygons included for reference/visualization purpose: enter image description here

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.