[Tilecache] Adapting TileCache as a Java servlet
Chris Holmes
cholmes at openplans.org
Mon Mar 26 11:52:20 EDT 2007
Awesome! Would love to test it out. Ideally I'd like to make it a
module of GeoServer that we can include by default.
How's the performance under Jython? That was one of my big worries with
this approach.
The other thing I'd like to do is play with alternate cache
implementations, leverage JBossCache or OSCache to get LRU algorithms
and distributed caching. This might actually work well with your #2,
since those caches have a lot of control over max size and all that.
Chris
Jon Blower wrote:
> Hi all,
>
> For reasons that I went through in a previous post on the OpenLayers
> mailing list (I think Christopher copied this list too), I'm looking
> to integrate TileCache with my ncWMS software so that I can cache
> tiles of data arrays (rather than images), allowing the same tiles to
> be rendered in different ways.
>
> To this end, I have converted TileCache to work as a Java servlet,
> through the magic of Jython. This seems to be working fine, but it
> has raised a few questions:
>
> 1) Will TileCache cache images correctly for WMSs that support the
> TIME and ELEVATION dimensions (and indeed, other arbitrary
> dimensions)?
>
> 2) Is there any automatic management of the cache (e.g. deletion of
> old tiles to prevent the cache getting too large) or is this something
> I'd have to code myself?
>
> 3) For information: Jython 2.2b1 (the latest version) does not
> implement the os.access function. Therefore I had to make relatively
> minor edits to Cache.py to simulate this function using the
> java.io.File class. My modified Cache.py should work in both Python
> and Jython (I can post it if that would be helpful).
>
> Other than point (3) above, the TileCache code seems to work fine in
> Jython, but I've only done very limited testing. Is anyone interested
> in trying my Java version out? It would be useful to know if it works
> for others too. For those of you who know about these things, I've
> produced a WAR (web archive) file that should just drop into your
> Tomcat/Jetty/whatever web application server.
>
> Cheers, Jon
>
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cholmes.vcf
Type: text/x-vcard
Size: 282 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20070326/dfabae11/cholmes.vcf
More information about the Tilecache
mailing list