how to suppress warning message?

Dylan Keon dbkeon.ml at GMAIL.COM
Mon Jul 11 18:17:55 EDT 2005


On 07/11/2005 02:48 PM, Nate Reed wrote:
> When querying into a region that contains no data MapServer displays the 
> following error message:
> 
> Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. 
> in /home/www/doc/nate/dev/MapController.php on line 498
> 
> Is there a way to turn this message off?  I don't want to redirect to 
> another url as previously suggested and there is no reason to treat this 
> as an error.  

In PHP you can use '@' to suppress error messages:

   @$map->queryByPoint($click_pt, MS_MULTIPLE, -1);

--Dylan



More information about the mapserver-users mailing list