[OpenLayers-Dev] OpenLayers with ArcGIS 9.3 (AGS)

Gorka López Rivacoba gorka.lopez.rivacoba at gmail.com
Mon Nov 24 03:42:17 EST 2008


Hi,

In my application I want to consume ArcGIS 9.3 pre-generated tiles with
OpenLayers. I generate the tiles with this parameters:

   - xCoordinate: 515228
   - yCoordinate: 4750007
   - Scales: 75.000 - 60.000 - 40.000 - 25.000
   - Format: JPG


To consume these tiles with OpenLayers, I downloaded the AGS class (
http://trac.openlayers.org/browser/sandbox/stvn/arcgis-server/lib/OpenLayers/Layer/AGS.js?rev=4774),
and I wrote these parameters:


*var layerAGSTiles = new OpenLayers.Layer.AGS( "AGS",      *

*
**http://arcgisserver/arcgiscache/Map1/Layers*<http://arcgisserver/arcgiscache/Map1/Layers>
*, *

*                             {layername: '_alllayers', type:'jpg',
tileOrigin: new OpenLayers.LonLat(515228,4750007)} );*

*map.addLayer(layerAGSTiles);*

But the last part of the generated url is not ok (the part that depends of
the tileOrigin parameter). Example:

http://*arcgisserver*
/arcgiscache/Map1/Layers/_alllayers/L00/R05a5a11c/C08a6a108.jpg<http://arcgisserver/arcgiscache/Map1_Nora_OrtoGV/Layers/_alllayers/L00/R05a5a11c/C08a6a108.jpg>
(wrong
url)
  http://*arcgisserver*
/arcgiscache/Map1/Layers/_alllayers/L00/R00000000/C00000000.jpg<http://arcgisserver/arcgiscache/Map1/Layers/_alllayers/L00/R00000000/C00000000.jpg>
(correct
url)

I don'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.

Thanks for your help. Best Regards,

Gorka López
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20081124/0b159bdd/attachment.html


More information about the Dev mailing list