<br><font size=2 face="sans-serif">Hello,</font>
<br><font size=2 face="sans-serif">I read several posts on bbox and maxExtent
settings but I still can't make tilecache works.</font>
<br><font size=2 face="sans-serif">I'm confuse with maxExtent, maxResolution
and BBOX of OpenLayers mapOptions, OpenLayers layer definition, tilecache.cfg
and tilecache_seed.py.</font>
<br>
<br><font size=2 face="sans-serif">I need help for clarifying this please.</font>
<br><font size=2 face="sans-serif">Below are the different settings.</font>
<br><font size=2 face="sans-serif">thanks</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<br><font size=2 face="sans-serif">************************OpenLayers Options*********************************</font>
<br>
<br><font size=2 face="sans-serif">var mapOptions = {</font>
<br><font size=2 face="sans-serif">projection: "EPSG:900913",//google</font>
<br><font size=2 face="sans-serif">displayProjection: new OpenLayers.Projection("EPSG:4326"),
//Pour afficher les coord lat long</font>
<br><font size=2 face="sans-serif">units: "m",</font>
<br><font size=2 face="sans-serif">maxExtent: new OpenLayers.Bounds(-9239517,
5465442, -5565974, 9349764),//bbox google = bbox tilecache_seed.py</font>
<br><font size=2 face="sans-serif">maxResolution: "4892", //BEcause
of minZoomLevel: 5 for google MAp</font>
<br><font size=2 face="sans-serif">controls: [],</font>
<br><font size=2 face="sans-serif">numZoomLevels: 20 //google</font>
<br><font size=2 face="sans-serif">};</font>
<br><font size=2 face="sans-serif">//basemap</font>
<br><font size=2 face="sans-serif">var googleM = new OpenLayers.Layer.Google(
"Google Map", { minZoomLevel: 5, type: G_NORMAL_MAP, 'sphericalMercator':
true} );</font>
<br>
<br><font size=2 face="sans-serif">************************OpenLayers Layer
definition *********************************</font>
<br><font size=2 face="sans-serif">createTileCacheLayer</font>
<br><font size=2 face="sans-serif">(</font>
<br><font size=2 face="sans-serif"> 'ilotsMiniTC',
'http://10.2.192.247/tilecache/dataWms', 'ilotsMiniTC',</font>
<br><font size=2 face="sans-serif"> {</font>
<br><font size=2 face="sans-serif">
REPROJECT: 'false',</font>
<br><font size=2 face="sans-serif">
format:"image/gif",</font>
<br><font size=2 face="sans-serif">
transparent: "true",</font>
<br><font size=2 face="sans-serif">
maxExtent: new OpenLayers.Bounds(-9239517,5465442,-7987172.729,5465442),
// = bbox of tilecache.cfg</font>
<br><font size=2 face="sans-serif">
maxResolution: 4892,</font>
<br><font size=2 face="sans-serif">
attribution:'ICU - INSPQ et <a href="http://www.santepub-mtl.qc.ca/"
target="_blank">DSP de Montréal</a>'</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif">);</font>
<br>
<br><font size=2 face="sans-serif">************************TILECACHE.CFG*********************************</font>
<br>
<br><font size=2 face="sans-serif">[ilotsMiniTC]</font>
<br><font size=2 face="sans-serif">type=WMSLayer</font>
<br><font size=2 face="sans-serif">url=http://localhost/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&</font>
<br><font size=2 face="sans-serif">extent_type=loose</font>
<br><font size=2 face="sans-serif">levels=15</font>
<br><font size=2 face="sans-serif">#Du niveau inférieur au niveau supérieur</font>
<br><font size=2 face="sans-serif">layers=ilotsLavalMini,ilotsMtlMini,ilotsMonteregieMini3,ilotsMonteregieMini1,ilotsMonteregieMini2,ilotsEstrieMini2,ilotsEstrieMini1,ilotsGatMini,ilotsLauMini2,ilotsLauMini1,ilotsLanMini,ilotsMauMini1,ilotsMauMini2,ilotsMauMini3,ilotsChauMini2,ilotsQcMini2,ilotsChauMini1,ilotsQcMini1</font>
<br><font size=2 face="sans-serif">extension=gif</font>
<br><font size=2 face="sans-serif">srs=EPSG:900913</font>
<br><font size=2 face="sans-serif">#metaTile=true</font>
<br><font size=2 face="sans-serif">metaBuffer=30</font>
<br><font size=2 face="sans-serif">#metaSize=10,10</font>
<br><font size=2 face="sans-serif">maxResolution=4892</font>
<br><font size=2 face="sans-serif">bbox=-9239517,5465442,-7987172.729,5465442</font>
<br><font size=2 face="sans-serif">#BBOX = maxExtent of OL Layer definition</font>
<br>
<br><font size=2 face="sans-serif">************************tilecache_seed.py************************</font>
<br><font size=2 face="sans-serif">BBOX = maxExtent of OL map options</font>
<br><font size=2 face="sans-serif">tilecache_seed.py -f ilotsMiniTC 0 2
-b "-9239517, 5465442, -5565974, 9349764"</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction des risques biologiques, environnementaux et occupationnels<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3> </font>
<p>