Skip to main content
Tweeted twitter.com/StackGIS/status/1267425687503331328
Removed tag prefix from question title as per Jeff Atwood style preference
Link
underdark
  • 84.5k
  • 22
  • 233
  • 415

QGIS3.2 Graphic Modeler - Syntax for "fields to keep" of Intersection Tool: Keep Fields - How does argument syntax work?tool in graphical modeler

correction of spellings,grammatical error fixed, improved formatting
Source Link
L.Blanc
  • 153
  • 8

QGIS3.2 Graphic ModellerModeler - IntersectIntersection Tool - Kept: Keep Fields - Argument SyntaxHow does argument syntax work?

I'm working with QGIS 3.2 Bonn and try to set up a workflow with the graphics modellergraphic modeler.

The model uses the Intersection Tool from the QGIS Geoprocessing Tools. The model works, but I don't want to keep all fields from the intersection process.

In this case, the tool provides the possibility to set "Input fields to keep" from the input feature layer and "Intersect fields to keep" from the intersect feature layer. I tried different syntax possibilitieswas able to define thejust one field to keep, but in case of several fields to keep in the modeloutput, but didn't manage itI couldn't find any solution yet.

I tried different syntax possibilities:

  • [attributefield1, attributefield2, ...]
  • ["attributfield1", "attributefield2",...]
  • "attributefield1", "attributefield2", ...
  • 'attributefield1', 'attributefield1',...

In a QGIS online-manual ithe QGIS online-manual I found only this information:

*Input fields to keep [tablefield: any] [list] Optional Choose here the field(s) of the input layer to be kept. If no fields are chosen all fields are taken.Input fields to keep [tablefield: any] [list]
Optional
Choose here the field(s) of the input layer to be kept. If no fields are chosen all fields are taken.

https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#intersection

How do I set the list of fields there?

Screenshot:

QGIS3.2 Graphic Modeller - Intersect Tool - Kept Fields - Argument Syntax

I'm working with QGIS 3.2 Bonn and try to set up a workflow with the graphics modeller.

The model uses the Intersection Tool from the QGIS Geoprocessing Tools. The model works, but I don't want to keep all fields from the intersection process.

In this case, the tool provides the possibility to set "Input fields to keep" from the input feature layer and "Intersect fields to keep" from the intersect feature layer. I tried different syntax possibilities to define the fields to keep in the model, but didn't manage it.

I tried:

  • [attributefield1, attributefield2, ...]
  • ["attributfield1", "attributefield2",...]
  • "attributefield1", "attributefield2", ...
  • 'attributefield1', 'attributefield1',...

In a QGIS online-manual i found only this information:

*Input fields to keep [tablefield: any] [list] Optional Choose here the field(s) of the input layer to be kept. If no fields are chosen all fields are taken.

https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#intersection

How do I set the list of fields there?

Screenshot:

QGIS3.2 Graphic Modeler - Intersection Tool: Keep Fields - How does argument syntax work?

I'm working with QGIS 3.2 Bonn and try to set up a workflow with the graphic modeler.

The model uses the Intersection Tool from the QGIS Geoprocessing Tools. The model works, but I don't want to keep all fields from the intersection process.

In this case, the tool provides the possibility to set "Input fields to keep" from the input feature layer and "Intersect fields to keep" from the intersect feature layer. I was able to define just one field to keep, but in case of several fields to keep in the output, I couldn't find any solution yet.

I tried different syntax possibilities:

  • [attributefield1, attributefield2, ...]
  • ["attributfield1", "attributefield2",...]
  • "attributefield1", "attributefield2", ...
  • 'attributefield1', 'attributefield1',...

In the QGIS online-manual I found only this information:

Input fields to keep [tablefield: any] [list]
Optional
Choose here the field(s) of the input layer to be kept. If no fields are chosen all fields are taken.

https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#intersection

How do I set the list of fields there?

Screenshot:

correction of spellings,grammatical error fixed, improved formatting
Source Link

I'm working with QGIS 3.2 Bonn and try to set up a workflow with the graphic modelergraphics modeller. 

The model uses the "Intersection"Intersection Tool from the QGIS Geoprocessing Tools. The model works, but iI don't want to keep all fields from the intersection process. 

In this case, the tool provides the possibility to set "Input fields to keep""Input fields to keep" from the input feature layer and "Intersect fields to keep""Intersect fields to keep" from the intersect feature layer. I tried different syntax possiblitiespossibilities to define the fields to keep in the model, but didn't manage it.

I tried:

  • [attributefield1, attributefield2, ...]
  • ["attributfield1", "attributefield2",...]
  • "attributefield1", "attributefield2", ...
  • 'attributefield1', 'attributefield1',...

and many many more.

I searched a lot for this in the internet, but couldn't find any information about that, except, that it needs to be a list.

In a QGIS online-manual i found only this information:

*"Input fields to keep [tablefield: any] [list] Optional Choose here the field(s) of the input layer to be kept. If no fields are chosen all fields are taken."*Input fields to keep [tablefield: any] [list] Optional Choose here the field(s) of the input layer to be kept. If no fields are chosen all fields are taken.

https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#intersection

How do I set the list of fields there?

Screenshot:

I'm working with QGIS 3.2 Bonn and try to set up a workflow with the graphic modeler. The model uses the "Intersection" Tool from the QGIS Geoprocessing Tools. The model works, but i don't want keep all fields from the intersection process. In this case, the tool provides the possibility to set "Input fields to keep" from the input feature layer and "Intersect fields to keep" from the intersect feature layer. I tried different syntax possiblities to define the fields to keep in the model, but didn't manage it.

I tried:

  • [attributefield1, attributefield2, ...]
  • ["attributfield1", "attributefield2",...]
  • "attributefield1", "attributefield2", ...
  • 'attributefield1', 'attributefield1',...

and many many more.

I searched a lot for this in the internet, but couldn't find any information about that, except, that it needs to be a list.

In a QGIS online-manual i found only this information:

*"Input fields to keep [tablefield: any] [list] Optional Choose here the field(s) of the input layer to be kept. If no fields are chosen all fields are taken."

https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#intersection

How do I set the list of fields there?

Screenshot:

I'm working with QGIS 3.2 Bonn and try to set up a workflow with the graphics modeller. 

The model uses the Intersection Tool from the QGIS Geoprocessing Tools. The model works, but I don't want to keep all fields from the intersection process. 

In this case, the tool provides the possibility to set "Input fields to keep" from the input feature layer and "Intersect fields to keep" from the intersect feature layer. I tried different syntax possibilities to define the fields to keep in the model, but didn't manage it.

I tried:

  • [attributefield1, attributefield2, ...]
  • ["attributfield1", "attributefield2",...]
  • "attributefield1", "attributefield2", ...
  • 'attributefield1', 'attributefield1',...

In a QGIS online-manual i found only this information:

*Input fields to keep [tablefield: any] [list] Optional Choose here the field(s) of the input layer to be kept. If no fields are chosen all fields are taken.

https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#intersection

How do I set the list of fields there?

Screenshot:

Source Link
L.Blanc
  • 153
  • 8
Loading