Peter,<br><br>thnks for the information.<br><br>Can you provide more info on how you calculated the calue of the sizex and sizey tag?<br><br>I am having <span dir="ltr">a sample dataset covering this geoextent:<br><br>1689098,4776277,1697478,4781885<br>
<br>Tilecache creates 2 by 2 tiles at level 0 so i supposed the right configuration could be:<br><br>for the MAP file:<br><br>   layer<br>     name  &quot;TEST&quot;<br>     type raster<br>     status on<br>     data &quot;/var/www/tilecache/test/wms_test.xml&quot;<br>
     extent 1689098 4776277 1697478 4781885<br><br>     METADATA<br>        &quot;wms_title&quot; &#39;TESTWMSC&#39;<br>    &quot;wms_srs&quot; &quot;EPSG:4267&quot;<br>    &quot;wms_extent&quot; &quot;1689098 4776277 1697478 4781885&quot;<br>
       END<br>     projection <br>    &quot;init=epsg:4267&quot; <br>     end<br>    offsite 0 0 0<br>    PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;<br>   END<br></span><br>For the xml of the driver:<br><br><br>&lt;GDAL_WMS&gt;<br>
&lt;Service name=&quot;WMS&quot;&gt;<br>&lt;Version&gt;1&lt;/Version&gt;<br>&lt;ServerUrl&gt;<a href="http://localhost/tilecache/tilecache.cgi/1.0.0">http://localhost/tilecache/tilecache.cgi/1.0.0</a>&lt;/ServerUrl&gt;<br>
&lt;Layers&gt;TESTWMS&lt;/Layers&gt;<br>&lt;ImageFormat&gt;image/png&lt;/ImageFormat&gt;<br>&lt;SRS&gt;EPSG:4326&lt;/SRS&gt;<br>&lt;/Service&gt;<br>&lt;DataWindow&gt;<br>&lt;UpperLeftX&gt;1689098&lt;/UpperLeftX&gt;<br>&lt;UpperLeftY&gt;4781885&lt;/UpperLeftY&gt;<br>
&lt;LowerRightX&gt;1697478&lt;/LowerRightX&gt;<br>&lt;LowerRightY&gt;4784657&lt;/LowerRightY&gt;<br>&lt;SizeX&gt;524288&lt;/SizeX&gt;<br>&lt;SizeY&gt;524288&lt;/SizeY&gt;<br>&lt;TileCountX&gt;2&lt;/TileCountX&gt;<br>&lt;TileCountY&gt;2&lt;/TileCountY&gt;<br>
&lt;/DataWindow&gt;<br>&lt;Projection&gt;EPSG:4326&lt;/Projection&gt;<br>&lt;BlockSizeX&gt;256&lt;/BlockSizeX&gt;<br>&lt;BlockSizeY&gt;256&lt;/BlockSizeY&gt;<br>&lt;BandsCount&gt;3&lt;/BandsCount&gt;<br>&lt;ClampRequests&gt;false&lt;/ClampRequests&gt;<br>
&lt;/GDAL_WMS&gt;<br><br>I think that is wrong but i have not found any documentation so far. Any help would be really appreciated. Thanks<br><br>S<br><br><br><div class="gmail_quote">2009/9/15 Soenke J. Peters <span dir="ltr">&lt;peters+<a href="http://tilecache.openlayers.org">tilecache.openlayers.org</a>@<a href="http://opcenter.de">opcenter.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I solved this by using Mapserver serving the cached tiles from GDAL layers:<br>
<br>
>From mapserver wms.map:<br>
...<br>
    LAYER<br>
        NAME  &quot;Stadtkarte_HH&quot;<br>
        TYPE raster<br>
        STATUS ON<br>
        DATA &quot;/var/www/mapserver/gdal-mrhh-stadtkarte.xml&quot;<br>
        EXTENT 3426656.0 5829871.0 3674464.0 6077679.0<br>
        PROJECTION &quot;init=epsg:31467&quot;<br>
&quot;nadgrids=/usr/share/proj/BETA2007.gsb&quot; END<br>
        OFFSITE 0 0 0<br>
        METADATA<br>
            &quot;wms_title&quot;     &quot;Stadtkarte HH&quot;<br>
            &quot;wms_extent&quot;    &quot;3426656.0 5829871.0 3674464.0 6077679.0&quot;<br>
        END<br>
        PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;<br>
    END<br>
...<br>
<br>
gdal-mrhh-stadtkarte.xml:<br>
&lt;GDAL_WMS&gt;<br>
    &lt;Service name=&quot;WMS&quot;&gt;<br>
        &lt;Version&gt;1&lt;/Version&gt;<br>
        &lt;ServerUrl&gt;<a href="http://mapserver/tilecache/?TRANSPARENT=false" target="_blank">http://mapserver/tilecache/?TRANSPARENT=false</a>&lt;/ServerUrl&gt;<br>
        &lt;Layers&gt;Stadtkarte_HH&lt;/Layers&gt;<br>
        &lt;Dataset&gt;Stadtkarte_HH&lt;/Dataset&gt;<br>
        &lt;ImageFormat&gt;image/png&lt;/ImageFormat&gt;<br>
        &lt;SRS&gt;EPSG:31467&lt;/SRS&gt;<br>
    &lt;/Service&gt;<br>
    &lt;DataWindow&gt;<br>
        &lt;UpperLeftX&gt;3426656.0&lt;/UpperLeftX&gt;<br>
        &lt;UpperLeftY&gt;6077679.0&lt;/UpperLeftY&gt;<br>
        &lt;LowerRightX&gt;3674464.0&lt;/LowerRightX&gt;<br>
        &lt;LowerRightY&gt;5829871.0&lt;/LowerRightY&gt;<br>
        &lt;SizeX&gt;524288&lt;/SizeX&gt;<br>
        &lt;SizeY&gt;524288&lt;/SizeY&gt;<br>
        &lt;TileCountX&gt;1&lt;/TileCountX&gt;<br>
    &lt;/DataWindow&gt;<br>
    &lt;Projection&gt;EPSG:31467&lt;/Projection&gt;<br>
    &lt;!-- &lt;OverviewCount&gt;0&lt;/OverviewCount&gt; --&gt;<br>
    &lt;BlockSizeX&gt;256&lt;/BlockSizeX&gt;<br>
    &lt;BlockSizeY&gt;256&lt;/BlockSizeY&gt;<br>
    &lt;BandsCount&gt;3&lt;/BandsCount&gt;<br>
    &lt;ClampRequests&gt;false&lt;/ClampRequests&gt;<br>
&lt;/GDAL_WMS&gt;<br>
<br>
I&#39;m using the same technique for accessing Openstreetmap tiles via my WMS.<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
  ____   Soenke Jan Peters<br>
 |_  _|    22395 Hamburg, Germany<br>
 ._||      E-Mail &amp; Jabber/XMPP: <a href="mailto:peters@opcenter.de">peters@opcenter.de</a><br>
           WWW: <a href="http://opcenter.de" target="_blank">http://opcenter.de</a>, GnuPG Key-ID: 0xF358FDC<br>
</font></blockquote></div><br>