I have a road network as line layer and a land cover as polygon layer, I want to find number of subpolygon for each polygon that divided by line layer in QGIS? I used union function in Geoprocessing Tools in Vector menu of QGIS and then polygonize function to convert union result to polygon but in table of new polygon there is NULL data.

  • Please click 'edit' and explain a bit more about your process; images would help too! Did you successfully union and then have a failure at the polygonize step?
    – Simbamangu
    Feb 26, 2016 at 19:42

2 Answers 2


You can use Polygon-line intersection tool located under Processing toolbox -> SAGA -> Vector polygon tools -> Polygon-line intersection, and do the following steps:

Example enter image description here

  • Select the lines (the lines should cover the polygon from edge to edge).

enter image description here

  • Go to Polygon-line intersection tool

enter image description here - Under Polygons Input the polygon layer - Under Lines input the line layer - Save the output file - Click OK

enter image description here

If the line does not cover the polygon from edge to edge, it will not split the polygon

Invalid line (input):

enter image description here

Output (Nothing happened):

enter image description here


A manual option would be to use the Auto Trace plugin (https://plugins.qgis.org/plugins/autoTrace/).

Create a new polygon layer, make sure to set your snapping options (Settings> Snapping Options> Snapping Mode: "All Layers"; Snap To: "Vertex & Segment; Tolerance: I usually do 15 pixels), and then trace each polygon outlined by your road network lines and land cover polygon.

As for another, more automated method, I am unaware!

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.