[mapserver-users] Relative path's in mapfile

Smith, Michael ERDC-CRREL-NH Michael.Smith at usace.army.mil
Wed Jan 25 11:11:32 EST 2012


Daniel,

Is there anyway to get the IMAGEURL set similarly? To set a base path and
have mapserver determine an absolute URL plus the base path. Right now, if
you want the temp images to work with Google Earth, you need a absolute
URL but if you access mapserver via multiple methods (eg inside and via a
proxy server) then you have to have 2 mapfiles.

Mike

On 1/25/12 10:14 AM, "Daniel Morissette" <dmorissette at mapgears.com> wrote:

>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
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list