RES: [Mapserver-users] Shape Index ...
Murilo Lacerda Yoshida
murilo.yoshida at agx.com.br
Fri Dec 12 09:01:27 PST 2003
I am using the querybypoint method ... but it does not do what I want.
Let me explain it better. I have a shapefile with about 150-200
polygons. I started using the querybypoint method, and then I saw that
it does not return to me the index of the polygon shape in the
shapefile. It just does something with the querymap...
I need to know the index of the polygon shape into the shapefile. I
have how to get this index, in fact I am getting it. But to get it the
way I'm doing I have to do a while, and in the while get polygon by
polygon and check if the point(x,y) is into that polygon, and only then
I will have the index of the shape in the shapefile...
So, I was wondering if there was a easier way, or a smarter way...
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 Steve Lime
Enviada em: quinta-feira, 11 de dezembro de 2003 21:47
Para: murilo.yoshida at agx.com.br; mapserver-users at lists.gis.umn.edu
Assunto: Re: [Mapserver-users] Shape Index ...
The queryByPoint method (I think that's the name) or the query mode with
the CGI allow point-based queries. The shape index is carried by all the
resulting shapes in the index property. In query templates you can get
to the index with the [shpidx] tag.
Steve
>>> "Murilo Lacerda Yoshida" <murilo.yoshida at agx.com.br> 12/11/2003
2:18:52 PM >>>
Hi All,
Is there a function that you pass a point(x, y) and it returns you
the
index of the shape you've clicked?
Thanks,
Murilo
_______________________________________________
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