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 "TEST"<br> type raster<br> status on<br> data "/var/www/tilecache/test/wms_test.xml"<br>
extent 1689098 4776277 1697478 4781885<br><br> METADATA<br> "wms_title" 'TESTWMSC'<br> "wms_srs" "EPSG:4267"<br> "wms_extent" "1689098 4776277 1697478 4781885"<br>
END<br> projection <br> "init=epsg:4267" <br> end<br> offsite 0 0 0<br> PROCESSING "CLOSE_CONNECTION=DEFER"<br> END<br></span><br>For the xml of the driver:<br><br><br><GDAL_WMS><br>
<Service name="WMS"><br><Version>1</Version><br><ServerUrl><a href="http://localhost/tilecache/tilecache.cgi/1.0.0">http://localhost/tilecache/tilecache.cgi/1.0.0</a></ServerUrl><br>
<Layers>TESTWMS</Layers><br><ImageFormat>image/png</ImageFormat><br><SRS>EPSG:4326</SRS><br></Service><br><DataWindow><br><UpperLeftX>1689098</UpperLeftX><br><UpperLeftY>4781885</UpperLeftY><br>
<LowerRightX>1697478</LowerRightX><br><LowerRightY>4784657</LowerRightY><br><SizeX>524288</SizeX><br><SizeY>524288</SizeY><br><TileCountX>2</TileCountX><br><TileCountY>2</TileCountY><br>
</DataWindow><br><Projection>EPSG:4326</Projection><br><BlockSizeX>256</BlockSizeX><br><BlockSizeY>256</BlockSizeY><br><BandsCount>3</BandsCount><br><ClampRequests>false</ClampRequests><br>
</GDAL_WMS><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"><peters+<a href="http://tilecache.openlayers.org">tilecache.openlayers.org</a>@<a href="http://opcenter.de">opcenter.de</a>></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 "Stadtkarte_HH"<br>
TYPE raster<br>
STATUS ON<br>
DATA "/var/www/mapserver/gdal-mrhh-stadtkarte.xml"<br>
EXTENT 3426656.0 5829871.0 3674464.0 6077679.0<br>
PROJECTION "init=epsg:31467"<br>
"nadgrids=/usr/share/proj/BETA2007.gsb" END<br>
OFFSITE 0 0 0<br>
METADATA<br>
"wms_title" "Stadtkarte HH"<br>
"wms_extent" "3426656.0 5829871.0 3674464.0 6077679.0"<br>
END<br>
PROCESSING "CLOSE_CONNECTION=DEFER"<br>
END<br>
...<br>
<br>
gdal-mrhh-stadtkarte.xml:<br>
<GDAL_WMS><br>
<Service name="WMS"><br>
<Version>1</Version><br>
<ServerUrl><a href="http://mapserver/tilecache/?TRANSPARENT=false" target="_blank">http://mapserver/tilecache/?TRANSPARENT=false</a></ServerUrl><br>
<Layers>Stadtkarte_HH</Layers><br>
<Dataset>Stadtkarte_HH</Dataset><br>
<ImageFormat>image/png</ImageFormat><br>
<SRS>EPSG:31467</SRS><br>
</Service><br>
<DataWindow><br>
<UpperLeftX>3426656.0</UpperLeftX><br>
<UpperLeftY>6077679.0</UpperLeftY><br>
<LowerRightX>3674464.0</LowerRightX><br>
<LowerRightY>5829871.0</LowerRightY><br>
<SizeX>524288</SizeX><br>
<SizeY>524288</SizeY><br>
<TileCountX>1</TileCountX><br>
</DataWindow><br>
<Projection>EPSG:31467</Projection><br>
<!-- <OverviewCount>0</OverviewCount> --><br>
<BlockSizeX>256</BlockSizeX><br>
<BlockSizeY>256</BlockSizeY><br>
<BandsCount>3</BandsCount><br>
<ClampRequests>false</ClampRequests><br>
</GDAL_WMS><br>
<br>
I'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 & 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>