Performing queries with mode=nquery on raster layers raises a runtime error.
Windows signals an error on libmap.dll at offset 000a26b7 (if can help).
Tested un Windows 2003 server with MapServer 5.0, installed from ms4w version 2.2.6 (September 18 2007).
Query on raster layers works fine for MapServer 4.10.
Example of query:
http://myserver/cgi-bin/mapserv.exe?mode=nquery&mapxy=2343893.06%20205111754.6&map=C%3A%5Cmaptest.map
Map file:
MAP
SIZE 332 322
EXTENT 2313596.6 5047374.695 2435539.84 5169317.935
PROJECTION
"init=epsg:26592"
"units=m"
"pm=greenwich"
"lon_0=15.0"
END
WEB
MINSCALE 10
MAXSCALE 1000000000
LOG "C:\Temp\mapserver.log"
IMAGEPATH "C:\Temp\web\"
IMAGEURL "/webmaps/"
END
LAYER
NAME "DTM"
DEBUG ON
STATUS DEFAULT
DATA "C:\DTM_RegioneColore.tif"
TYPE RASTER
TEMPLATE "C:\DTMMapQueryTemplate.html"
CLASS
NAME "DTM"
END
END
END
File DTMMapQueryTemplate.html
<result>
<layer name="DTM">
<extent>
<top>[shpmaxy]</top>
<left>[shpminx]</left>
<bottom>[shpminy]</bottom>
<right>[shpmaxx]</right>
</extent>
</layer>
</result>