QGIS – Creating Zones from Lines Inside Boundary

lineoverlapping-featurespolygon-creationqgis

I would like to create zones inside a boundary from lines. Hard to explain but you can see my goal in the screenshots below:

enter image description here

Each line should have its own zone. Delimited by the zone of the neighboring lines zones.

I would like to use QGIS or SQL for this task.

Best Answer

Make sure your lines layer has a unique identifier (I used a field called Label with 'A', 'B', 'C' etc. A unique number will also work but the label field is a bit easier to spot later).

Densify your lines by a given interval and Extract Vertices

enter image description here

Use Voronoi Polygons (with a sufficient buffer region)

enter image description here

enter image description here

Dissolve the Voronoi output using the unique identifier field that you gave your lines layer.

enter image description here

Clip to your original boundary

enter image description here