msQueryByRect Problem

Dave Mitch dave at DAVEMITCH.COM
Thu Nov 17 08:00:20 PST 2005


Hi Steve,

The URL I am using is as follows
(I have split it up for easier reading)

http://ldnpc01/scripts/mapserv.exe?mode=NQUERYMAP&
map=C:/Inetpub/wwwroot/mapfiles/uk.map&
mapext=304365+392165+309842+386688&
mapsize=200+200&
qlayer=Addresses&
layers=Roads+Addresses&
imgext=305186+388824+309787+386058&
map_web_empty=http://ldnpc01/scripts/mapserv.exe?
mapext=304365+392165+309842+386688&
mapsize=200+200&layers=Roads+Addresses&
map_mode=MAP&
map=C:/Inetpub/wwwroot/mapfiles/uk.map

The idea was that if the result cam back as empty the "map_web_empty" would
return a normal image, instead of the message.

I think it was getting confused with the same parameters appearing.

(I now have a work around where I have an HTTP handler, which checks if the
contentType result is "text/html", then call the mode=map url instead of
nquerymap, but this still seems an unnecessary step)

Incidentally the imgext parameter doesn't seem to work, is the only option
to use the imgbox parameter with pixels?



More information about the MapServer-users mailing list