[mapserver-users] interesting thread on JSON-ish output from MapServer
Steve Lime
sdlime at gmail.com
Sun Sep 11 10:32:26 PDT 2011
Actually the WEB object QUERYFORMAT (I believe) parameter can be used to set mime type for old style templates. Default is text/html. That same parameter can alternatively reference an output format, even an image-based one.
Steve
Sent from my iPad
On Sep 11, 2011, at 7:58 AM, Richard Greenwood <richard.greenwood at gmail.com> wrote:
> On Sat, Sep 10, 2011 at 10:42 PM, Mr. Puneet Kishor <punk.kish at gmail.com> wrote:
>> [http://osgeo-org.1803224.n2.nabble.com/GeoJSON-output-from-MapServer-td3188987.html]
>>
>> If I call my template "template.html" I get the output, but I get mime type warning and a syntax error in parsing the output.
>
> Where is the warning originating? I have no problem consuming
> mapserver template based JSON in jQuery, despite the incorrect mime
> type. I do not know of any way to set the mime type of a mapserver
> template.
>
> Rich
>
>
> --
> Richard Greenwood
> richard.greenwood at gmail.com
> www.greenwoodmap.com
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list