TileCache image layer - how to split whole image

1 message Options
Embed this post
Permalink
Martin G-2

TileCache image layer - how to split whole image

Reply Threaded More More options
Print post
Permalink
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


_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache