Skip to content

Commit

Permalink
fix #388
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed May 15, 2024
1 parent d922808 commit eaf54b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/executeWorkflowJob.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ executeWorkflowJob <- function(config, jobdir = NULL, queue = NULL, monitor = NU
skipDataDownload = config$profile$options$skipFileDownload
}
skipDataDownload <- if(!is.null(config$profile$options$skipDataDownload)) config$profile$options$skipDataDownload else FALSE
skipEnrichWithDatatypes <- if(!is.null(config$profile$options$skipEnrichWithDatatypes)) config$profile$options$skipEnrichWithDatatypes else FALSE
skipEnrichWithData = if(!is.null(config$profile$options$skipEnrichWithData)) config$profile$options$skipEnrichWithData else FALSE

#Actions onstart
Expand Down Expand Up @@ -136,7 +137,7 @@ executeWorkflowJob <- function(config, jobdir = NULL, queue = NULL, monitor = NU
#we copy data to job data dir (for data files)
entity$copyDataToJobDir(config, jobdir)
#enrich with data types
entity$enrichWithDatatypes(config, jobdir)
if(!skipEnrichWithDatatypes) entity$enrichWithDatatypes(config, jobdir)
#vector data: we enrich entity with features
#control is added in case of entity already enriched with features/coverages (when loaded from custom R entity handlers)
if(!skipEnrichWithData) if(is.null(entity$data$features) && is.null(entity$data$coverages)){
Expand Down
2 changes: 2 additions & 0 deletions doc/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ possible geoflow global options:
| `skipDataDownload` | Indicates whether data associated to an entity should be download | **false** |
| `skipFileDownload` | Deprecated, use `skipDataDownload` instead. | **false** |
| `skipDynamicBbox` | Indicates whether bbox inherited from data should be ignored. | **false** |
| `skipEnrichWithData` | Indicates whether the entity should be enriched with data | **false** |
| `skipEnrichWithDatatypes` | Indicates whether the entity data should be enriched with datatypes (case where a zip archive needs to be scanneed to inherit source/upload types) | **false** |
| `enrichDataStrategy` | Strategy to use when inheriting spatial bbox from multiple data objects, either “first” (take the first data object for the bbox, or “union” (union of bboxes from the different data objects). | \*\*“first”\* |

Note on the **mode**:
Expand Down

0 comments on commit eaf54b8

Please sign in to comment.