Sunday, 9 September 2018

geoserver - Limit WFS GetCapabilities document


Does anyone know if you can limit what's shown in the GetCapabilities document for a GeoServer WFS service?


I have restricted the workspace to read only mode (..r=* and ..w=NO_ONE). I hoped that would lead to that, for example CreateStoredQuery wouldn't show up in the GetCapabilities document, but it doesn't. I also only want to support GET requests, no POST requests.




Answer



I you switch your WFS from Complete to Basic on the WFS settings page then no transactional requests will be supported but the end points will still appear in the capabilities document.


Changing permissions will not affect the output of the GetCapabilities request.


I don't think there is any way in GeoServer to limit requests to just GET (there is no reason to do this that I can think of), but you might be able to do it in tomcat.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...