All,<br>&nbsp;I&#39;ve solved the problem, it appears that the order of the parameters was coming in differently. I enabled logging, and looked at the parts variable in TMS.py<br><br>the log showed parts = [&#39;tilecache&#39;, &#39;tilecache.py&#39;, &#39;1.0.0&#39;, &#39;google-tiles&#39;, &#39;4&#39;, &#39;6&#39;, &#39;5.png&#39;]<br>
<br>which meant i had to rewrite the the rest of the parse method like so<br><br>else:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer = self.getLayer(parts[3])<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if len(parts) &lt; 3:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return self.layerCapabilities(host, layer)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; parts[-1] = parts[-1].split(&quot;.&quot;)[0]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tile = None<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if layer.tms_type == &quot;google&quot; or (fields.has_key(&#39;type&#39;) and fields[&#39;type&#39;] == &#39;google&#39;):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else: <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tile&nbsp; = Layer.Tile(layer, int(parts[5]), int(parts[6]), int(parts[4]))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return tile<br><br>now, the TMS style requests are working!! <br><br>I&#39;m still trying to get the right codes to access spherical mercator in Manifold GIS WMS. If that fails, can someone point me to the right class where the calculations are made that translate the x,y,z variables in the mercator request? I might have to convert that to lat/lng to get a proper response from the wms server-<br>
<br><div class="gmail_quote">On Thu, Nov 13, 2008 at 5:42 PM, chris marx <span dir="ltr">&lt;<a href="mailto:chrismarx@gmail.com">chrismarx@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok,<br>&nbsp;I found this command<br><br><pre>adsutil set w3svc/AllowPathInfoForScriptMappings True<br><br><br></pre>Which is apparently the command i need to run to allow uri path parameters for IIS (from the bum link to microsoft). I&#39;ve done that and try navigating to this link<br>

<br><a href="http://warbler2.cit.cornell.edu/tilecache/1.0.0/google-tiles/4/7/6.png?type=google" target="_blank">http://warbler2.cit.cornell.edu/tilecache/1.0.0/google-tiles/4/7/6.png?type=google</a><br><br>but iis says the page is not found. if i try this <br>

<br><a href="http://warbler2.cit.cornell.edu/tilecache/tilecache.py/1.0.0/google-tiles/4/7/6.png?type=google" target="_blank">http://warbler2.cit.cornell.edu/tilecache/tilecache.py/1.0.0/google-tiles/4/7/6.png?type=google</a><br>
<br>it says<br>
<br><pre>An error occurred: The requested layer (tilecache.py) does not exist. Available layers are: <br> * google-tiles<br></pre><br>Thanks for any advice!<br><font color="#888888">chris-</font><div><div></div><div class="Wj3C7c">
<br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 6:38 PM, chris marx <span dir="ltr">&lt;<a href="mailto:chrismarx@gmail.com" target="_blank">chrismarx@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ok, <br>&nbsp;I missed this sentence<br>&quot;TileCache supports three tile request mechanisms: <acronym title="Web Map Service">WMS</acronym> requests, 
   <a href="http://labs.metacarta.com/wms-c/tilecache.py?LAYERS=basic&amp;FORMAT=image/png&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application/vnd.ogc.se_inimage&amp;SRS=EPSG:4326&amp;BBOX=-90,0,0,90&amp;WIDTH=256&amp;HEIGHT=256" target="_blank">like this</a>, 
   WorldWind requests, <a href="http://labs.metacarta.com/wms-c/tilecache.py?T=basic&amp;L=5&amp;X=32&amp;Y=23" target="_blank">like this one</a>, and <acronym title="Tile Mapping Service">TMS</acronym> requests,
   <a href="http://labs.metacarta.com/wms-c/tilecache.py/1.0.0/basic/5/32/23.png" target="_blank">Like this one</a>.
&quot;<br><br>The last one goes to this link<br><a href="http://labs.metacarta.com/wms-c/tilecache.py/1.0.0/basic/5/32/23.png" target="_blank">http://labs.metacarta.com/wms-c/tilecache.py/1.0.0/basic/5/32/23.png</a><br><br>

But there is no documentation of what these parameters should be (although everything seems obvious except the first, is this the wms version?)<br>
<br>I tried doing this, but I&#39;m running IIS, and the microsoft link thats posted<br>
<a href="http://support.microsoft.com/kb/q184320/" target="_blank">http://support.microsoft.com/kb/q184320/</a><br><br>no longer works, so I&#39;m not sure if my path_info is configured to receive parameters this way. any pointers for getting this to work with IIS, and more about this format of TMS requests would be much appreciated-<br>

<font color="#888888">
chris-</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 3:37 PM, chris marx <span dir="ltr">&lt;<a href="mailto:chrismarx@gmail.com" target="_blank">chrismarx@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ah, <br>&nbsp;Sorry, must have missed this in the documentation, I just looked through it again, I saw some references to this configuration in the seeding tile cache, could you be a little more specific?<br><font color="#888888">chris-</font><div>


<div></div><div><br><br><div class="gmail_quote">
On Wed, Nov 12, 2008 at 3:14 PM, Christopher Schmidt <span dir="ltr">&lt;<a href="mailto:crschmidt@metacarta.com" target="_blank">crschmidt@metacarta.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>On Wed, Nov 12, 2008 at 02:50:52PM -0500, chris marx wrote:<br>
&gt; Ah, ok. Yes, in fact I did, I even posted a comment there a few days ago,<br>
&gt; because there seemed to be something missing in the code, but perhaps you<br>
&gt; can elaborate. I looked at the example, and it&#39;s firing off tile requests<br>
&gt; that look like this<br>
&gt;<br>
&gt; <a href="http://hypercube.telascience.org/tiles/1.0.0/google-tiles/1/0/0.png?type=google" target="_blank">http://hypercube.telascience.org/tiles/1.0.0/google-tiles/1/0/0.png?type=google</a><br>
&gt;<br>
&gt; this doesn&#39;t even look like a wms request to me, is there some part of the<br>
&gt; TileCache app that knows that to do with a request like this?<br>
<br>
</div>Yes.<br>
<br>
Regards,<br>
<font color="#888888">--<br>
Christopher Schmidt<br>
MetaCarta<br>
</font></blockquote></div><br><br clear="all"><br></div></div>-- <br><div><div></div><div><br>Chris Marx<br>Programmer/Analyst<br>Cornell Lab of Ornithology<br>159 Sapsucker Woods Rd.<br>Ithaca, NY 14850<br>
t. 1.607.254.1142<br><a href="http://www.birds.cornell.edu/" target="_blank">http://www.birds.cornell.edu/</a><br>

</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Chris Marx<br>Programmer/Analyst<br>Cornell Lab of Ornithology<br>159 Sapsucker Woods Rd.<br>Ithaca, NY 14850<br>t. 1.607.254.1142<br><a href="http://www.birds.cornell.edu/" target="_blank">http://www.birds.cornell.edu/</a><br>



</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Chris Marx<br>Programmer/Analyst<br>Cornell Lab of Ornithology<br>159 Sapsucker Woods Rd.<br>Ithaca, NY 14850<br>t. 1.607.254.1142<br><a href="http://www.birds.cornell.edu/" target="_blank">http://www.birds.cornell.edu/</a><br>


</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Chris Marx<br>Programmer/Analyst<br>Cornell Lab of Ornithology<br>159 Sapsucker Woods Rd.<br>Ithaca, NY 14850<br>t. 1.607.254.1142<br><a href="http://www.birds.cornell.edu/">http://www.birds.cornell.edu/</a><br>