Monday, 13 April 2015

Limited CRS options of GeoServer WMS


I am trying to limit the list of available CRS for the WMS GetCapabilities of a single workspace to reduce the size of resulting XML for parsing on the front-end app side. I have found the Limited SRS list option in the WMS admin interface, added the following: 4326, 3857


This makes the change valid when going to: ...geoserver/wms?request=GetCapabilities&...


result is:



EPSG:4326
EPSG:3857
CRS:84

But both GetCapabilities of a single workspace or a single layer do not respect that.



Going to ...geoserver/wstest/test/wms?request=GetCapabilities&... I can really see the two CRS as the options of that particular layer,


 
test
test


test
WCS
ImageMosaic


EPSG:3857
CRS:84

but I still also receive the basic full list of the WMS service itself.


 
GeoServer Web Map Service
A compliant implementation of WMS plus most of the SLD extension (dynamic styling). Can also generate PDF, SVG, KML, GeoRSS

AUTO:42001
AUTO:42002

AUTO:42003
AUTO:42004

Etc...


Should this change not be sufficient to remove the additional CRS from the resulting XML, or is there a way to propagate this change to the workspace/layer GetCapabilities response separately that I missed?



Answer



As I can not see the possible response on the mailing list, I will post an answer here just in case.


I just missed the small drop-down list with workspace selection on top of the WMS settings page. This changes the SRS output of the GetCapabilities response for the workspace and all layers inside it.


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...