Skip to content

Commit

Permalink
fix entity asDataFrame for provenance + fix basefilename handling for…
Browse files Browse the repository at this point in the history
… data copying
  • Loading branch information
eblondel committed Nov 30, 2024
1 parent 7129c25 commit fda8d6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/geoflow_entity.R
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ geoflow_entity <- R6Class("geoflow_entity",
i, datasource, datasource_uri, getwd()))

#basefilename <- paste0(self$identifiers$id, "_", self$data$sourceType,"_",datasource_name)
basefilename <- datasource_name
basefilename <- basename(datasource_name)

#here either we only pickup zipped files and re-distribute them in job data directory
#or we write it from data_object$features if the latter is not NULL and if writer available (for now only shp)
Expand Down Expand Up @@ -2156,8 +2156,9 @@ geoflow_entity <- R6Class("geoflow_entity",
Provenance = {
outprov <- NA
if(!is.null(self$provenance)){
outprov <- paste0("statement:", paste0("\"",self$provenance$statement,"\""), line_separator)
outprov <- paste0("statement:", paste0("\"",self$provenance$statement,"\""))
if(length(self$provenance$processes)>0){
outprov <- paste0(outprov, line_separator)
processes_str <- paste0(sapply(self$provenance$processes, function(process){
rationale <- paste0("\"", process$rationale, "\"")
outproc <- paste0("process:", rationale)
Expand Down

0 comments on commit fda8d6c

Please sign in to comment.