sigh, :-)<br>so that does not require an exisiting ka-map cache?<br><br><br><div><span class="gmail_quote">On 10/19/06, <b class="gmail_sendername">Paul Spencer</b> <<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Brent,<br><br>Chris hooked up a 'kamap' cache layer<br><br>Cheers<br><br>
Paul<br><br>On 19-Oct-06, at 1:39 PM, Brent Pedersen wrote:<br><br>> hi, i have a python caching script hacked up for openlayers here:<br>> <a href="http://128.32.253.248/openlayers/tilecache.txt">http://128.32.253.248/openlayers/tilecache.txt
</a><br>> and demo here: <a href="http://128.32.54.87/openl.html">http://128.32.54.87/openl.html</a> (non-cached tiles are<br>> _sloooow_ )<br>><br>> it splits into directories for caching by the url:<br>> &layers=abcd&request=wms becomes: /layers__abcd/request_wms/
<br>> and it splits up the spatial parameters so that there are never ><br>> 1000 files<br>> per directory. meaing &x=12345 becomes /x_12/345/ where x is the<br>> tile_number.<br>><br>> if the files are saved in a web dir, once all tiles are known to be
<br>> cached, you can potentially circumvent the caching script (and the<br>> WMS) by just creating the url to the cached image directly in<br>> javascript... [i have not implemented this yet, but should be < 15
<br>> lines of .js]<br>><br>> right now works for WMS and MapServer after modification of /<br>> OpenLayers/Tile/Image.js (copy and paste from the docstring in the<br>> python code linked above and change the url to point to your
<br>> version of tilecache.py ).<br>><br>> It could be better integrated into the openlayers api but then it<br>> wouldnt be a hack.<br>> and i thought before i put more time into it, i thought i'd check<br>
> to see if this has already been done for OL. or if anyone has ideas.<br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@openlayers.org">Users@openlayers.org
</a><br>> <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br><br>+-----------------------------------------------------------------+<br>|Paul Spencer
<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a> |<br>+-----------------------------------------------------------------+<br>|Chief Technology Officer |<br>|DM Solutions Group Inc
<a href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a> |<br>+-----------------------------------------------------------------+<br><br><br><br><br></blockquote></div><br>