msQueryByRect Problem

thomas portier portier at APEM.ASSO.FR
Wed Nov 16 09:26:17 EST 2005


Hello,

It's not very clean but it works :

$result=@$layer->queryByRect($rectObj);
  if ($result == MS_SUCCESS) {

if other ideas, i'm interesting

Thomas Portier
http://www.sig-pyrenees.net

----- Original Message ----- 
From: "G" <dave at DAVEMITCH.COM>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
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)
>
>



More information about the mapserver-users mailing list