zoukankan      html  css  js  c++  java
  • 初步完成ArcGIS Silverlight的数据源扩展

    WMS已经由官方放出,这边就不罗嗦了,在搞WFS客户端。累啊!

    Google

      GoogleMapTileLayer glayer = new GoogleMapTileLayer(GoogleMapType.GoogleMap, GoogleMapTileLayer.LanguageType.ChineseSimplified);

    mapMain.Layers.Add(glayer);

    image

    Bing地图

    中国版的待研究

    BingMapTileLayer bLayer = new BingMapTileLayer(BingMapTileLayer.UrlBingStaging,"", BingMapType.Roads);

    mapMain.Layers.Add(bLayer);

    image

    我最看好的OpenStreetMap,感谢ESRI官方提供

    image

    ArcGIS直读切片

    TileInfo tileInfo = new TileInfo();
                tileInfo.Height = 256;
                tileInfo.Width = 256;
                tileInfo.Origin = new MapPoint(-180f, 90f);
                tileInfo.SpatialReference = new SpatialReference(4*);

                tileInfo.Lods = new Lod[12]{
                    new Lod(){ Resolution=0.021****},
                    new Lod(){ Resolution=0.01****},
                    new Lod(){ Resolution=0.005499****},
                    new Lod(){ Resolution=0.****},
                    new Lod(){ Resolution=0.001****},
                    ….            };
                Uri uri = new Uri("http://******/");
                string format = "png";
                Envelope extent = new Envelope(105.19*3, 31.3120*1, 111.53*7, 39.979*1);
                extent.SpatialReference = new SpatialReference(4*);

    ArcGISDirectTileLayer directileLayer = new ArcGISDirectTileLayer(uri, format, tileInfo, extent,false);

    mapMain.Layers.Add(directileLayer);

    image

    最后再来一张国产的天地图,哇哈哈。

    TianDiTuTileLayer tdtLayer = new TianDiTuTileLayer(TianDiTuTileLayer.TianDiTuMapType.TDTRaster);
                TianDiTuTileLayer tdtLayer1 = new TianDiTuTileLayer(TianDiTuTileLayer.TianDiTuMapType.TDTRasterAnno);
                //directileLayer.Initialize();
                try
                {
                   
                    mapMain.Layers.Add(tdtLayer);
                    mapMain.Layers.Add(tdtLayer1);
                }

    image

    来个矢量

    image

    下一步研究一下Bing和国产的baidu==.嘿嘿…

  • 相关阅读:
    git学习
    Command Line
    python之测试
    python之模块
    python之函数
    python之类
    python之错误和异常
    python之迭代器和生成器
    python之字典和集合
    python之列表和元组
  • 原文地址:https://www.cnblogs.com/Brune/p/1883348.html
Copyright © 2011-2022 走看看