[OpenLayers-Dev] Fwd: OpenLayers with ArcGIS 9.3 (AGS)
Gorka López Rivacoba
gorka.lopez.rivacoba at gmail.com
Wed Dec 10 03:43:10 EST 2008
Hi,
I was working some days in this incident, but I don't have any advances.
I read this link,
http://openlayers.org/pipermail/dev/2007-November/001995.html (Revision
8475), and it is said that the project is imcomplete, but in other link,
http://trac.openlayers.org/browser/sandbox/stvn/arcgis-server/lib/OpenLayers/Layer/AGS.js?rev=4478
(Revision
4478) it appears a solution with ArcGis Server 9.2 tilechache + Openlayers
2.5.
What is the status of these cases?
Is ArcGis Server 9.3 tilecache algorithm public? I think this is a general
problem but I don't find any solution fro consuming tiles generated with
ArcGis Server 9.3.
All your help will be helpful
---------- Forwarded message ----------
From: Gorka López Rivacoba <gorka.lopez.rivacoba at gmail.com>
Date: 2008/11/24
Subject: OpenLayers with ArcGIS 9.3 (AGS)
To: "dev at openlayers" <dev at openlayers.org>
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/20081210/7a9f2d5c/attachment.html
More information about the Dev
mailing list