Skip to content

Commit

Permalink
improve check for ogc relations in ISO 19115
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jun 11, 2024
1 parent 02f4dba commit 9b08855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/actions/geometa_create_iso_19115.R
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ function(action, entity, config){
#add online resource for each relation
if(length(entity$relations)>0){
http_relations <- entity$relations[sapply(entity$relations, function(x){
x$key %in% c("ftp","http", "download", "wfs", "wms", "wms110", "wms111", "wms130", "wcs", "csw")
x$key %in% c("ftp","http", "download") | any(startsWith(x$key, c("wfs", "wms", "wcs", "csw")))
})]
for(http_relation in http_relations){
or <- ISOOnlineResource$new()
Expand Down

0 comments on commit 9b08855

Please sign in to comment.