[OpenLayers-Users] Layer Query with Mapserver: How to do?
mpettis
matthew.pettis at gmail.com
Thu Nov 20 16:48:34 EST 2008
Thnaks Arnd,
OK, this does make sense, but in order to do this, I have to have openlayers
pass some of this info back to me (like the current map extent, image
extent, img.x and img.y) in order for me to craft this, and this is the part
I am struggling with -- are these things in the element e that gets passed
to the function in the third slot of map.event.register? And, if so, what
happens when, when I have a single tile, and I grab and pan the map, and
then click? The polygon that was under 0,0 may not be the same one under
0,0 after I've panned the map without a redraw. How does this account for
this situation? Or how do I account for it?
Thanks,
Matt
Arnd Wippermann wrote:
>
> You have to use other parameters to request MapServer directly
>
> This is a sample request for mode=nquery (returns all matching results)
>
> http://.../mapserv.exe?map=test.map
> &mode=nquery
> &map_imagetype=png
> &map_projection=init=EPSG:31466
> &mapext=2567281.013792286+5671394.760157772+2592808.0000077137+5690127.25004
> 2227
> &map_size=804+590
> &program=/mapserver/scripts/mapserv.exe
> &map_web_imagepath=/temp/
> &map_web_imgtmp=/temp/
> &imgext=2567281.013792286+5671394.760157772+2592808.0000077137+5690127.25004
> 2227
> &imgxy=398+296
> &img.x=398
> &img.y=296
> &layers=LAYER1+LAYER2
>
> Look here to get a list of the possible MapServer CGI parameters:
>
> http://mapserver.gis.umn.edu/docs/reference/cgi/controls
>
> Arnd Wippermann
>
>
--
View this message in context: http://www.nabble.com/Layer-Query-with-Mapserver%3A-How-to-do--tp20594503p20610674.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list