2

now I try to automatize the creation of variable distance buffers for a line vector-layer with the help of the Graphic Modeler in QGIS. I don't want to save the buffer results as a new shapefile but instead adding the new features automatically to an existing shapefile (just adding not overwriting).

The problem thereby is that I can't specify the output in this way with the Graphical Modeler. Is there any possibilty to achieve this?

underdark
84.9k22 gold badges237 silver badges418 bronze badges
asked Jan 24, 2018 at 11:56
2
  • The grapical modeler can use only (but not all) the tools that are already within the program. If you can´t solve the problem with the availabe tools from the processing framework you have to work out some python code. It should work to append the new features using union. But you will have a new file and need to overwrite the old one. As the old one is loaded and therefore locked i´m not sure if this works. Commented Jan 24, 2018 at 12:47
  • There is a tool in the grapical modeler called v.edit that might do what you want. The description says: edits a vector map, allows adding, deleting and modifying selected vector features. Commented Jan 24, 2018 at 17:08

1 Answer 1

1

I had a similar problem in ArcGIS ModelBuilder, and the solution was to output a temporary result shapefile, load (add) the result in the right dataset then erase the temporary result shapefile.

I don't use QGIS graphic modeler but you may be able to do something similar.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
answered Jan 24, 2018 at 12:08
3
  • Thank you! I know that this is a solution, but the modell I want to create should be able to add the new features directly to an existing shapefile. The tool should then be used by other users, which are not familiar with QGIS so I want to avoid any obstacles or possible error sources. Commented Jan 24, 2018 at 12:15
  • Yes but arcgis has the tool to load data or delete shapefile that you can add in a model, for the end user the operation are transparent and it seem that the result are directly added to the shapefile. If the same tool are not available for graphical modeler you could may try to ceate a script that do the same and add it to your model Commented Jan 24, 2018 at 12:35
  • Ah, now I got it! That would be a perfect solution, but I have't found yet such a possibility in QGIS and my skills are unfortunately not advanced enough to create such a PyQGIS script. Commented Jan 24, 2018 at 12:40

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.