[mapserver-users] adhoc requests to the end of the WMS requestwithin mapserver map file

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Tue Aug 19 04:46:43 PDT 2008


John: you could add the extra keyword-value pairs to the CONNECTION object, i.e.:

  CONNECTION "http://localhost:8080/geoserver/wms?filter=fieldname=fieldvalue"

Hope this helps

..Tom




-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org on behalf of John Mitchell
Sent: Mon 18-Aug-08 19:10
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] adhoc requests to the end of the WMS requestwithin mapserver map file
 
Below I have listed a sample layer section which does a WMS call to a local
geoserver and this work fine, but what I would like to now do is be able to
add to this WMS request a filter parameter (e.g.
&filter=fieldname=fieldvalue) which geoserver can accept.
How can I add adhoc requests like the filter example listed above to the end
of the WMS request when mapserver is making a WMS request?

Thanks,

John


LAYER
  # name of layer
  NAME "vector:sangis_unexploded_ordnance_child"
  GROUP "SanGIS_parent"

  # what type of data is this?
  TYPE RASTER

  # always returned with interface
  STATUS ON

  TRANSPARENCY 100

  CONNECTION "http://localhost:8080/geoserver/wms"
  CONNECTIONTYPE WMS
  METADATA
    "wms_srs"             "EPSG:4326"
    "wms_name"            "vector:sangis_unexploded_ordnance"
    "wms_server_version"  "1.1.1"
    "wms_format"          "image/png"
    "wms_style"           "sangis_unexploded_ordnance_style"
  END
 END


-- 
John J. Mitchell




More information about the MapServer-users mailing list