[Tilecache] TileCache image layer - how to split whole image

martin g myint101 at gmail.com
Wed Oct 28 12:18:07 EDT 2009


Hi,

I'm trying to set up a TileCache layer for an image file - that looks like
this:

[book]
type = ImageLayer
file = /srv/www/htdocs/book/data/map0/test.jpg
bbox= 447150, 348877.5, 685150, 506850.000
resolutions =
297.4998087945476,198.3297956796881,132.21962860140056,91.5397866796263,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216,66.11475318692216
srs = EPSG:31297
extension = jpg
jpegquality = 85

In Openlayers I create a layer that looks like this one below:

var mylayer = new OpenLayers.Layer.WMS("book", cgi , {layers: 'book',
maxExtent: ''}, {isBaseLayer: true});

(the cgi parameter is the url to the tilecache.cgi)

Now the problem is that tilecache does not split the image into 256*256
tiles but creates several 256*256 tiles containig the whole image. If I use
singletile the whole thing is working, but I want the whole image to be
split up in several tiles.

I hope this is enough information and thanks for help in advance.

best regards,

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20091028/77a90723/attachment.html


More information about the Tilecache mailing list