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;

  • 相关阅读:
    Java Logging: Log Levels
    Java Logging: Logger Hierarchy
    Java Logging: Logger
    Java Logging: Basic Usage
    Use final liberally
    Writing Final Classes and Methods
    Java Logging: Overview
    base Tag
    DOM Nodes
    Browser environment
  • 原文地址:https://www.cnblogs.com/arxive/p/6113462.html
Copyright © 2011-2022 走看看