<br><font size=2 face="sans-serif">no error...</font>
<br><font size=2 face="sans-serif">I think the problem is that my bbox
doesn't fit the grid.</font>
<br>
<br><font size=2 face="sans-serif">If I set everything (layer maxExtent
= map maxExtent = bbox .cfg and bbox tilecache_seed.py) to the same maxExtent
of my map it is working well.</font>
<br><font size=2 face="sans-serif">But the maxExtent of my map covers the
country. My layer covers the province.</font>
<br>
<br><font size=2 face="sans-serif">So I thought it was a good thing to
specify a smaller extent so there are less images requested to the server
when executing tilecache_seed.py.</font>
<br><font size=2 face="sans-serif">Does it make sense to specify a smaller
extent for the tilecache or I should not bother with that?</font>
<br>
<br><font size=2 face="sans-serif">If it makes sense please send a link
to some documentation on how set the new extent to the tilecache grid.</font>
<br>
<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"><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>&nbsp; </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Alexandre Dube &lt;adube@mapgears.com&gt;@openlayers.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : tilecache-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">23/07/2009 01:23 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">tilecache@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [Tilecache] maxExtent and BBOX setting</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Hi,<br>
<br>
 &nbsp;Using Firebug, if you open the url to a requested tile in a new
<br>
tab/window, do you see an error message ?<br>
<br>
Alexandre<br>
<br>
Steve.Toutant@inspq.qc.ca wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt; I read several posts on bbox and maxExtent settings but I still can't
<br>
&gt; make tilecache works.<br>
&gt; I'm confuse with maxExtent, maxResolution and BBOX of OpenLayers <br>
&gt; mapOptions, OpenLayers layer definition, tilecache.cfg and <br>
&gt; tilecache_seed.py.<br>
&gt;<br>
&gt; I need help for clarifying this please.<br>
&gt; Below are the different settings.<br>
&gt; thanks<br>
&gt; Steve<br>
&gt;<br>
&gt; ************************OpenLayers <br>
&gt; Options*********************************<br>
&gt;<br>
&gt; var mapOptions = {<br>
&gt; projection: &quot;EPSG:900913&quot;,//google<br>
&gt; displayProjection: new OpenLayers.Projection(&quot;EPSG:4326&quot;),
//Pour <br>
&gt; afficher les coord lat long<br>
&gt; units: &quot;m&quot;,<br>
&gt; maxExtent: new OpenLayers.Bounds(-9239517, 5465442, -5565974, <br>
&gt; 9349764),//bbox google = bbox tilecache_seed.py<br>
&gt; maxResolution: &quot;4892&quot;, //BEcause of minZoomLevel: 5 for
google MAp<br>
&gt; controls: [],<br>
&gt; numZoomLevels: 20 //google<br>
&gt; };<br>
&gt; //basemap<br>
&gt; var googleM = new OpenLayers.Layer.Google( &quot;Google Map&quot;,
{ <br>
&gt; minZoomLevel: 5, type: G_NORMAL_MAP, 'sphericalMercator': true} );<br>
&gt;<br>
&gt; ************************OpenLayers Layer definition <br>
&gt; *********************************<br>
&gt; createTileCacheLayer<br>
&gt; (<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 'ilotsMiniTC', 'http://10.2.192.247/tilecache/dataWms',
<br>
&gt; 'ilotsMiniTC',<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; REPROJECT:
'false',<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; format:&quot;image/gif&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transparent:
&quot;true&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxExtent:
new <br>
&gt; OpenLayers.Bounds(-9239517,5465442,-7987172.729,5465442), // = bbox
of <br>
&gt; tilecache.cfg<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxResolution:
4892,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; attribution:'ICU
- INSPQ et &lt;a <br>
&gt; href=&quot;http://www.santepub-mtl.qc.ca/&quot; target=&quot;_blank&quot;&gt;DSP
de <br>
&gt; Montréal&lt;/a&gt;'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; );<br>
&gt;<br>
&gt; ************************TILECACHE.CFG*********************************<br>
&gt;<br>
&gt; [ilotsMiniTC]<br>
&gt; type=WMSLayer<br>
&gt; url=http://localhost/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&amp;
<br>
&gt;<br>
&gt; extent_type=loose<br>
&gt; levels=15<br>
&gt; #Du niveau inférieur au niveau supérieur<br>
&gt; layers=ilotsLavalMini,ilotsMtlMini,ilotsMonteregieMini3,ilotsMonteregieMini1,ilotsMonteregieMini2,ilotsEstrieMini2,ilotsEstrieMini1,ilotsGatMini,ilotsLauMini2,ilotsLauMini1,ilotsLanMini,ilotsMauMini1,ilotsMauMini2,ilotsMauMini3,ilotsChauMini2,ilotsQcMini2,ilotsChauMini1,ilotsQcMini1
<br>
&gt;<br>
&gt; extension=gif<br>
&gt; srs=EPSG:900913<br>
&gt; #metaTile=true<br>
&gt; metaBuffer=30<br>
&gt; #metaSize=10,10<br>
&gt; maxResolution=4892<br>
&gt; bbox=-9239517,5465442,-7987172.729,5465442<br>
&gt; #BBOX = maxExtent of OL Layer definition<br>
&gt;<br>
&gt; ************************tilecache_seed.py************************<br>
&gt; BBOX = maxExtent of OL map options<br>
&gt; tilecache_seed.py -f ilotsMiniTC 0 2 -b &quot;-9239517, 5465442, -5565974,
<br>
&gt; 9349764&quot;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; /Steve Toutant, M. Sc./<br>
&gt; Analyste en géomatique<br>
&gt; Secteur environnement<br>
&gt; Direction des risques biologiques, environnementaux et occupationnels<br>
&gt; Institut national de santé publique du Québec<br>
&gt; 945, avenue Wolfe<br>
&gt; Québec, Qc G1V 5B3<br>
&gt;<br>
&gt; Tél.: (418) 650-5115 #5281<br>
&gt; Fax.: (418) 654-3144_<br>
&gt; __steve.toutant@inspq.qc.ca_ &lt;mailto:steve.toutant@inspq.qc.ca&gt;_<br>
&gt; __http://www.inspq.qc.ca_ &lt;http://www.inspq.qc.ca/&gt;<br>
&gt;<br>
&gt; &nbsp;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Tilecache mailing list<br>
&gt; Tilecache@openlayers.org<br>
&gt; http://openlayers.org/mailman/listinfo/tilecache<br>
&gt; &nbsp; <br>
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
www.mapgears.com<br>
<br>
_______________________________________________<br>
Tilecache mailing list<br>
Tilecache@openlayers.org<br>
http://openlayers.org/mailman/listinfo/tilecache<br>
</font></tt>
<br>
<br>
<br>