On 12-01-25 10:04 AM, Rahkonen Jukka wrote:
Hi,
I have been thinking that the the MAP METADATA parameter "wms_onlineresource"
might have a setting
"wms_onlineresource" "auto"
It would capture the url that was used for reading the GetCapabilities and
place the reasonable parts of it automatically into GetCapabilities response.
This option would serve also the development-test-production migration,
Actually, if you do not set the "wms_onlineresource" at all then this is
what you get: an automatically generated onlineresource URL based on
MapServer's best guesses.
I didn't think of suggesting this option in my earlier reply to Steve
because this is only a best guess which is often wrong as lots of
MapServer instances are either behind a NAT/firewall or a load balancer
and in lots of cases what you get is an incorrect onlineresource based
on the proxy'd URL and not the real public URL.
but originally I had another use for it in my mind. It is possible to do
wonderful things with Mapserver variables and runtime substitution but standard
WMS clients do not support using the vendor options easily. But imagine that
user reads GetCapabilities as
http://server.org/cgi-bin/mapserver_wms?service=WMS&version=1.1.0&request=GetCapabilities&variable1=foo&variable2=bar
and then the GetMap onlineresource in GetCapabilities would look like
http://server.org/cgi-bin/mapserver_wms?variable1=foo&variable2=bar
Adding hardcoded vendor-specific params to the automatically generated
URL sounds like a nice idea. We'd just need someone to champion it ;-)
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users