React on query error

Stefan Schwarzer stefan.schwarzer at GRID.UNEP.CH
Wed May 17 08:48:46 EDT 2006


Hi,

my application offers the possibility to preselect countries that  
should be displayed on the map. Thus, instead of having all  
countries, I get only these preselected ones mapped; the others are  
grayed out. But if a user now uses the query tool and clicks on one  
of those not-preselected countries, than an mapscript error occurs  
(naturally). Is there a way to react on such an error warning and  
continue at another point, so that this "problem" is just ignored and  
the application can continue to work?

		if (!$imgbox)
			$map -> queryByPoint($click_pt, MS_MULTIPLE, -1); // here is then  
the error
		else
			$map -> queryByRect($click_rt);

"Warning: [MapServer Error]: msQueryByPoint(): No matching record(s)  
found. in /www/geodataportal/htdocs/mod_map/etc/php/query.php on line  
42"

Thanks for any help!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060517/13b917be/attachment.html


More information about the mapserver-users mailing list