[Tilecache] WMS getMap interface
Simone Gadenz
gadenz at gmail.com
Wed Sep 16 12:02:04 EDT 2009
Peter,
thnks for the information.
Can you provide more info on how you calculated the calue of the sizex and
sizey tag?
I am having a sample dataset covering this geoextent:
1689098,4776277,1697478,4781885
Tilecache creates 2 by 2 tiles at level 0 so i supposed the right
configuration could be:
for the MAP file:
layer
name "TEST"
type raster
status on
data "/var/www/tilecache/test/wms_test.xml"
extent 1689098 4776277 1697478 4781885
METADATA
"wms_title" 'TESTWMSC'
"wms_srs" "EPSG:4267"
"wms_extent" "1689098 4776277 1697478 4781885"
END
projection
"init=epsg:4267"
end
offsite 0 0 0
PROCESSING "CLOSE_CONNECTION=DEFER"
END
For the xml of the driver:
<GDAL_WMS>
<Service name="WMS">
<Version>1</Version>
<ServerUrl>http://localhost/tilecache/tilecache.cgi/1.0.0</ServerUrl>
<Layers>TESTWMS</Layers>
<ImageFormat>image/png</ImageFormat>
<SRS>EPSG:4326</SRS>
</Service>
<DataWindow>
<UpperLeftX>1689098</UpperLeftX>
<UpperLeftY>4781885</UpperLeftY>
<LowerRightX>1697478</LowerRightX>
<LowerRightY>4784657</LowerRightY>
<SizeX>524288</SizeX>
<SizeY>524288</SizeY>
<TileCountX>2</TileCountX>
<TileCountY>2</TileCountY>
</DataWindow>
<Projection>EPSG:4326</Projection>
<BlockSizeX>256</BlockSizeX>
<BlockSizeY>256</BlockSizeY>
<BandsCount>3</BandsCount>
<ClampRequests>false</ClampRequests>
</GDAL_WMS>
I think that is wrong but i have not found any documentation so far. Any
help would be really appreciated. Thanks
S
2009/9/15 Soenke J. Peters <peters+tilecache.openlayers.org at opcenter.de>
> Hi,
>
> I solved this by using Mapserver serving the cached tiles from GDAL layers:
>
> From mapserver wms.map:
> ...
> LAYER
> NAME "Stadtkarte_HH"
> TYPE raster
> STATUS ON
> DATA "/var/www/mapserver/gdal-mrhh-stadtkarte.xml"
> EXTENT 3426656.0 5829871.0 3674464.0 6077679.0
> PROJECTION "init=epsg:31467"
> "nadgrids=/usr/share/proj/BETA2007.gsb" END
> OFFSITE 0 0 0
> METADATA
> "wms_title" "Stadtkarte HH"
> "wms_extent" "3426656.0 5829871.0 3674464.0 6077679.0"
> END
> PROCESSING "CLOSE_CONNECTION=DEFER"
> END
> ...
>
> gdal-mrhh-stadtkarte.xml:
> <GDAL_WMS>
> <Service name="WMS">
> <Version>1</Version>
> <ServerUrl>http://mapserver/tilecache/?TRANSPARENT=false
> </ServerUrl>
> <Layers>Stadtkarte_HH</Layers>
> <Dataset>Stadtkarte_HH</Dataset>
> <ImageFormat>image/png</ImageFormat>
> <SRS>EPSG:31467</SRS>
> </Service>
> <DataWindow>
> <UpperLeftX>3426656.0</UpperLeftX>
> <UpperLeftY>6077679.0</UpperLeftY>
> <LowerRightX>3674464.0</LowerRightX>
> <LowerRightY>5829871.0</LowerRightY>
> <SizeX>524288</SizeX>
> <SizeY>524288</SizeY>
> <TileCountX>1</TileCountX>
> </DataWindow>
> <Projection>EPSG:31467</Projection>
> <!-- <OverviewCount>0</OverviewCount> -->
> <BlockSizeX>256</BlockSizeX>
> <BlockSizeY>256</BlockSizeY>
> <BandsCount>3</BandsCount>
> <ClampRequests>false</ClampRequests>
> </GDAL_WMS>
>
> I'm using the same technique for accessing Openstreetmap tiles via my WMS.
>
>
>
>
> --
> ____ Soenke Jan Peters
> |_ _| 22395 Hamburg, Germany
> ._|| E-Mail & Jabber/XMPP: peters at opcenter.de
> WWW: http://opcenter.de, GnuPG Key-ID: 0xF358FDC
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20090916/715474ff/attachment.html
More information about the Tilecache
mailing list