thomas portier writes:
Hello, It's not very clean but it works :
[EMAIL PROTECTED]>queryByRect($rectObj);
if ($result == MS_SUCCESS) { if other ideas, i'm interesting
Thomas Portier
http://www.sig-pyrenees.net ----- Original Message ----- From: "G" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 16, 2005 3:01 PM
Subject: [UMN_MAPSERVER-USERS] msQueryByRect Problem

I am trying to implement a Query By Rectangle tool in a mapserver app. I am using the nquerymap mode to return me an image of selected records
When there are records inside the imgext, then it highlights them properly
using the "Hilite" option in QueryMap parameter. (so far so good)
However, where there are no records, I get the warning
"msQueryByRect(): Search returned no results. No matching record(s) found.
"

but...I want to get just a normal image back with no selected records. Any ideas how I can do this?
(N.B. I have tried appending a CGI parameter "map_web_empty" and set this
to call the mode map option with same parameters, but this stops my nquery
map from working)

Thomas, For a normal map you could just set the mapextent (rectobj) for the map before doing a draw. There is no need to use a query if you're not doing a query. Lowell

Reply via email to