<br><font size=2 face="sans-serif">sure comme un citron!</font>
<br>
<br><font size=2 face="sans-serif">I agree that I should get en error.
So, that means that there is no error with Openlayers. Probably because
it is not trying to load the tiles. The behavior was like there is a min
or maxResoltution applied. But there is not..</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;I changed the extent of the layer
and the BBOX of the tilecache.cfg and now it is working. But I need to
understand what went wrong.</font>
<br><font size=2 face="sans-serif">I'll do more research. I really need
to set the extent as small as possible otherwise a lot of useless request
are sent to the server.</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your help,</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>Martin Ouellet &lt;geomartino@gmail.com&gt;</b>
</font>
<p><font size=1 face="sans-serif">23/07/2009 03:48 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-bounces@openlayers.org, 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] RE maxExtent and BBOX
setting</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3>if the tile are created but OL does not display it, you
should have a error message in firebug:</font>
<br>
<br><font size=3>here some possible errors:</font>
<br><font size=3>-&gt;Permission denied on directory so tilecache cannot
read the image&nbsp;</font>
<br><font size=3>-&gt;file ?.png does not exist</font>
<br><font size=3>-&gt; x value too far from tile corner x</font>
<br>
<br><font size=3>are you sure firebug don't show any error?</font>
<br>
<br><font size=3>MartinO</font>
<br>
<br><font size=3>2009/7/23 &lt;</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>&gt;</font>
<br><font size=2 face="sans-serif"><br>
I should say that tilecache_seed.py gave no errors and there is nothing
wrong in the apache logs. The image are created but don't show up in OL.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
Steve</font><font size=3> </font><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i><br>
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 target=_blank><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/ target=_blank><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a><font size=3>
</font>
<p><font size=3>&nbsp; </font>
<p><font size=3><br>
<br>
</font>
<p>
<table width=100%>
<tr valign=top>
<td width=53%><a href=mailto:Steve.Toutant@inspq.qc.ca target=_blank><font size=1 color=blue face="sans-serif"><b><u>Steve.Toutant@inspq.qc.ca</u></b></font></a><font size=1 face="sans-serif"><b>@</b></font><a href=http://openlayers.org/ target=_blank><font size=1 color=blue face="sans-serif"><b><u>openlayers.org</u></b></font></a><font size=1 face="sans-serif">
<br>
Envoyé par : </font><a href="mailto:tilecache-bounces@openlayers.org" target=_blank><font size=1 color=blue face="sans-serif"><u>tilecache-bounces@openlayers.org</u></font></a><font size=3>
</font>
<p><font size=1 face="sans-serif">23/07/2009 11:54 AM</font><font size=3>
</font>
<td width=46%>
<br>
<table width=100%>
<tr valign=top>
<td width=12%>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td width=87%><a href=mailto:tilecache@openlayers.org target=_blank><font size=1 color=blue face="sans-serif"><u>tilecache@openlayers.org</u></font></a><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[Tilecache] maxExtent and BBOX setting</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
<br>
Hello,</font><font size=3> </font><font size=2 face="sans-serif"><br>
I read several posts on bbox and maxExtent settings but I still can't make
tilecache works.</font><font size=3> </font><font size=2 face="sans-serif"><br>
I'm confuse with maxExtent, maxResolution and BBOX of OpenLayers mapOptions,
OpenLayers layer definition, tilecache.cfg and tilecache_seed.py.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
I need help for clarifying this please.</font><font size=3> </font><font size=2 face="sans-serif"><br>
Below are the different settings.</font><font size=3> </font><font size=2 face="sans-serif"><br>
thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
Steve</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
************************OpenLayers Options*********************************</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
var mapOptions = {</font><font size=3> </font><font size=2 face="sans-serif"><br>
projection: &quot;EPSG:900913&quot;,//google</font><font size=3> </font><font size=2 face="sans-serif"><br>
displayProjection: new OpenLayers.Projection(&quot;EPSG:4326&quot;), //Pour
afficher les coord lat long</font><font size=3> </font><font size=2 face="sans-serif"><br>
units: &quot;m&quot;,</font><font size=3> </font><font size=2 face="sans-serif"><br>
maxExtent: new OpenLayers.Bounds(-9239517, 5465442, -5565974, 9349764),//bbox
google = bbox tilecache_seed.py</font><font size=3> </font><font size=2 face="sans-serif"><br>
maxResolution: &quot;4892&quot;, //BEcause of minZoomLevel: 5 for google
MAp</font><font size=3> </font><font size=2 face="sans-serif"><br>
controls: [],</font><font size=3> </font><font size=2 face="sans-serif"><br>
numZoomLevels: 20 //google</font><font size=3> </font><font size=2 face="sans-serif"><br>
};</font><font size=3> </font><font size=2 face="sans-serif"><br>
//basemap</font><font size=3> </font><font size=2 face="sans-serif"><br>
var googleM = new OpenLayers.Layer.Google( &quot;Google Map&quot;, { minZoomLevel:
5, type: G_NORMAL_MAP, 'sphericalMercator': true} );</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
************************OpenLayers Layer definition *********************************</font><font size=3>
</font><font size=2 face="sans-serif"><br>
createTileCacheLayer</font><font size=3> </font><font size=2 face="sans-serif"><br>
(</font><font size=3> </font><font size=2 face="sans-serif"><br>
&nbsp; &nbsp; &nbsp; &nbsp;'ilotsMiniTC', '</font><a href=http://10.2.192.247/tilecache/dataWms target=_blank><font size=2 color=blue face="sans-serif"><u>http://10.2.192.247/tilecache/dataWms</u></font></a><font size=2 face="sans-serif">',
'ilotsMiniTC',</font><font size=3> </font><font size=2 face="sans-serif"><br>
&nbsp; &nbsp; &nbsp; &nbsp;{</font><font size=3> </font><font size=2 face="sans-serif"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;REPROJECT: 'false',</font><font size=3>
</font><font size=2 face="sans-serif"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;format:&quot;image/gif&quot;,</font><font size=3>
</font><font size=2 face="sans-serif"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;transparent: &quot;true&quot;,</font><font size=3>
</font><font size=2 face="sans-serif"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;maxExtent: new OpenLayers.Bounds(-9239517,5465442,-7987172.729,5465442),
// = bbox of tilecache.cfg</font><font size=3> </font><font size=2 face="sans-serif"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;maxResolution: 4892,</font><font size=3>
</font><font size=2 face="sans-serif"><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;attribution:'ICU
- INSPQ et &lt;a href=&quot;</font><a href="http://www.santepub-mtl.qc.ca/" target=_blank><font size=2 color=blue face="sans-serif"><u>http://www.santepub-mtl.qc.ca/</u></font></a><font size=2 face="sans-serif">&quot;
target=&quot;_blank&quot;&gt;DSP de Montréal&lt;/a&gt;'</font><font size=3>
</font><font size=2 face="sans-serif"><br>
&nbsp; &nbsp; &nbsp; &nbsp;}</font><font size=3> </font><font size=2 face="sans-serif"><br>
);</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
************************TILECACHE.CFG*********************************</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
[ilotsMiniTC]</font><font size=3> </font><font size=2 face="sans-serif"><br>
type=WMSLayer</font><font size=3> </font><font size=2 face="sans-serif"><br>
url=</font><a href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&amp;" target=_blank><font size=2 color=blue face="sans-serif"><u>http://localhost/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&amp;</u></font></a><font size=3>
</font><font size=2 face="sans-serif"><br>
extent_type=loose</font><font size=3> </font><font size=2 face="sans-serif"><br>
levels=15</font><font size=3> </font><font size=2 face="sans-serif"><br>
#Du niveau inférieur au niveau supérieur</font><font size=3> </font><font size=2 face="sans-serif"><br>
layers=ilotsLavalMini,ilotsMtlMini,ilotsMonteregieMini3,ilotsMonteregieMini1,ilotsMonteregieMini2,ilotsEstrieMini2,ilotsEstrieMini1,ilotsGatMini,ilotsLauMini2,ilotsLauMini1,ilotsLanMini,ilotsMauMini1,ilotsMauMini2,ilotsMauMini3,ilotsChauMini2,ilotsQcMini2,ilotsChauMini1,ilotsQcMini1</font><font size=3>
</font><font size=2 face="sans-serif"><br>
extension=gif</font><font size=3> </font><font size=2 face="sans-serif"><br>
srs=EPSG:900913</font><font size=3> </font><font size=2 face="sans-serif"><br>
#metaTile=true</font><font size=3> </font><font size=2 face="sans-serif"><br>
metaBuffer=30</font><font size=3> </font><font size=2 face="sans-serif"><br>
#metaSize=10,10</font><font size=3> </font><font size=2 face="sans-serif"><br>
maxResolution=4892</font><font size=3> </font><font size=2 face="sans-serif"><br>
bbox=-9239517,5465442,-7987172.729,5465442</font><font size=3> </font><font size=2 face="sans-serif"><br>
#BBOX = maxExtent of OL Layer definition</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
************************tilecache_seed.py************************</font><font size=3>
</font><font size=2 face="sans-serif"><br>
BBOX = maxExtent of OL map options</font><font size=3> </font><font size=2 face="sans-serif"><br>
tilecache_seed.py -f ilotsMiniTC 0 2 -b &quot;-9239517, 5465442, -5565974,
9349764&quot;</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i><br>
<br>
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 target=_blank><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/ target=_blank><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a><font size=3>
</font>
<p><font size=3>&nbsp; </font><tt><font size=2>_______________________________________________<br>
Tilecache mailing list</font></tt><tt><font size=2 color=blue><u><br>
</u></font></tt><a href=mailto:Tilecache@openlayers.org target=_blank><tt><font size=2 color=blue><u>Tilecache@openlayers.org</u></font></tt></a><tt><font size=2 color=blue><u><br>
</u></font></tt><a href=http://openlayers.org/mailman/listinfo/tilecache target=_blank><tt><font size=2 color=blue><u>http://openlayers.org/mailman/listinfo/tilecache</u></font></tt></a><font size=3><br>
<br>
<br>
</font>
<p><font size=3><br>
_______________________________________________<br>
Tilecache mailing list</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:Tilecache@openlayers.org><font size=3 color=blue><u>Tilecache@openlayers.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://openlayers.org/mailman/listinfo/tilecache target=_blank><font size=3 color=blue><u>http://openlayers.org/mailman/listinfo/tilecache</u></font></a><font size=3><br>
</font>
<br>
<br>
<br>
<br>