zoukankan      html  css  js  c++  java
  • Arcengine 从DEM影像办事中获取指定点的高程值(Z值)

    2013-5-24 19:56:07

    "http://localhost:9958/chcgmlhjxt20130523/ContentManage/Content_DaoXian.aspx?id=导线测量"
    "117 ° 2′ 33.46″E"
    "36 ° 40′ 7.95″N"
    Arcengine 从DEM影像办事中获取指定点的高程值(Z值)

    作者: 时间:2012-04-18

      
    母亲的安定和幸福取决于她的孩子们。母亲的幸福要靠孩子少年儿童去发明。公布好地图一个DEM影像办事之后,怎么在winform中经由过程该办事获取它的高程值呢? 一开端会感觉很难,看了代码会感触感染 太简单了~  下面是关键代码

    挫折可增长经验,经验能雄厚聪明

                //加载影像图层
                IImageServerLayer imageserverlayer = new ImageServerLayerClass();
                string URL = "http://cuit-004/arcgis/services/chinaDEM/ImageServer";
                imageserverlayer.Initialize(URL);
                IRaster raster = imageserverlayer.Raster;
                //获取DEM的高程值
                IRaster2 raster2 = raster as IRaster2;
                int row = 0;
                int col = 0;
                raster2.MapToPixel(102.0091, 34.000, out col, out row);
                object height= raster2.GetPixelValue(0, col, row);

  • 相关阅读:
    Redis
    Redis
    运维
    Redis
    Redis
    Redis
    Redis
    Redis
    Redis
    Spring
  • 原文地址:https://www.cnblogs.com/xianyin05/p/3116013.html
Copyright © 2011-2022 走看看