msQueryByRect Problem

Steve Lime steve.lime at DNR.STATE.MN.US
Thu Nov 17 11:26:22 EST 2005


Did yo try escaping the &'s and ='s in the URL you are passing? Also, I believe the EMPTY tag does support some template substitution so you may simply be able to do something like:

  EMPTY "http://ldnpc01/scripts/mapserv.exe?mapext=[mapext]&mapsize=[mapwidth]+[mapheight]&layers=[layers]&map_mode=MAP&map=[map]"

Steve

>>> Dave Mitch <dave at DAVEMITCH.COM> 11/17/05 10:00 AM >>>
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