2

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

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

1 Answer 1

7

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

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

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.