[mapserver-users] Variable substitution in CONNECTION string on cascading WMS?
Lime, Steve D (MNIT)
Steve.Lime at state.mn.us
Tue Jan 28 06:05:46 PST 2014
Validation is required for substitution to work... -Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Rahkonen Jukka (Tike) [jukka.rahkonen at mmmtike.fi]
Sent: Monday, January 27, 2014 11:15 PM
To: Mapserver Users (mapserver-users at lists.osgeo.org)
Subject: Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS?
Hi,
Documentation says that CONNECTION in one place where it is supported so have a try http://mapserver.org/cgi/runsub.html. Validation may be needed or not, I am not sure how to interpret the documentation but you will notice it soon. Take a habit to use DEBUG 5 and read your errorfile while experimenting.
By the way, you do not read polygons from the remote WMS, you read rasters. Thus TYPE RASTER.
-Jukka Rahkonen-
Robert Sanson wrote:
> Hi
> Is it possible to have variable substitution within the CONNECTION string for CONNECTIONTYPE WMS?
> Here is a layer section from my mapfile:
> LAYER
> NAME farm
> GROUP "CRS"
> TYPE POLYGON
> STATUS ON
> CONNECTION "http://remoteserver/cgi-bin/mywms.exe?farmid=%farmid%"
> CONNECTIONTYPE WMS
> METADATA
> "wms_srs" "EPSG:2193"
> "wms_name" "farm"
> "wms_server_version" "1.1.1"
> "wms_format" "image/png"
> "wms_exceptions_format" "application/vnd.ogc.se_xml"
> END
> END
> I am wanting to hit my cascading Mapserver WMS and pass it a farmid value which should then be passed through to the other WMS server for processing.
> Many thanks,
> Robert Sanson
This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.
This message has been scanned for Malware and Viruses by Websense Hosted Security.
www.websense.com
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
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