0

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.

enter image description here

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.

enter image description here

Here is the result. enter image description here

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Feb 5, 2020 at 15:40
2
  • 2
    Did you just delete your old question and posted it as new instead of editing the old one? Commented Feb 5, 2020 at 15:45
  • 1
    Can you post an image of the parameters you have input for "Split Grid with Lines"? Commented Feb 5, 2020 at 18:30

1 Answer 1

2

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.

answered Feb 5, 2020 at 18:55
2
  • The Grid does not appear in the Split Layer Input for some reason. Commented Feb 5, 2020 at 19:15
  • Nice work. You solved the problem I had been working on for a couple of days. Thanks. Commented Feb 5, 2020 at 20:13

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.