zoukankan      html  css  js  c++  java
  • 通过ArcEngine获得注记的信息

    访问注记层的元素和访问其他类型的地物一样,都需要通过IFeatureClass接口的Search函数获得一个IFeatureCursor对象,通过这个对象来遍历FeatureClass。

    处理注记的代码为:

                if (pFeature.FeatureType == esriFeatureType.esriFTAnnotation)
                {
                    IAnnotationFeature pAnnoFeature = pFeature as IAnnotationFeature;
                    ITextElement pTextElement = pAnnoFeature.Annotation as ITextElement;
                    string a = pTextElement.Text;
                    double b = pTextElement.Symbol.Size;
                    double c = pTextElement.Symbol.Angle;               
                    IElement pElement = pAnnoFeature.Annotation as IElement;
                    esriGeometryType geoType = pElement.Geometry.GeometryType;
                    IPoint pPoint = pElement.Geometry as IPoint;
                    double x = 0, y = 0;
                    pPoint.QueryCoords(out x, out y);
                    int cc = 0;

                    return;
                }

    来自:http://blog.sina.com.cn/s/blog_5432e0220100kzug.html

  • 相关阅读:
    动态库的创建与使用
    静态库创建与链接
    tail命令使用
    hosts文件
    dns文件
    整数编码
    多线程之间同步
    多线程编程基础
    进程间通信——信号量
    进程间通信——管道
  • 原文地址:https://www.cnblogs.com/gisoracle/p/1894802.html
Copyright © 2011-2022 走看看