On Sep 11, 2011, at 12:46 PM, Steve Lime wrote:
>
>
> Sent from my iPad
>
> On Sep 11, 2011, at 9:36 AM, Mr. Puneet Kishor <[email protected]> wrote:
>
>> Partial solution (phew, for now), but other problems persist --
>>
..
>>
>>
>> One issue I have not solved -- if no result is found, MapServer sends back
>> the following --
>>
>> ----
>> <HTML>
>>
>> <HEAD><TITLE>MapServer Message</TITLE></HEAD>
>>
>> <!-- MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
>> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER
>> SUPPORTS=WMS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=GDAL INPUT
>> =SHAPEFILE -->
>>
>> <BODY BGCOLOR="#FFFFFF">
>>
>> msQueryByPoint(): Search returned no results. No matching record(s) found.
>>
>> </BODY></HTML>
>> ----
>>
>>
>> Well, that gums up the works. I really want MapServer to just send an empty
>> JSON structure, something like foo({}). Suggestions on how I can prevent
>> this HTML message from MapServer, and force it to use the template instead?
Any suggestion for the above? That is, force MapServer to not send back an
error message of the above kind. Instead, send back an empty JSON structure
based on the template?
Puneet._______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users