Skip to content

Commit

Permalink
fix #326
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed May 29, 2023
1 parent 073b4de commit 0894da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inst/actions/geometa_create_iso_19110.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ function(action, entity, config){
fc$addScope(paste0("geoflow:", data_objects[[1]]$uploadType))
#-> ofv (openfairviewer) scope
ofv_scope <- "ogc_filters"
if(length(data_objects[[1]]$parameters)>0){
if(length(entity$data$parameters)>0){
ofv_scope <- "ogc_viewparams"
}
if(length(data_objects[[1]]$ogc_dimensions)>0){
if(length(entity$data$ogc_dimensions)>0){
ofv_scope <- "ogc_dimensions"
}
fc$addScope(paste0("openfairviewer:", ofv_scope))
Expand Down Expand Up @@ -171,7 +171,7 @@ function(action, entity, config){

fat_attr <- NULL
fat_attr_desc <- NULL
fto <- data_objects[[1]]$featureTypeObj
fto <- entity$data$featureTypeObj
if(!is.null(fto)) fat_attr <- fto$getMemberById(featureAttrName)
if(!is.null(fat_attr)){
fat_attr_desc <- fat_attr$name
Expand Down

0 comments on commit 0894da6

Please sign in to comment.