[OpenLayers-Users] caching script

Tim Langlois tlanglois at archetypecorp.com
Thu Oct 19 15:01:50 EDT 2006


I have a modified tile.php that breaks the image path into more
subdirectories to avoid the unix file limit (similar to what you did).
Works fine with ka-maps and openlayers.  I ran into this limitation when
generating images for US data.

Tim


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





More information about the Users mailing list