[Chameleon] WMS queryByPoint

Senaratne,Udesh [Ontario] Udesh.Senaratne at ec.gc.ca
Tue Dec 21 09:30:46 EST 2004

Hi list,

Thanks for you reply Paul.

The idea was, if we have "layer A" consisting of Polygons, and "layer B"
consisting of Points, and the user clicks on Geo-coordinate (x,y) then
the Query returns:
1. The polygon feature in layer A that contains the geo-coordinate (x,y)
2. Return all the Points in Layer B be whose Geo-coordinate is contained
in the Polygon obtained from 1.

An example would be, if I clicked somewhere on a Province (suppose
polygon layer), I obtain all the cities (a point layer) belonging to
that province.


-----Original Message-----
From: Paul Spencer [mailto:pspencer at dmsolutions.ca] 
Sent: Monday, December 20, 2004 3:01 PM
To: Senaratne,Udesh [Ontario]
Subject: Re: [Chameleon] WMS queryByPoint


unfortunately WMS doesn't work like that, you don't have any access to 
the actual underlying data.



Senaratne,Udesh [Ontario] wrote:
> Hello,
> In class,/ MapQuery::executePointQuery($nX, $n)/ [file ...
> chameleon/htdocs/common/wrapper/map_query.php]/,/ the mapscript member

> fucntion/ getWMSFeatureInfoURL(...)/ is used to obtain results when
> layer connection type is MS_WMS. 
> Does anyone know if it is possible to use the php-mapscript function/
> layerObj::queryByPoint(pointObj, multiple ,buffer)/ to do the same
> for WMS connections.  Chameleon uses this method for none WMS 
> connections.  When I tried doing this for WMS connections, I got 0 
> results for all layers when there should have been more.
> What I want to do eventually, is to access the shapeObj of the results
> so that I can use the php-script function : 
> s/hapeObj::contains(pointObj)/ .
> Thanks
> Udesh
> ----------------------------------------------------------------------
> --
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/chameleon

|Paul Spencer                           pspencer at dmsolutions.ca   |
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|

More information about the Chameleon mailing list