Comments (7)
Thanks for this!
To wrap it up, after updating geosapi, enableWxS
for enabling and disableWxS
for disabling. Keep updateServiceSettings
for other settings such as title.
I will look at this tomorrow first thing.
Have a nice evening !
from geosapi.
So, I've modified my wrapper/bridge around geosapi
and it seems to work well. Each CRUD operation we do in our app is now fully reproduced in GeoServer through geosapi.
If our "in-depth" tests show something else, I will reopen this issue or create a new one.
Thanks for your efficiency !
from geosapi.
Hi @fxi hope the year started well for you and your team. i'm going to have a look asap to this, and report to you.
from geosapi.
@fxi, @PierreLacroix first apologies for this glitch. This issue escaped to the latest enhancements because of wrong 'vocabulary' I followed and some differences in the Geoserver REST API whether we deal with the global config or the workspace config. Until now, i was thinking that enabling/disabling were operated with an UPDATE operation, which makes senses (in principle), and this is in line with the piece of code you tried.
But I've realized that Geoserver doesn't treat an OGC service enabling/disabling (what we have as checkbox in the Web Interface) in the same way depending if you look at global service or workspace service:
- for the global service settings, running an UPDATE operation to disable the WxS services works
- for the workspace service settings, running an UPDATE doesn't work (And here you keep the checkbox 'checked' while it shouldn't), while the update request worked setting the property
enabled
tofalse
in the rest config (with no effect on the checkbox). Instead a DELETE operation has to be applied, which deletes the service config. Unfortunately for me, this was not explicitely mentioned in the API doc, and the tests are not able to catch this.
I've pushed some fix for this, and tried out on GeoServer 2.14.
It's important that you don't use the updateServiceSettings
method for that, but rather the shortcuts i've put in place such as disableWMS
, disableWFS
, disableWCS
. Depending if you disable a global or workspace setting, geosapi will apply the right operation behind (UPDATE, DELETE).
Let me know
from geosapi.
You're welcome!
from geosapi.
@fxi just to let you know that i've submitted geosapi in CRAN, and it has been accepted for publication. Soon i'll create a tag in github to match this release.
from geosapi.
@eblondel Thanks for the notification !
from geosapi.
Related Issues (20)
- Republish an unpublished layer. Geoserver or geosapi issue ? HOT 4
- enable isolation for workspace
- CREATE workspace settings doesn't work
- Support GeoPackage datastore
- Secure API password with 'keyring'
- Issue with Keyring >= 1.2.0 - system password requested - Set keyring 'env' backend by default
- implement system status method + shiny UI
- Trailing slash may encounter issue when creating GSManager HOT 4
- Standardize R6-class documentation
- Shapefile upload doesn't work anymore - wrong Content-Type
- Error in getDataStore - invalid xml object
- Support zipped geopackage upload
- Upgrade roxygen2 7.2.1 to fix html issues
- Allow namespace based import of GSManager
- geosapi + shiny-server HOT 3
- Assess upgrade from httr to httr2 for API requests
- No mapping for GET /geoserver/rest/rest/about/version.xml HOT 3
- Support workspace-based methods getStyles, getStyleNames HOT 6
- Migrate from XML to xml2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geosapi.