0

I have CSV list with XY coordinates (company and its competitors) which I want to input into simple QGIS Processing model. From this list the model creates and styles two spatial layers.

Everything works well with one exception. I have the input CSV list set up to fixed directory path (see screenshot no. 1). I would like if the model allowed me to select the path to the CSV list when I run the model (see screenshot no. 2).

Does anyone know how to set up a CSV list as an input parameter to QGIS processing model?

QGIS Model Editing Mode QGIS Model User Interface

  • have you tried using a string variable for the file path? – csk Apr 19 '18 at 17:20
  • @csk: Could you provide me with an example how would that go, please? – Yanic Apr 20 '18 at 8:21
  • Actually it needed to be a vector layer parameter, not a string parameter. – csk Apr 20 '18 at 17:11
4

Add vector layer parameter enter image description here

Use this parameter as input for algorithm

enter image description here

Run the model - it will ask you to select a file for the vector layer parameter

enter image description here

  • Yes, for custom input of CSV table you need to select "Vector Layer" as input parameter. This answer is correct. Thanks – Yanic Apr 23 '18 at 7:30

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.