RES: RES: RES: [Mapserver-users] Query on symbols

Eric Bridger eric at gomoos.org
Wed Apr 14 11:23:23 PDT 2004


On Wed, 2004-04-14 at 13:35, Murilo Lacerda Yoshida wrote:
>   Ok, so I can't do queries on symbols. But I still have a point that
> have meaningful data, and I want to show that data, if the user clicks
> on that point.
>   Do you have a solution for this problem? I can't let the point the way
> it is, just a point, because in this case the user won't be able to
> click on the point, it is too small...
>   I was thinking in emulate a symbol, using a polygon shape, but in this
> case if I zoom in the "symbol" would be too big...
>   I'm a little lost, don't know if you noticed it...
>   Thanks again,
>     Murilo
> 
> -----Mensagem original-----
> De: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu] Em nome de David
> Fawcett
> Enviada em: quarta-feira, 14 de abril de 2004 12:29
> Para: murilo.yoshida at agx.com.br; eric at gomoos.org
> Cc: mapserver-users at lists.gis.umn.edu; palle at mail-online.dk
> Assunto: Re: RES: RES: [Mapserver-users] Query on symbols
> 
> No
> 
> David J. Fawcett
> MN Office of Environmental Assistance
> 
> >>> "Murilo Lacerda Yoshida" <murilo.yoshida at agx.com.br> 4/14/2004
> 10:04:44 AM >>>
>   Ok, I have the querybypoint implemented into my code. I was
> wondering
> if I click on a symbol, it will work as if I clicked on a shape... So
> that I can do a query by clicking on a symbol.
>   Thanks,
>     Murilo

I'm not sure why David said no. Perhaps I don't understand what you mean
by querying a Symbol.  querybypoint() is querying the layer based on
where the user clicked the map. Clicking on a symbol just gives you the
map x and y coordinates, which you must transform into longitude /
latitude and then pass to querybypoint. It will return the index of any
shapes nearby that point whether they are points, lines or polygons.

Is something not working for you?  There are Perl examples of this in
the wiki.





More information about the MapServer-users mailing list