> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Namens Matt Priour
> Verzonden: dinsdag 26 augustus 2008 15:46
> Aan: [EMAIL PROTECTED]
> CC: [email protected]
> 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.
<?xml version="1.0" encoding="UTF-8"?>
<CacheInfo xsi:type="typens:CacheInfo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:typens="http://www.esri.com/schemas/ArcGIS/9.3";><TileCacheInfo xsi:type="typens:TileCacheInfo"><SpatialReference xsi:type="typens:ProjectedCoordinateSystem"><WKT>PROJCS["RD_New",GEOGCS["GCS_Amersfoort",DATUM["D_Amersfoort",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Double_Stereographic"],PARAMETER["False_Easting",155000.0],PARAMETER["False_Northing",463000.0],PARAMETER["Central_Meridian",5.38763888888889],PARAMETER["Scale_Factor",0.9999079],PARAMETER["Latitude_Of_Origin",52.15616055555555],UNIT["Meter",1.0],AUTHORITY["EPSG",28992]]</WKT><XOrigin>-30515500</XOrigin><YOrigin>-30279500</YOrigin><XYScale>146716411.362753</XYScale><ZOrigin>-100000</ZOrigin><ZScale>10000</ZScale><MOrigin>-100000</MOrigin><MScale>10000</MScale><XYTolerance>1.36718492833411E-03</XYTolerance><ZTolerance>0.0002</ZTolerance><MTolerance>0.0002</MTolerance><HighPrecision>true</HighPrecision><WKID>28992</WKID></SpatialReference><TileOrigin xsi:type="typens:PointN"><X>0</X><Y>650000</Y></TileOrigin><TileCols>512</TileCols><TileRows>512</TileRows><DPI>96</DPI><LODInfos xsi:type="typens:ArrayOfLODInfo"><LODInfo xsi:type="typens:LODInfo"><LevelID>0</LevelID><Scale>5000000</Scale><Resolution>1322.91931250529</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>1</LevelID><Scale>2500000</Scale><Resolution>661.459656252646</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>2</LevelID><Scale>1000000</Scale><Resolution>264.583862501058</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>3</LevelID><Scale>500000</Scale><Resolution>132.291931250529</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>4</LevelID><Scale>250000</Scale><Resolution>66.1459656252646</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>5</LevelID><Scale>100000</Scale><Resolution>26.4583862501058</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>6</LevelID><Scale>50000</Scale><Resolution>13.2291931250529</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>7</LevelID><Scale>25000</Scale><Resolution>6.61459656252646</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>8</LevelID><Scale>10000</Scale><Resolution>2.64583862501058</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>9</LevelID><Scale>5000</Scale><Resolution>1.32291931250529</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>10</LevelID><Scale>2500</Scale><Resolution>0.661459656252646</Resolution></LODInfo><LODInfo xsi:type="typens:LODInfo"><LevelID>11</LevelID><Scale>1000</Scale><Resolution>0.264583862501058</Resolution></LODInfo></LODInfos></TileCacheInfo><TileImageInfo xsi:type="typens:TileImageInfo"><CacheTileFormat>PNG24</CacheTileFormat><CompressionQuality>0</CompressionQuality><Antialiasing>true</Antialiasing></TileImageInfo></CacheInfo>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to