[Tilecache] BBOX settings

R. Ortner reinhard.ortner at edu.fh-kaernten.ac.at
Fri Jan 18 03:44:23 EST 2008


Hi,

trying to set up Tilecache with an OL Application. This is my OL part:



> var options = { theme: null,		//This will disable the default method of
> loading the stylesheet and allow you to declare style rules in your own
> linked stylesheets or style tags
> 							scales: [1000000, 600000, 250000, 125000, 75000, 30000, 10000], 
> 							projection:'EPSG:31258', 'units':'m', 
> 							maxExtent: new OpenLayers.Bounds(390730, 119473, 594760, 238680), 
> 							maxResolution:1337.385346, 
> 							minResolution:13.373853,
> 						
> resolutions:[1337.385346,802.431207,334.346336,167.173168,100.303901,40.121560,13.373853],
> 							minExtent: new
> OpenLayers.Bounds(491033.1467577341,177885.87564293714,494456.8532422659,180267.12435706286),
> 							controls: [new OpenLayers.Control.MouseDefaults()]  // Erweiterte
> Pan/Zoomkontrolle -> Zoombar
> 			};  
> 

and this is my tilecache.cfg part:



> [PolitischeGemeinden]
> type=WMSLayer
> layers=PolitischeGemeinden
> url=http://gis.ktn.gv.at/wmsconnector/com.esri.wms.Esrimap/geoland2?transparent=true
> extension=png
> debug=off
> srs=EPSG:31258
> levels=7
> extent_type=loose
> BBOX=390730, 119473, 594760, 238680
> #321559.67577340844,60014.06429371526,663930.3242265915,298138.9357062847
> maxresolution=1337.385346
> resolutions=1337.385346,802.431207,334.346336,167.173168,100.303901,40.121560,13.373853
> 
> 

The Problem is now, with the BBOX like the maxExtent from the OL file, I get
only Pink Tiles and when I call this Layer as GetMap Request I get this
error:


>   for the first ZoomLevel:
> An error occurred: Current x value 321559.675773 is too far from tile
> corner x 390730.000000
> 
>   for the second ZoomLevel:
> An error occurred: Current y value 107639.038576 is too far from tile
> corner y 119473.000000
> .
> .
> .
> 

How can I set the BBOX (in the tilecache.cfg) to several values so that for
every ZoomLevel the correct BBOX value is used?
Or can I set the BBOX to a "standard" value for all ZoomLevels? 
-- 
View this message in context: http://www.nabble.com/BBOX-settings-tp14948015p14948015.html
Sent from the TileCache mailing list archive at Nabble.com.




More information about the Tilecache mailing list