Skip to content

Instantly share code, notes, and snippets.

@gacarrillor
Last active September 18, 2019 15:03
Show Gist options
  • Save gacarrillor/d1647ac374c6f99dcb7fe7686add5c79 to your computer and use it in GitHub Desktop.
Save gacarrillor/d1647ac374c6f99dcb7fe7686add5c79 to your computer and use it in GitHub Desktop.

Issue with models for opengis.ch

** REQUIREMENTS **:

Install the Asistente LADM_COL plugin to be able to use a custom model (LADM_COL:ETL-model).

MATERIALS:

EXPECTED EXECUTION: The following model should be executed in this order:

  1. Statistics by category
  2. ETL-model
  3. Join attributes by value

because the third algorithm in the model requires an input from the second one (ETL).

PROBLEM:

However, the modeler seems to get confused and does not wait for the ETL output. Instead, it executes the 3rd algorithm in the first step, generating an unexpected output for the model.

WHY?

The ETL algorithm has a custom OUTPUT parameter that is passed as an INPUT.

STEPS TO REPRODUCE

  1. Load the .model3 file into QGIS Processing.
  2. Load the two layers "data" and "group_party".
  3. Execute the model and choose "data" layer as "B_agrupacion_in" input and "group_party" for "F_la_agrupacion_out" input.

See screenshot: http://downloads.tuxfamily.org/tuxgis/tmp/ai/issue_modeler/model_paremeters.png

If you see the log, the third alg is executed first, which should not happen.

See screenshot: http://downloads.tuxfamily.org/tuxgis/tmp/ai/issue_modeler/log_issue_modeler.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment