catch Query result - No matching record(s) found

Tyler Mitchell tylermitchell at SHAW.CA
Mon Jul 18 18:57:59 EDT 2005


Hi David, There are templates you can provide in the WEB object, called EMPTY or ERROR.  
See:
http://ms.gis.umn.edu/docs/reference/mapfile/web

Tyler

----- Original Message -----
From: David Stajan <dls at INFORMGIS.COM>
Date: Monday, July 18, 2005 1:18 pm
Subject: [UMN_MAPSERVER-USERS] catch Query result - No matching record(s) found

> Hi Group,
> 
> I was wondering if there is any flexability in what you can do 
> with the
> output that is generated when a query results in no features found.
> 
> Currently I get this type of output:
> <BODY BGCOLOR="#FFFFFF">
> msQueryByPoint(): Search returned no results. No matching 
> record(s) found.
> <br>
> </BODY>
> 
> Mapserver seems to completely ignore any of the defined templates 
> if the
> users query returns no results.  Is there another type of template 
> thatcan be defined?  I personally don't like this default output 
> and would
> like to be able to customize it or be able to trap it and deal 
> with it
> through code somehow.  I'm currently not using mapscripts, only 
> cgi and
> javascript, but am intrested in any solutions that one might have.
> 
> Thanks,
> DaviD
> 



More information about the mapserver-users mailing list