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:

<!-- Limited list of EPSG projections: -->

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

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

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


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?

  • see this thread from the user list - sourceforge.net/p/geoserver/mailman/message/36450466 – Ian Turton Oct 29 '18 at 16:09
  • Sorry for double post! That is my post. I am not on the user-list and the only email that I received back was that the post is waiting for moderator for being approved. I should have received that it was approved already, but I did not. Anyway no response in the thread yet. – lubojr Oct 29 '18 at 16:17
  • may be you need to join the mailing list so you see the discussion - checkout this talk (or video) to see how to seek help with opensource software – Ian Turton Oct 29 '18 at 16:19
  • Sorry again. Unfortunately I can not see any messages inside this thread even after registering to sourceforge and joining the mailing list. Just my post and that's all. Probably linked to the fact, that I was sending the message from "outside" of the mailing list, however that is not related to the question. – lubojr Nov 1 '18 at 9:37

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.