Hello,
I am trying to limit the list of shown CRS for the WMS get capabilities 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 (at least in the xml) for:

Going to geoserver/wms?&request=getCapabilities


<!-- 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: 
Going to geoserver/wstest/test/wms?&request=getCapabilities
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 recieve 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>

 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 layer
separately that I missed?





Best,

Lubomír Bucek
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to