0

我有一个本地 ArcGIS 服务器 9.3.1。我启用了 WMS 和缓存(平铺)。我想使用 OpenLayers 显示切片,因为 ArcMap 无法打开自己的 REST 服务;(

使用 OpenLayers 效果很好,但瓷砖质量很差。航拍照片基础层(jpeg)非常像素化,覆盖也很糟糕,png8。

当我查看服务器上的平铺文件夹时,我看到图像正常,所以当 OpenLayers 打开它们时出现问题。

这是我的代码:

var mapOptions = {
    projection: new OpenLayers.Projection('EPSG:28992'),
    resolutions: [3440.64, 1720.32, 860.16, 430.08, 215.04, 107.52, 53.76, 26.88, 13.44, 6.72, 3.36, 1.68, 0.84, 0.42, 0.21, 0.105, 0.0525],
    div: "map",
    maxExtent: new OpenLayers.Bounds(634.5732789819,306592.8911594,1762242.253279,2068200.5711594),
    units: "m",
    numZoomLevels: 17,
    tileSize: new OpenLayers.Size(512,512),
    controls: []};

var map = new OpenLayers.Map('map', mapOptions);

var aerial= new OpenLayers.Layer.ArcGIS93Rest("aerial",
    "http://myServer/arcgis/rest/services/myMap/MapServer/export", 
    {layers: "show:0",
      type: "jpg",
      useScales: true,
      useAGS: true,
      transparent: false
    },
    { tileSize: new OpenLayers.Size(512,512),
      buffer: 2,      
      visibility: false,        
      isBaseLayer: true,
      transitionEffect: 'resize'
    }
);                    

var tiled = new OpenLayers.Layer.ArcGIS93Rest(Tiled",
    "http://myServer/arcgis/rest/services/MyMap/MapServer/export", 
    {layers: "show:56",
      type: "png8",
      useScales: true,
      useAGS: true,
      transparent: true
    },
    { tileSize: new OpenLayers.Size(512,512),
      buffer: 0,      
      visibility: false,        
      isBaseLayer: false,
      transitionEffect: 'resize'
    }
);                    

边界和分辨率来自图层。有没有人建议如何在 OpenLayers 中显示来自 ArcGIS 的平铺 WMS 图层?

谢谢。

4

0 回答 0