2

In QGIS 2 graphical modeller I had an input parameter 'Table' for spreadsheets, CSV etc. with no geometry. By now, I'm re-creating all my existing QGIS 2 models from scratch (cp. Using QGIS 2.x processing model in QGIS 3.0?) and miss this input parameter 'Table' in QGIS 3.

What should I use instead?

Taras
  • 32,823
  • 4
  • 66
  • 137
Jochen Schwarze
  • 14,605
  • 7
  • 49
  • 117
  • What kind of algorithms do you use? The Vector Layer parameter lets you select loaded layers with no geometry (e.g. csv files). You could then couple this with the Vector Field to select columns from your table which could then be used for some algorithm such as Create points layer from table. – Joseph Sep 19 '18 at 10:05
  • @Joseph perhaps you remember https://gis.stackexchange.com/questions/277373/using-qgis-2-x-processing-model-in-qgis-3-0/296327#296327 (formula is still secret...) Table was the input to a custom script, which returned the value of a certain attribute of the only record in my table. It would be no big deal to rewrite this script for vector layer input, but according to some posts here processing scripts in QGIS 3 seem to have lost their straightforwardness somehow compared to QGIS 2 (cp. https://gis.stackexchange.com/questions/282773/writing-a-python-processing-script-with-qgis-3-0) – Jochen Schwarze Sep 19 '18 at 10:27
  • I just saw that there is a well documented processing script template, I'm going to try it this way... – Jochen Schwarze Sep 19 '18 at 10:34
  • what about the 'File/Folder' input type? This actually has a filter to specify CSV, so perhaps this is the way to go? (QGIS 3.18 mind you). – nr_aus Mar 01 '22 at 02:44

1 Answers1

1

Use Vector Layer with geometry type "Geometry not required"

enter image description here

BERA
  • 72,339
  • 13
  • 72
  • 161
  • Yes it's working, but it's not ideal. It's not showing only tables in the dropdown menu. There is still other vector layers. – etrimaille Sep 27 '21 at 19:17