[Tilecache] Clue Please - TileCache won't make Polar Tiles for OpenLayers

Basil Veerman bveerman at uvic.ca
Tue Nov 12 12:41:56 PST 2013


Hi Scott,
> The problem is not completely solved yet, because we need to specify 
> the resolution values for the map layers in OpenLayers.  I have no 
> idea what the default resolutions used by TileCache are, although the 
> documentation has some hints.  "The resolutions array defaults to 
> having resolutions which are equal to the bbox divided by 512" 
> whatever that means  :-P

When resolutions are set automatically, I've always just requested them 
by going to:

http://serveraddress/tilecache/tilecache.py/1.0.0/layername

<TileMapversion="1.0.0"tilemapservice="http://serveraddress/tilecache/tilecache.py/1.0.0/">
<!-- Additional data: tms_type is google -->
<Title>test01</Title>
<Abstract/>
<SRS>EPSG:4326</SRS>
<BoundingBoxminx="-180.000000"miny="-90.000000"maxx="180.000000"maxy="90.000000"/>
<Originx="-180.000000"y="-90.000000"/>
<TileFormatwidth="256"height="256"mime-type="image/png"extension="png"/>
<TileSets>
<TileSethref="http://serveraddress/tilecache/tilecache.py/1.0.0/test01/0"units-per-pixel="1.40625000000000000000"order="0"/>
<TileSethref="http://serveraddress/tilecache/tilecache.py/1.0.0/test01/1"units-per-pixel="0.70312500000000000000"order="1"/>
<TileSethref="http://serveraddress/tilecache/tilecache.py/1.0.0/test01/2"units-per-pixel="0.35156250000000000000"order="2"/>
......
......
</TileSets>
</TileMap>

Then for production restricting this by setting maxResoultion and levels 
(openlayers numZoomLevels).  Seems much more sane than using an array of 
resolutions.

Hope that helps,
Basil

-- 
Basil Veerman
Geospatial Programmer/Analyst
Pacific Climate Impacts Consortium
http://www.pacificclimate.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/tilecache/attachments/20131112/285e43a2/attachment.html>


More information about the Tilecache mailing list