因为爱GIS,我们聚集于此
  • 快捷登录:

supermap iClient for silverlight 获取图形的坐标点

2014-11-27 20:18| 发布者: 咱是专业的| 查看: 2940| 评论: 0

摘要: 绘制的图形 已经保存在featuresLayer中,下面是关键代码 GeoRegion region = (featuresLayer.Features.Geometry as GeoRegion); ObservableCollectionPoint2D regionPtn = region.Par ...
绘制的图形 已经保存在featuresLayer中,下面是关键代码
            GeoRegion region = (featuresLayer.Features[0].Geometry as GeoRegion);

            ObservableCollection<Point2D> regionPtn = region.Parts.First();

            coords = "";
            foreach (Point2D ptn in regionPtn)
            {
                coords += "("+ptn.X + "," + ptn.Y + ");";
            }

鲜花

握手

雷人

路过

鸡蛋
相关推荐

最新评论

相关推荐
关闭

热门推荐上一条 /1 下一条

© 2013-2014 GIS520 ( 陕ICP备14003560号-1 )Powered by Discuz! X3.2 Template by giscafer   
返回顶部