Skip to content

Commit f03f050

Browse files
committed
support #389
1 parent 5c62e77 commit f03f050

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/actions/geosapi_publish_ogc_services.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ function(action, entity, config){
414414
)
415415

416416
#styles publication if needed
417-
gs_styles <- GS$getStyleNames()
417+
gs_styles <- c(GS$getStyleNames(), GS$getStyleNames(ws = workspace))
418418
if(data_object$styleUpload) if(length(data_object$styles)>0){
419419
for(i in 1:length(data_object$styles)){
420420
style <- data_object$styles[i]
@@ -424,12 +424,12 @@ function(action, entity, config){
424424
config$logger.warn(sprintf("No style '%s' in Geoserver", style))
425425
if(style_sldfile %in% data_object$source){
426426
config$logger.info(sprintf("Creating GeoServer style '%s' from SLD style file '%s' available as source", style, style_sldfile))
427-
created <- GS$createStyle(file = file.path(getwd(), "data", style_sldfile), name = style)
427+
created <- GS$createStyle(file = file.path(getwd(), "data", style_sldfile), name = style, ws = workspace)
428428
}
429429
}
430430
}
431431
GS$reload()
432-
gs_styles <- GS$getStyleNames()
432+
gs_styles <- c(GS$getStyleNames(), GS$getStyleNames(ws = workspace))
433433
}
434434

435435
#layer build and publication

0 commit comments

Comments
 (0)