MapServer / mapcache

MapCache source code directory. Please submit pull requests to the 'main' branch.
https://mapserver.org/mapcache
Other
137 stars 96 forks source link

Add ability to specify WM(T)S GetMap/GetTile/GetLegendGraphic URL #344

Open marisn opened 4 weeks ago

marisn commented 4 weeks ago

WMS GetCapabilities response contains URLs based on incoming request. Although it sounds correct, there are scenarios when it is not the case, e.g., Apache internal redirect could mean user must use one URL, but MapCache listens on another URL. Solution would be ability to specify base URL for WM(T)S responses in the configuration file.

jratike80 commented 4 weeks ago

Isn't it already there at least for WMS?

wms_onlineresource

WMS TAG Name: OnlineResource (WMS1.1.1, sect. 6.2.2)

Description: (Recommended) The URL that will be used to access this WMS server. This value is used in the GetCapabilities response.

marisn commented 3 weeks ago

Isn't it already there at least for WMS?

I don't see it in the documentation: https://mapserver.org/mapcache/services.html#ogc-wmts-service

jratike80 commented 3 weeks ago

Sorry, I was reading the Mapserver documentation, not Mapcache. I apologize.