<div>Hi,</div>
<div>&nbsp;</div>
<div>I was working some days in this incident, but I don&#39;t have any advances.</div>
<div>&nbsp;</div>
<div>I read this link, <a href="http://openlayers.org/pipermail/dev/2007-November/001995.html">http://openlayers.org/pipermail/dev/2007-November/001995.html</a>&nbsp;(Revision 8475), and it is said that the project is imcomplete, but in other link, <a href="http://trac.openlayers.org/browser/sandbox/stvn/arcgis-server/lib/OpenLayers/Layer/AGS.js?rev=4478">http://trac.openlayers.org/browser/sandbox/stvn/arcgis-server/lib/OpenLayers/Layer/AGS.js?rev=4478</a>&nbsp;(Revision 4478) it appears a solution with ArcGis Server 9.2 tilechache + Openlayers 2.5.</div>

<div>&nbsp;</div>
<div>What is the status of these cases?</div>
<div>&nbsp;</div>
<div>Is ArcGis Server 9.3 tilecache&nbsp;algorithm public? I think this is a general problem but I don&#39;t find any solution fro consuming tiles generated with ArcGis Server 9.3.</div>
<div>&nbsp;</div>
<div>All your help will be helpful<br><br></div>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Gorka López Rivacoba</b> <span dir="ltr">&lt;<a href="mailto:gorka.lopez.rivacoba@gmail.com">gorka.lopez.rivacoba@gmail.com</a>&gt;</span><br>
Date: 2008/11/24<br>Subject: OpenLayers with ArcGIS 9.3 (AGS)<br>To: &quot;dev@openlayers&quot; &lt;<a href="mailto:dev@openlayers.org">dev@openlayers.org</a>&gt;<br><br><br>
<div>Hi,</div>
<div>&nbsp;</div>
<div>In my application I want to consume ArcGIS 9.3 pre-generated tiles with OpenLayers. I generate the tiles with this parameters:</div>
<ul>
<li>xCoordinate: <font size="2">515228</font></li>
<li>yCoordinate: <font size="2">4750007</font></li>
<li>Scales: 75.000 - 60.000 - 40.000 - 25.000</li>
<li>Format: JPG</li></ul>
<div>&nbsp;</div>
<div>To consume these tiles with OpenLayers, I downloaded the AGS class&nbsp;(<a href="http://trac.openlayers.org/browser/sandbox/stvn/arcgis-server/lib/OpenLayers/Layer/AGS.js?rev=4774" target="_blank">http://trac.openlayers.org/browser/sandbox/stvn/arcgis-server/lib/OpenLayers/Layer/AGS.js?rev=4774</a>), and I wrote these parameters:</div>

<div>&nbsp;</div><font size="2">
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<p><em>var layerAGSTiles = new OpenLayers.Layer.AGS( &quot;AGS&quot;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </em></p>
<p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </em><a href="http://arcgisserver/arcgiscache/Map1/Layers" target="_blank"><em>http://arcgisserver/arcgiscache/Map1/Layers</em></a><em>, </em></p>
<p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {layername: &#39;_alllayers&#39;, type:&#39;jpg&#39;, tileOrigin: new OpenLayers.LonLat(515228,4750007)} );</em></p>
<p><em>map.addLayer(layerAGSTiles);</em></p></blockquote>
<div dir="ltr">But the last part of the generated url is not ok (the part that depends of the tileOrigin parameter). Example:</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr"><a href="http://arcgisserver/arcgiscache/Map1_Nora_OrtoGV/Layers/_alllayers/L00/R05a5a11c/C08a6a108.jpg" target="_blank">http://<em>arcgisserver</em>/arcgiscache/Map1/Layers/_alllayers/L00/R05a5a11c/C08a6a108.jpg</a>&nbsp;(wrong url)</div>

<div dir="ltr">&nbsp; 
<div dir="ltr"><a href="http://arcgisserver/arcgiscache/Map1/Layers/_alllayers/L00/R00000000/C00000000.jpg" target="_blank">http://<em>arcgisserver</em>/arcgiscache/Map1/Layers/_alllayers/L00/R00000000/C00000000.jpg</a>&nbsp;(correct url)</div>

<div dir="ltr">&nbsp;</div>
<div dir="ltr">I don&#39;t know if this problem is about the tileOrigin that I write (I write the xMin and yMax that I write in the configuration of the tiles) or if it is because the algorithm is different for the newest version (9.3) or ArcGIS.</div>

<div dir="ltr">&nbsp;</div>
<div dir="ltr">Thanks for your help. Best Regards,</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">Gorka López</div></div>
<p>&nbsp;</p></font></div><br>