首页 新闻 会员 周边 捐助

ArcGIS调用第三方切片图层经纬度配准问题

0
悬赏园豆:30 [已关闭问题] 关闭于 2015-04-29 17:33

图层是png格式切片图层,IIS发布的HTTP服务,网上找的代码,可以正常调用显示图层,经纬度不对,不知道如何修正

切片图层的参数:
200
100.659309
50.493823
25.287808
12.65411
6.329604
3.165439
1.582879
0.791479
0.39575
0.197877
115.286870173443|39.3520389706052|117.643483826557|41.1506830293948

 1     public class GoogleMap : TiledMapServiceLayer
 2     {
 3         private const double cornerCoordinate = 20037508.342787;
 4 
 5         public override void Initialize()
 6         {
 7             this.FullExtent = new ESRI.ArcGIS.Client.Geometry.Envelope(-20037508.342787, -20037508.342787, 20037508.342787, 20037508.342787);
 8             {
 9                 SpatialReference = new ESRI.ArcGIS.Client.Geometry.SpatialReference(102113);
10             };
11             this.SpatialReference = new ESRI.ArcGIS.Client.Geometry.SpatialReference(102113);
12             this.TileInfo = new TileInfo()
13             {
14                 Height = 256,
15                 Width = 256,
16                 Origin = new ESRI.ArcGIS.Client.Geometry.MapPoint(-20037508.342787, 20037508.342787)
17                 {
18                     SpatialReference = new ESRI.ArcGIS.Client.Geometry.SpatialReference(102113)
19                 },
20                 Lods = new Lod[11]
21             };
22             double resolution = cornerCoordinate * 2 / 256;
23             for (int i = 0; i < TileInfo.Lods.Length; i++)
24             {
25                 TileInfo.Lods[i] = new Lod() { Resolution = resolution };
26                 resolution /= 2;
27             }
28             base.Initialize();
29         }
30         public override string GetTileUrl(int level, int row, int col)
31         {
32             string baseUrl = "http://10.223.12.233:88/2009_7DI/zoom{0}/{1}_{2}.png";
33             return string.Format(baseUrl, level + 1, col, row);
34         }
35     }

 

尝试修改,115.280693173443, 39.3506779706052, 117.637306826557, 41.1493220293948转为墨卡托坐标 12832988.0623633,4744930.96110713,13095325.0942244,5006268.3662146,填入 this.FullExtent = new ESRI.ArcGIS.Client.Geometry.Envelope(),设置private const double cornerCoordinate =200, 这个参数不知道怎么写Origin = new ESRI.ArcGIS.Client.Geometry.MapPoint()随便试了几个参数,然后图层不显示了

tailss的主页 tailss | 初学一级 | 园豆:175
提问于:2015-01-22 14:39
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册