[mapserver-dev] Zipping templated output...
Steve Lime
Steve.Lime at dnr.state.mn.us
Thu Jan 22 12:39:36 EST 2009
Still seems doable albeit via a different mechanism. I wonder if we could write the raw file
to the temp directory used for images (IMAGEPATH), compress (provide the zip utility path
in a format option) and then redirect the browser to the kmz file.
Steve
>>> On 1/21/2009 at 9:34 AM, in message <20090121153437.GK10998 at metacarta.com>,
Christopher Schmidt <crschmidt at metacarta.com> wrote:
> On Tue, Jan 20, 2009 at 09:56:16PM -0600, Steve Lime wrote:
>> Anyone have any ideas on how to run templated output (I'm thinking KML for
> starters) though
>> a compression step to create kmz? It would seem that with CGI it would have
> to be done in
>> the MapServer code, perhaps triggered by a format option.
>
> KML->KMZ is a really bad place to start, because KML is unusual: instead
> of a compressed stream, it's a zipfile with a specifically named file
> inside of it (contrary to how most compression on the web works). Using
> mod_deflate on Apache works well for most template content from
> MapServer, but KMZ is a whole different ball of wax.
>
> Regards,
More information about the mapserver-dev
mailing list