[Mapserver-users] Point whitin polygon
Eric Bridger
eric at gomoos.org
Tue Apr 1 01:17:28 PST 2003
Use:
$map->queryByPoint($click_pt,$mapscript::MS_MULTIPLE,0) to get all the
polygons. Also may sure all your layers in the map file define a
TEMPLATE "fake.html", even if you are not using the template to display
your query results.
I'm not sure about your postgis question.
On Tue, 2003-04-01 at 13:48, Marc Drouin wrote:
> Hi group,
>
> I've searched the list for information on how to select objets by clicking
> on the map. I found that querrybypoint seems to be the way to go. However
> I'm am not sure if it will doi the work. What i'm trying to do is select
> all the polygons which includes a point selected by the user. Like I said,
> I do not know is querrybypoint will return all the polygons or just one.
>
> Secondly, i'm using postgis to store the geometry of the polygon. Is it
> better to do the geographical search within the database using postgis
> functions or use mapserver.
>
> As you probably can tell, I'm new at this so please be indulgent.
>
> TIA
>
> Marc.
More information about the MapServer-users
mailing list