zoukankan      html  css  js  c++  java
  • ArcGIS IQueryFilter接口

    樱木  原文 IQueryFilter

    1、IQueryFilter::SubFields
    (1)默认值为“*”,即查询时返回整行数据,如果只需要某一个字段数据(比如“Country”字段),则可以指定SubFields = “Country”,这样可以提高查询效率;查询多个字段时使用 SubFields = “Country,Date”;
    (2)需要编辑数据时,应该将SubFields字段设为“*”;

    2、ISpatialFilter
    (1)继承自IQueryFilter,扩展部分包括Geometry,GeometryField,SpatialRel,SpatialRelDescription
    (2)使用举例   

    ISpatialFilter pSpatialFilter = new SpatialFilterClass();
    pSpatialFilter.Geometry = pEnvelope;
    pSpatialFilter.GeometryField = pFeatureClass.ShapeFieldName;
    pSpatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects;

    3、获取SelectionSet中的Feature
    (1)通过游标得到  

    pSelectionSet.Search(null,false,out pCursor);
    (2)通过OID得到   

    IRow pRow = pSelectionSet.Target.GetRow(oid);
    IFeature pFeature = row as IFeature;

  • 相关阅读:
    APP兼容性测试
    APP本地服务安全测试
    接口安全测试
    Python之日志操作(logging)
    Python之json编码
    Python之配置文件读写
    windows10 修改远程连接本地端口
    ctf学习
    telnet常见的错误
    连接ssh中常见的错误代码
  • 原文地址:https://www.cnblogs.com/arxive/p/6113462.html
Copyright © 2011-2022 走看看