[mapserver-users] Variable substitution in CONNECTION string on cascading WMS?

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Tue Jan 28 07:26:56 PST 2014


Those need to be removed, there's a validation section a little later in that same document that takes precedence. I'll create a documentation ticket.

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (Tike)
Sent: Tuesday, January 28, 2014 8:35 AM
To: Mapserver Users (mapserver-users at lists.osgeo.org)
Subject: Re: [mapserver-users] Variable substitution in CONNECTION string on cascading WMS?

That was my impression too but paragraph "Parameters Supported" in http://mapserver.org/cgi/runsub.html  emphasizes just these two:
*LAYER: DATA (must validate against DATAPATTERN
*OUTPUTFORMAT: FORMATOPTION: FILENAME (must have a MAP VALIDATION pattern)

-Jukka-

Lime, Steve D wrote:
> 
> 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
> 

_______________________________________________
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