[Mapserver-users] querying WMS layer

Daniel Morissette dmorissette at dmsolutions.ca
Thu Jun 3 08:23:21 PDT 2004


bartvde at xs4all.nl wrote:
> 
>>If so, is there some other prescribed way of displaying a WMS layer, and
>>being able to query that layer?
> 
> 
> Not that I know off, you could do some PHP/Mapscript though to get the
> connection of the layer (i.e. the URL of the WMS server) and build the
> GetFeatureInfo request yourself. This is the approach that Chameleon
> follows.
> 

Actually in MapScript there is a layerObj->getWMSFeatureInfoURL() method 
that will build the URL for you.  All that's left to do for the script 
is to call the URL and to display or try to make sense of the result 
(the hard part).

-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the MapServer-users mailing list