[Tilecache] Problems upgrading from 2.04 to 2.10

Christopher Schmidt crschmidt at metacarta.com
Wed Jan 28 06:25:12 EST 2009


On Wed, Jan 28, 2009 at 12:42:54AM -0800, Derek Watling wrote:
> 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'm not sure if you think that 2.10 has some fix that you need? I can't
think of one.

"Broken images" is not useful. 

"
f you have 'pink tiles':

Right click on the image, and get the image URL (via 'properties' in IE,
or 'copy image URL' in other browsers)

Paste the image URL into a browser.

Include:
 * The error message/type of error you are getting in your email to the
   mailing list.
 * The URL, with the domain name changed if you are worried about privacy.

Without this information, it is impossible to guess why there are 'pink
tiles' in your application. With this information, it is generally
relatively easy.
" -- http://trac.openlayers.org/wiki/TroubleshootingTips

> 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.
> 
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache

-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list