I am trying to use the QGIS Processing Modeler to split polygons with lines. Here is the workflow I have so far. It is sucessful.
I then add "Grid" and "Split With Lines" to split the polygons. No matter what combination of options I select it always fails. The end result I get for the split polygons is grid of lines. I have also tried to change the "Parent Algorithms" option to a number of combinations with no luck.
Here is the end product I would like to achieve. enter image description here
Here is what I think should succeed, but does not. enter image description here
Multiple selection is from the parent algorithm selection.
Here is the result. enter image description here
-
2Did you just delete your old question and posted it as new instead of editing the old one?Erik– Erik2020年02月05日 15:45:10 +00:00Commented Feb 5, 2020 at 15:45
-
1Can you post an image of the parameters you have input for "Split Grid with Lines"?wfgeo– wfgeo2020年02月05日 18:30:48 +00:00Commented Feb 5, 2020 at 18:30
1 Answer 1
Your input for Split with lines is the grid and it tries to cut that grid with your polygons. It's the other way around:
- Input layer is the layer you want to cut
- Split layer is the layer with which to split
Check the tool documentation by clicking on the Help button on bottom right of the tool windows.
If you want to get past the grid output not being available in the split tool (in the graphical modeler), use this:
After the grid tool, add an Extract by expression with the expression $id IS NOT NULL
. The output of that tool will be available in the split tool.
-
The Grid does not appear in the Split Layer Input for some reason.Dan Olson– Dan Olson2020年02月05日 19:15:07 +00:00Commented Feb 5, 2020 at 19:15
-
Nice work. You solved the problem I had been working on for a couple of days. Thanks.Dan Olson– Dan Olson2020年02月05日 20:13:39 +00:00Commented Feb 5, 2020 at 20:13
Explore related questions
See similar questions with these tags.