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> &lt;<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca
</a>&gt; 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>&gt; hi, i have a python caching script hacked up for openlayers here:<br>&gt; <a href="http://128.32.253.248/openlayers/tilecache.txt">http://128.32.253.248/openlayers/tilecache.txt
</a><br>&gt; 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>&gt; _sloooow_ )<br>&gt;<br>&gt; it splits into directories for caching by the url:<br>&gt; &amp;layers=abcd&amp;request=wms becomes: /layers__abcd/request_wms/
<br>&gt; and it splits up the spatial parameters so that there are never &gt;<br>&gt; 1000 files<br>&gt; per directory. meaing &amp;x=12345 becomes /x_12/345/&nbsp;&nbsp;where x is the<br>&gt; tile_number.<br>&gt;<br>&gt; if the files are saved in a web dir, once all tiles are known to be
<br>&gt; cached, you can potentially circumvent the caching script (and the<br>&gt; WMS) by just creating the url to the cached image directly in<br>&gt; javascript... [i have not implemented this yet, but should be &lt; 15
<br>&gt; lines of .js]<br>&gt;<br>&gt; right now works for WMS and MapServer after modification of /<br>&gt; OpenLayers/Tile/Image.js&nbsp;&nbsp;(copy and paste from the docstring in the<br>&gt; python code linked above and change the url to point to your
<br>&gt; version of tilecache.py ).<br>&gt;<br>&gt; It could be better integrated into the openlayers api but then it<br>&gt; wouldnt be a hack.<br>&gt; and i thought before i put more time into it, i thought i'd check<br>
&gt; to see if this has already been done for OL. or if anyone has ideas.<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org
</a><br>&gt; <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br><br>+-----------------------------------------------------------------+<br>|Paul Spencer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>&nbsp;&nbsp;&nbsp;&nbsp;|<br>+-----------------------------------------------------------------+<br>|Chief Technology Officer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>|DM Solutions Group Inc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a> |<br>+-----------------------------------------------------------------+<br><br><br><br><br></blockquote></div><br>