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: [EMAIL PROTECTED] on behalf of John Mitchell
Sent: Mon 18-Aug-08 19:10
To: [email protected]
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

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to