[Tilecache] Non Lat Long Projection

Christopher Schmidt crschmidt at metacarta.com
Sun Jul 29 06:46:01 EDT 2007


On Sun, Jul 29, 2007 at 10:42:18AM +0100, Stuart Eve wrote:
> Dear all
> 
> I have been trying to get my tilecache working with an epsg:3034 WMS source.
> I have been having problems getting my openlayers to show any tiles (and was
> getting the 'can't get tile index' problem even though my maxResolution and
> bounding boxes were the same). I have recently upgraded to the beta version
> to see if any bug fixes might have helped.
> 
> However, I am now getting a different message:
> 
> Mod_python error: "PythonHandler TileCache.Service"
> 
> Traceback (most recent call last):
> 
>   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
> 299, in HandlerDispatch
>     result = object(req)
> 
>   File "/srv/www/htdocs/fasti/v2/mapserver/tilecache/TileCache/Service.py",
> line 522, in handler
>     return modPythonHandler(apacheReq, theService)
> 
>   File "/srv/www/htdocs/fasti/v2/mapserver/tilecache/TileCache/Service.py",
> line 432, in modPythonHandler
>     except Layer.TileCacheException, E:
> 
> AttributeError: 'module' object has no attribute 'TileCacheException'
> 
> 
> I am using Tilecache 1.9-rc3 on Unix with Openlayers 2.4 under mod_python.

Strange. Looks like something I broke in the mod_python setup, though
I've tested it on mod_python myself with no problems.

I'll get it fixed in an rc4 -- I'd offer you a fix, but I'm not sure
what it is off the top of my head. 

-- Chris

> Can anyone point me in the right direction?
> 
> Thanks
> 
> Stuart
> 
> My openlayers definition is:
> 
>  var wms_cache_layer = new OpenLayers.Layer.WMS( "Fasti Global Mosaic",  "
> http://www.fastionline.org/v2/mapserver/tilecache/tilecache.py?", {layers:
> 'fasti', format: 'image/png; mode=24bit', maxResolution:'
> 27086.765625',maxExtent:
> new OpenLayers.Bounds (256000,-1385000,733013,5549212) } );
> 
> Tilecache.cfg is:
> 
> [fasti]
> type=WMSLayer
> url=http://map1.fastionline.org/v2/fasti_wms.php ?
> srs=EPSG:3034
> extension='png'
> bbox=256000,-1385000,733013,5549212
> maxResolution=27086.765625
> levels=14
> layers=dem_base_west,dem_base_east

> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache


-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list