Skip to content

Commit d277c1d

Browse files
committed
ensure field is part of data otherwise try to grab it from fto
1 parent d67e662 commit d277c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/actions/geometa_create_iso_19110.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function(action, entity, config){
295295
}
296296

297297
#add primitive type + data type (attribute or variable) as valueType
298-
fat_type <- if(build_catalog_from_features){
298+
fat_type <- if(build_catalog_from_features & !is.null(featureAttrValues[1])){
299299
switch(class(featureAttrValues[1])[1],
300300
"integer" = "xsd:int",
301301
"numeric" = "xsd:decimal",

0 commit comments

Comments
 (0)