dopa_workflow

PROCESSING

Country/Ecoregion/Protection (CEP)

This is a specific application of flattening.

DOPA CEP is made by:

The resulting dataset is a pseudo-topology where each polygon keeps the information from the original sources, and is simultaneously used as:

To obtain the above, the user is requested only to:

  1. download this code, move in the flattening folder.
  2. setup few parameters in an env file (workflow_parameters.conf used for version 202003), and
  3. run a sequence of bash script (z_do_it_all.sh used for version 202003).

The output is always exported in:

cep.cep_last

non-redundant geometry table where:

cep.cep_last_index

non-geometric version of the above, with expanded arrays

The code to (quickly) update the two above tables, after the (expensive) flattening step is a single bash script, where again the user is required to setup few parameters before executing it. The script:

Version 202003

Version 202009

Full parameters, logs and additional commands reported in cep_202009 Due to code improvements, it runs in 17 hours only. A recurrent country overlap (0/171 and 188/234) is fixed with specific sql script.