how to suppress warning message?

Nate Reed nate at SEASTAR.JPL.NASA.GOV
Mon Jul 11 18:21:22 EDT 2005


Thank you - that solves my problem.

On Mon, 11 Jul 2005, Dylan Keon wrote:

> 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
> 

-- 
Nate Reed
Physical Oceanography DAAC
Jet Propulsion Lab / Raytheon ITSS
(626)744-5528  nate at seastar.jpl.nasa.gov



More information about the mapserver-users mailing list