Support workspace-based methods getStyles, getStyleNames
Closed this issue · 6 comments
These 3 commands:
styles <- gsman$getStyles()
stylenames <- gsman$getStyleNames()
style <- gsman$getStyle("capitals")
The above only return the "default" (pre-installed) styles that are on geoserver. The new styles that were created by the user do not show up when you for instance use this:
"stylenames <- gsman$getStyleNames()"
There are styles that I created on my instance of geoserver but these new styles are not included in the list returned by the "stylenames" variable (the new styles I created are associated with a workspace). Only the standard/default styles that come pre-installed with geoserver are part of the list returned by the "stylenames" variable.
So I am doing something wrong here or is it a bug?
Thanks @bernardvb0101 indeed we miss these methods. I'll look at it ASAP
I've pushed some code to support ws
parameter in getStyles
, and getStyleNames
. For getStyle
however this parameter was already supported.
@bernardvb0101 were you able to test this new feature? can we close this?
@eblondel Thank you! I have tested it and it works fine now. So the use is to do this and then it works as expected:
styles <- gsman$getStyles(ws="YourworkspaceName")
stylenames <- gsman$getStyleNames(ws="YourworkspaceName")
Could be use to test platform as well. Some Geoserver's version doesn't have a valid generic style which could cause error during import