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

Murilo Lacerda Yoshida murilo.yoshida at agx.com.br
Wed Apr 14 12:37:55 PDT 2004


  By saying querying on a symbol I mean that when the user clicks on the
symbol, it would be like clicking on the point.
  Another problem is that under the point I have a polygon shape that
can be queried, so by using querybypoint with tolerance > 0, I guess
that that was your suggestion, I don't know if I would be able to know
which one is the point shape.
  And Ken-Ichi, thanks for the suggestion, but I'm not using DHTML, and
probably won't... company rules I guess.
  Thanks,
     Murilo

-----Mensagem original-----
De: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] Em nome de Eric Bridger
Enviada em: quarta-feira, 14 de abril de 2004 15:23
Para: murilo.yoshida at agx.com.br
Cc: Mapserver List
Assunto: Re: RES: RES: RES: [Mapserver-users] Query on symbols

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.


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users







More information about the MapServer-users mailing list