[OpenLayers-Users] ArcGIS Server 9.3 tile layer

Prins, drs. M.C. (Mark) m.c.prins at minlnv.nl
Thu Sep 4 05:02:12 EDT 2008


> -----Oorspronkelijk bericht-----
> Van: users-bounces at openlayers.org 
> [mailto:users-bounces at openlayers.org] Namens Matt Priour
> Verzonden: dinsdag 26 augustus 2008 15:46
> Aan: DWright at ngs.org
> CC: users at openlayers.org
> Onderwerp: Re: [OpenLayers-Users] ArcGIS Server 9.3 tile layer
> 
> You can use this file:
> http://trac.openlayers.org/browser/sandbox/stvn/arcgis-server/
> lib/OpenLayers/Layer/AGS.js?format=txt
>  
> See more info about it at:
> http://www.nabble.com/ArcGIS-server-9.2-support-for-OL-ts9691195.html
>  
> We have successfully used it on several projects.

 I've been playing around with this for some time now but can't get it to work properly; some of the layers work, some don't (its about 50/50 score across the levels). Also I get requests for "negative" rows/cols R000000-1/C000000-1.png...

// For the mapoptions I use:
var mapOptions = {
    maxResolution :1322.91931250529,
    resolutions :new Array(1322.91931250529, 661.459656252646,
	    264.583862501058, 132.291931250529, 66.1459656252646,
	    26.4583862501058, 13.2291931250529, 6.61459656252646,
	    2.64583862501058, 1.32291931250529, 0.661459656252646,
	    0.264583862501058),
    tileSize :new OpenLayers.Size(512, 512),
    tileOrigin :new OpenLayers.LonLat(0, 650000),
    units :'m',
    // maxExtent :new OpenLayers.Bounds(-2965.77710000001, 290312.5,
    // 291650.9211,640937.5),
    maxExtent :new OpenLayers.Bounds(0, 299005.1647, 291660.3167, 650000),
    controls : [],
    projection :new OpenLayers.Projection("EPSG:28992"),
    transitionEffect :"resize"
};

// and this is the layer
var top10nl = new OpenLayers.Layer.AGS("TOP10NL",
	"http://s1112.nxs.nl:8399/arcgis/server/arcgiscache/top10nl/Layers", {
	    isBaseLayer :false,
	    layername :'_alllayers',
	    type :'png',
	    tileOrigin :new OpenLayers.LonLat(0, 650000)
	});

The AGS cache conf is attached.

Anyone try the REST calls?? because these use the same tilecache but have a naming schem that's all numeric:

http://gispunt.nl/rest/services/top10nl/MapServer/tile/3/4/2
Returns the 2nd tile (col) of the 4th directory(row) of the 3rd directory (zoom level)


Met vriendelijke groet,
 
Mark Prins
applicatie ontwikkelaar Geo-Informatie Systemen

GIS Competence Center (een samenwerking van DLG en DR)
Dienst Landelijk Gebied
Kamer 11.23
Herman Gorterstraat 5
3511 EW Utrecht
Postbus 20021
3502 LA Utrecht
tel 030 275 6877
fax 030 275 6999


Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is gezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. 

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conf.xml
Type: text/xml
Size: 3084 bytes
Desc: conf.xml
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080904/1404c1b6/conf.xml


More information about the Users mailing list