[Tilecache] Problems upgrading from 2.04 to 2.10

Derek Watling derek at cmainfo.co.za
Wed Jan 28 03:42:54 EST 2009


I am running TileCache on Windows/IIS and seeding my cache for performance.
I'm also using metaTiles. I tried upgrading from 2.04 to 2.10. After much
struggling with editing the command for tilecache_seed to supply the
bounding box I finally got it to generate tiles, but it was generating more
tiles (I presume due to trying to pad the area?) and when viewing the map I
just got broken images!

I am using Manifold 8 witn a custom WMS page I have written in .NET. My map
is projected in Transverse Mecator with the centre meridian 19°E. I'm not
sure if the projection code (EPSG:9807) is correct, but my WMS page does not
use it as the bbox and resolutions are in native coordinates. The setup
below works when using TileCache 2.04.

tilecache.cfg
-------------------------------
[cache]
type=Disk
base=C:\Inetpub\wwwroot\TileCache\Cache

[Base]
type=WMSLayer
bbox=-63753,-3803702,558,-3704986
resolutions=42.3333104733457,10.5833276183364,3.52777587277881,0.881943968194702,0.352777587277881
srs=EPSG:9807
layers=StreetNames,Streets,Suburbs,Municipality
url=http://localhost/CMAInfo/Mapping/WMS.aspx?Tranparent=False&
extension=gif
metaTile=yes
metaSize=5,5
mettaBuffer=0

Command to seed cache
-------------------------------
tilecache_seed.py "tilecache.cgi" Base 0 5 "-63753,-3803702,558,-3704986"

Javascript to initialise map
-------------------------------
    var bbox = new OpenLayers.Bounds(bbox = -63753, -3803702, 558,
-3704986);
    var options = 
    {
        resolutions: new Array(42.3333104733457, 10.5833276183364,
3.52777587277881, 0.881943968194702, 0.352777587277881),
        'maxExtent': bbox,
        restrictedExtent: bbox,
        units: 'm',
        projection: 'EPSG:9807'
    };

    map = new OpenLayers.Map($('<%=pnlMap.ClientID%>'), options);

    var baseLayer = new OpenLayers.Layer.WMS(
        "Cape Metropolitan Council",
        "http://dev/Tilecache/tilecache.py?",
        {
            layers: "Base",
            'maxExtent': bbox,
            format: "image/gif"
        }
    );
    baseLayer.setZIndex(0);
    baseLayer.setVisibility(true);
    baseLayer.setIsBaseLayer(true);
    baseLayer.displayOutsideMaxExtent = 0;
    baseLayer.transitionEffect = "resize";
    map.addLayer(baseLayer);

-------------------------------

I dowloaded TileCache 2.10 and copied the files into the directory where
2.04 is currently set up and chaged my seed command to
tilecache_seed.py Base 0 5 -b -63753,-3803702,558,-3704986
Is this correct and is there anything else I should be doing?
-- 
View this message in context: http://n2.nabble.com/Problems-upgrading-from-2.04-to-2.10-tp2230993p2230993.html
Sent from the TileCache mailing list archive at Nabble.com.




More information about the Tilecache mailing list