You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def="Create and publish a geospatial project in the World bank metadata editor",
526
+
def="Create and publish a geospatial project in the World Bank metadata editor",
527
527
target="entity",
528
528
target_dir="metadata",
529
529
packages=list("metadataeditr"),
530
530
available_options=list(
531
+
fc=list(def="Whether the feature catalog has to be produced", class="logical", default=TRUE),
532
+
fc_exclude_attributes=list(def="Attributes that should be excluded from the ISO 19110 production", class="character", choices=list(), add_choices=TRUE, multiple=TRUE, default= c()),
533
+
fc_exclude_attributes_not_in_dictionary=list(def="Feature catalog - Enable to exclude all attributes/variables not referenced as dictionary/featuretype", class="logical", default=FALSE),
534
+
fc_exclude_values_for_attributes=list(def="Feature catalog - Attribute names for which listed values should not be produced", class="character", choices=list(), add_choices=TRUE, multiple=TRUE, default= c()),
535
+
fc_extra_attributes=list(def="Feature catalog - Extra attributes to add as feature catalog attributes although not in data", class="character", choices=list(), add_choices=TRUE, multiple=TRUE, default= c()),
536
+
fc_default_min_occurs=list(def="Feature catalog - The default min occurs value for feature attributes cardinality", class="integer", default=0L),
537
+
fc_default_max_occurs=list(def="Feature catalog - The default max occurs value for feature attribute cardinality", class="numeric", default=Inf),
531
538
depositWithFiles=list(def="Indicates if the action is uploading files", class="logical", default=TRUE),
532
539
depositDataPattern=list(def="A regular expression to filter data files to upload in metadata editor", class="character", default=""),
533
540
depositMetadataPattern=list(def="A regular expression to filter metadata files to upload in metadata editor", class="character", default="")
warnMsg<- sprintf("No data features associated to entity '%s' and global option 'skipEnrichWithData' is false. Skip feature catalogue creation", entity$identifiers[["id"]])
47
+
config$logger.warn(warnMsg)
48
+
fc=FALSE
49
+
}else{
50
+
fto<-entity$data$featureTypeObj
51
+
if(!is.null(fto)){
52
+
infoMsg<-"Global option 'skipEnrichWithData' is true. Feature catalogue will be created based on the dictionary only"
53
+
config$logger.info(infoMsg)
54
+
build_catalog_from_features=FALSE
55
+
}else{
56
+
warnMsg<-"Global option 'skipEnrichWithData' is true, but no dictionary available. Skip feature catalogue creation"
57
+
config$logger.warn(warnMsg)
58
+
fc=FALSE
59
+
}
60
+
}
61
+
}
62
+
}
63
+
23
64
#basic function to map a geoflow_contact to a metadata editor contact
config$logger.warn(sprintf("Feature Attribute '%s' not referenced in dictionary and 'fc_exclude_attributes_not_in_dictionary' option is enabled. Discarding it...", featureAttrName))
0 commit comments