Sunday 27 January 2019

qgis - Split a polygon layer with a line layer?


I am drawing administrative regions that have boundaries follow streets in another layer. As these streets are pretty long with many vertices, I don't want to re-trace them. I am looking for a way to "split" the polygon like "split features" tool (the one with the scissors icon).


Before: one whole polygon with a line running through it


enter image description here


After: the line works as a pair of scissors and split the polygon into 2 parts (in the picture below, the polygons were moved apart for illustrating purpose only)


enter image description here



Answer



First you have to union both shapes



enter image description here


Then activate the Polygonizerplugin to reshape the lines to polygones:


enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...