Given a tile (the cropped base map in the left) and polylines (red lines), is there any tool/workflow in QGIS to convert them into masks in the right?

enter image description here

  • 1
    With vector tools, you can extract the extent of the tile, you'll have a vector rectangle. Then you can "split with lines" (algorithm toolbox) the extent rectangle with your lines. The result will be a 4 part divided rectangle, as your right picture. Commented Jun 7, 2022 at 7:36
  • Thank you for the workflow. It works. I really appreciate you help!
    – Jason
    Commented Jun 7, 2022 at 23:10

1 Answer 1

  1. Even if it's located in Vector tools, you can extract the extent of your tile with this tool : "Extract layer extent". The result will be a rectangle (polygon) of the extent.

  2. Split this rectangle extent with your line layer, using the "Split with lines" processing tool. As its name, this tool will split your polygon layer (extent) with your line layer and divide it into different parts.

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.