<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks Josh! I changed my config to…<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>[vmap0]<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>type=MapServerLayer<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>layers=coverage<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>bbox=-13912762.13841797,3088377.0068987245,-7386874.412451172,5945581.573759635<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>mapfile=/srv/www/htdocs/mapserver/ftw.map<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>metaTile=true<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>metaSize=2,2<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>metabuffer=0,500<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>spherical_mercator=true<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>srs=EPSG:900913<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>and ran…<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>linux: # python tilecache_seed.py vmap0 6 7 -b
"-13912762.13841797,3088377.0068987245,-7386874.412451172,5945581.573759635"
–f<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>which resulted in the tiles being generated.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You da man!<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks again,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Chad<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Josh Livni
[mailto:josh@umbrellaconsulting.com] <br>
<b>Sent:</b> Monday, June 01, 2009 2:23 PM<br>
<b>To:</b> Chad Clabaugh<br>
<b>Cc:</b> tilecache@openlayers.org<br>
<b>Subject:</b> Re: [Tilecache] Tilecase_seed.py bounding not working?<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>You have 'spherical
mercator=true' which means your bounding box needs to match units (meters) and
location for spherical mercator projection (meters), rather than the lat/lon
bbox you are using. So you will want to transform your bbox of interest
from lat/lon (probably epsg:4326) to spherical mercator (epsg:900913) and use
the resulting bbox.<br>
<br>
you can do this in openlayers if you want. For example, you could go to <a
href="http://openlayers.org">openlayers.org</a> and zoom to about the US and
type this into firebug:<br>
map.getExtent().transform(new OpenLayers.Projection('EPSG:4326'), new
OpenLayers.Projection('EPSG:900913'))<br>
<br>
Cheers,<br>
<br clear=all>
-Josh<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>On Mon, Jun 1, 2009 at 11:09 AM, Chad Clabaugh <<a
href="mailto:cclabaugh@centwire.com">cclabaugh@centwire.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p>I am getting the following output when I try to seed my tiles using a
bounding box surrounding the continental united states…<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>linux: # python tilecache_seed.py vmap0 5 12 -b "-125,24,-66,49.5"
-f<o:p></o:p></p>
<p>###### (16, 16, 5), (16, 16, 5)<o:p></o:p></p>
<p>Cache miss: -0.000799998641014,-0.000799998641014,1252344.2704,1252344.2704,
Tile: x: 16, y: 16, z: 5, time: 0.239030122757<o:p></o:p></p>
<p>05 (000016, 000016) = (-0.0008 -0.0008 1252344.2704 1252344.2704) [0.2391s :
4.178/s] 1/0<o:p></o:p></p>
<p>###### (32, 32, 6), (32, 32, 6)<o:p></o:p></p>
<p>Cache miss: -0.000799998641014,-0.000799998641014,626172.1348,626172.1348,
Tile: x: 32, y: 32, z: 6, time: 0.21990609169<o:p></o:p></p>
<p>06 (000032, 000032) = (-0.0008 -0.0008 626172.1348 626172.1348) [0.2202s :
4.351/s] 1/0<o:p></o:p></p>
<p>###### (64, 64, 7), (64, 64, 7)<o:p></o:p></p>
<p>Cache miss: -0.000799998641014,-0.000799998641014,313086.067,313086.067,
Tile: x: 64, y: 64, z: 7, time: 0.21994304657<o:p></o:p></p>
<p>07 (000064, 000064) = (-0.0008 -0.0008 313086.0670 313086.0670) [0.2202s :
4.411/s] 1/0<o:p></o:p></p>
<p>###### (128, 128, 8), (128, 128, 8)<o:p></o:p></p>
<p>Cache miss: -0.000799998641014,-0.000799998641014,156543.0331,156543.0331,
Tile: x: 128, y: 128, z: 8, time: 0.220010042191<o:p></o:p></p>
<p>08 (000128, 000128) = (-0.0008 -0.0008 156543.0331 156543.0331) [0.2203s :
4.442/s] 1/0<o:p></o:p></p>
<p>###### (256, 256, 9), (256, 256, 9)<o:p></o:p></p>
<p>Cache miss: -0.000799998641014,-0.000799998641014,78271.51615,78271.51615,
Tile: x: 256, y: 256, z: 9, time: 0.219614982605<o:p></o:p></p>
<p>09 (000256, 000256) = (-0.0008 -0.0008 78271.5162 78271.5162) [0.2199s :
4.462/s] 1/0<o:p></o:p></p>
<p>###### (512, 512, 10), (512, 512, 10)<o:p></o:p></p>
<p>Cache miss: -0.000799998641014,-0.000799998641014,39135.757675,39135.757675,
Tile: x: 512, y: 512, z: 10, time: 0.220409154892<o:p></o:p></p>
<p>10 (000512, 000512) = (-0.0008 -0.0008 39135.7577 39135.7577) [0.2207s :
4.473/s] 1/0<o:p></o:p></p>
<p>###### (1024, 1024, 11), (1024, 1024, 11)<o:p></o:p></p>
<p>Cache miss: -0.000799998641014,-0.000799998641014,19567.8784375,19567.8784375,
Tile: x: 1024, y: 1024, z: 11, time: 0.21924996376<o:p></o:p></p>
<p>11 (001024, 001024) = (-0.0008 -0.0008 19567.8784 19567.8784) [0.2195s :
4.484/s] 1/0<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>And here is my config…<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>[vmap0]<o:p></o:p></p>
<p>type=MapServerLayer<o:p></o:p></p>
<p>layers=coverage<o:p></o:p></p>
<p>bbox=-125,24,-66,49.5<o:p></o:p></p>
<p>mapfile=/srv/www/htdocs/mapserver/ftw.map<o:p></o:p></p>
<p>metaTile=true<o:p></o:p></p>
<p>metaSize=2,2<o:p></o:p></p>
<p>metabuffer=0,500<o:p></o:p></p>
<p>spherical_mercator=true<o:p></o:p></p>
<p>srs=EPSG:4326<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Any thoughts as to what I may be doing wrong? Thanks!<o:p></o:p></p>
<p> <o:p></o:p></p>
<p> <o:p></o:p></p>
<p><span style='font-size:14.0pt;color:#365F91'>Chad Clabaugh</span><o:p></o:p></p>
<p><span style='font-size:9.0pt'>Mobile: 260.466.8861</span><o:p></o:p></p>
<p> <o:p></o:p></p>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>