[Tilecache] tilecache, mapnik & projection issue

Xin xin at zenpow.com
Thu Mar 27 13:38:29 EDT 2008


I am having problems getting OpenLayers to use tilecache and Mapnik.

The image /1.0.0/google-tiles/5/17/18.png from Tilecache, is different to
the image /5/17/18.png generated from generate_tiles.py.

Is the way generate_tiles.py saves tiles compatible with Tilecache?

My map is in Google projection.

My OpenLayers Tilecache layer:

var mapnik = new OpenLayers.Layer.TileCache(
        "layer name",
        "http://localhost:8080/1.0.0/google-tiles/",
        'google-tiles',
        {
            type: 'png',
            getURL: getTileURL,
            displayOutsideMaxExtent: true,
        }
    );


My tilecache.cfg:
[cache]
type=Disk
base=/tmp/tilecach

[google-tiles]
type=MapnikLayer
mapfile=/home/xin/mymap.xml
bbox=-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892
maxResolution=156543.0339

I am pretty stuck at this. Any help is really appreciated.

Xin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20080327/fc22130c/attachment.html


More information about the Tilecache mailing list