<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Scott,<br>
<blockquote
cite="mid:1384207222.38471.YahooMailNeo@web121106.mail.ne1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:12pt"><span>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. "</span>The
resolutions array defaults
to having resolutions which are equal to the bbox divided by
512" whatever that means :-P</div>
</blockquote>
<br>
When resolutions are set automatically, I've always just requested
them by going to:<br>
<br>
<span class="moz-txt-link-freetext"><a class="moz-txt-link-freetext" href="http://serveraddress/tilecache/tilecache.py/1.0.0/layername">http://serveraddress/tilecache/tilecache.py/1.0.0/layername</a></span><br>
<br>
<div class="line" style="color: rgb(0, 0, 0); font-family:
monospace; font-size: 13px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span
class="webkit-html-tag"><TileMap<span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">version</span>="<span
class="webkit-html-attribute-value">1.0.0</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">tilemapservice</span>="<span
class="webkit-html-attribute-value"><span
class="moz-txt-link-freetext"><a class="moz-txt-link-freetext" href="http://">http://</a></span></span></span></span><span
class="webkit-html-tag"><span class="webkit-html-attribute"><span
class="webkit-html-attribute-value"><span
class="webkit-html-tag"><span
class="webkit-html-attribute"><span
class="webkit-html-attribute-value">serveraddress</span></span></span>/tilecache/tilecache.py/1.0.0/</span>"</span>></span></div>
<div class="collapsible-content" style="margin-left: 1em; color:
rgb(0, 0, 0); font-family: monospace; font-size: 13px; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span
class="text"></span>
<div class="line"><span class="comment webkit-html-comment"
style="white-space: pre;"><!-- Additional data: tms_type is
google --></span></div>
<span class="text"></span>
<div class="line"><span class="webkit-html-tag"><Title></span><span
class="text">test01</span><span class="webkit-html-tag"></Title></span></div>
<span class="text"></span>
<div class="line"><span class="webkit-html-tag"><Abstract/></span></div>
<span class="text"></span>
<div class="line"><span class="webkit-html-tag"><SRS></span><span
class="text">EPSG:4326</span><span class="webkit-html-tag"></SRS></span></div>
<span class="text"></span>
<div class="line"><span class="webkit-html-tag"><BoundingBox<span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">minx</span>="<span
class="webkit-html-attribute-value">-180.000000</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">miny</span>="<span
class="webkit-html-attribute-value">-90.000000</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">maxx</span>="<span
class="webkit-html-attribute-value">180.000000</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">maxy</span>="<span
class="webkit-html-attribute-value">90.000000</span>"</span>/></span></div>
<span class="text"></span>
<div class="line"><span class="webkit-html-tag"><Origin<span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">x</span>="<span
class="webkit-html-attribute-value">-180.000000</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">y</span>="<span
class="webkit-html-attribute-value">-90.000000</span>"</span>/></span></div>
<span class="text"></span>
<div class="line"><span class="webkit-html-tag"><TileFormat<span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">width</span>="<span
class="webkit-html-attribute-value">256</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">height</span>="<span
class="webkit-html-attribute-value">256</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">mime-type</span>="<span
class="webkit-html-attribute-value">image/png</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">extension</span>="<span
class="webkit-html-attribute-value">png</span>"</span>/></span></div>
<span class="text"></span>
<div class="collapsible" id="collapsible1">
<div class="expanded">
<div class="line"><span class="button collapse-button"
style="-webkit-user-select: none; cursor: pointer;
display: inline-block; margin-left: -10px; width: 10px;
vertical-align: bottom; background-image:
-webkit-canvas(arrowDown); height: 10px;
background-position: 0% 0%; background-repeat: no-repeat
no-repeat;"></span><span class="webkit-html-tag"><TileSets></span></div>
<div class="collapsible-content" style="margin-left: 1em;"><span
class="text"></span>
<div class="line"><span class="webkit-html-tag"><TileSet<span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">href</span>="<span
class="webkit-html-attribute-value"><span
class="moz-txt-link-freetext"><a class="moz-txt-link-freetext" href="http://serveraddress/tilecache/tilecache.py/1.0.0/test01/0">http://serveraddress/tilecache/tilecache.py/1.0.0/test01/0</a></span></span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">units-per-pixel</span>="<span
class="webkit-html-attribute-value">1.40625000000000000000</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">order</span>="<span
class="webkit-html-attribute-value">0</span>"</span>/></span></div>
<span class="text"></span>
<div class="line"><span class="webkit-html-tag"><TileSet<span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">href</span>="<span
class="webkit-html-attribute-value"><span
class="moz-txt-link-freetext"><a class="moz-txt-link-freetext" href="http://">http://</a></span></span></span></span><span
class="webkit-html-tag"><span
class="webkit-html-attribute"><span
class="webkit-html-attribute-value"><span
class="webkit-html-tag"><span
class="webkit-html-attribute"><span
class="webkit-html-attribute-value">serveraddress</span></span></span>/tilecache/tilecache.py/1.0.0/test01/1</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">units-per-pixel</span>="<span
class="webkit-html-attribute-value">0.70312500000000000000</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">order</span>="<span
class="webkit-html-attribute-value">1</span>"</span>/></span></div>
<span class="text"></span>
<div class="line"><span class="webkit-html-tag"><TileSet<span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">href</span>="<span
class="webkit-html-attribute-value"><span
class="moz-txt-link-freetext"><a class="moz-txt-link-freetext" href="http://">http://</a></span></span></span></span><span
class="webkit-html-tag"><span
class="webkit-html-attribute"><span
class="webkit-html-attribute-value"><span
class="webkit-html-tag"><span
class="webkit-html-attribute"><span
class="webkit-html-attribute-value">serveraddress</span></span></span>/tilecache/tilecache.py/1.0.0/test01/2</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">units-per-pixel</span>="<span
class="webkit-html-attribute-value">0.35156250000000000000</span>"</span><span
class="webkit-html-attribute"><span
class="Apple-converted-space"> </span><span
class="webkit-html-attribute-name">order</span>="<span
class="webkit-html-attribute-value">2</span>"</span>/></span></div>
<span class="text"></span>......<br>
......<span class="text"></span></div>
<div class="line"><span class="webkit-html-tag"></TileSets></span></div>
</div>
</div>
<span class="text"></span></div>
<div class="line" style="color: rgb(0, 0, 0); font-family:
monospace; font-size: 13px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span
class="webkit-html-tag"></TileMap></span></div>
<br>
Then for production restricting this by setting maxResoultion and
levels (openlayers numZoomLevels). Seems much more sane than using
an array of resolutions.<br>
<br>
Hope that helps,<br>
Basil<br>
<br>
<pre class="moz-signature" cols="72">--
Basil Veerman
Geospatial Programmer/Analyst
Pacific Climate Impacts Consortium
<a class="moz-txt-link-freetext" href="http://www.pacificclimate.org/">http://www.pacificclimate.org/</a></pre>
</body>
</html>