djangosnippets.org: Latest snippets tagged with 'kmz'https://djangosnippets.org/tags/kmz/2011-02-19T12:32:15.609365-06:00KMLMiddleware
2011-02-19T12:32:15.609365-06:00takinbohttps://djangosnippets.org/snippets/2363/<p>This is a slight modification from the original version at <a href="http://djangosnippets.org/snippets/709/">http://djangosnippets.org/snippets/709/</a> and is a middleware designed to output the right headers for generated KML or KMZ content. In the case of KMZ content, it handles the compression of the original KML content into the KMZ format.
</p>
<p>This version applies the …</p>
Freely redistributableKMZMiddleware
2008-04-17T07:31:31.411853-05:00giovabalhttps://djangosnippets.org/snippets/709/<p>Serving KML from your Django webapp to feed Google-earth isn't that hard, it's just some fun with templates, plus some headers.
But serving a compressed version of your KML needs a trick.
</p>
<p>KMZ isn't just zipped KML. A good KMZ file is a zipped file that decompress to a file …</p>
Freely redistributable