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:
<!-- Limited list of EPSG projections: --> <CRS>EPSG:4326</CRS> <CRS>EPSG:3857</CRS> <CRS>CRS:84</CRS>
But both GetCapabilities of a single workspace or a single layer do not respect that.
I can really see the two CRS as the options of that particular layer,
<Layer queryable="1" opaque="1"> <Name>test</Name> <Title>test</Title> <Abstract/> <KeywordList> <Keyword>test</Keyword> <Keyword>WCS</Keyword> <Keyword>ImageMosaic</Keyword> </KeywordList> <CRS>EPSG:3857</CRS> <CRS>CRS:84</CRS>
but I still also receive the basic full list of the WMS service itself.
<Layer> <Title>GeoServer Web Map Service</Title> <Abstract> A compliant implementation of WMS plus most of the SLD extension (dynamic styling). Can also generate PDF, SVG, KML, GeoRSS </Abstract> <!-- All supported EPSG projections: --> <CRS>AUTO:42001</CRS> <CRS>AUTO:42002</CRS> <CRS>AUTO:42003</CRS> <CRS>AUTO:42004</CRS>
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?