arcgisengine查询统计某⼀字段值的和
IQueryFilter pQueryFilter = new QueryFilterClass();
pQueryFilter.WhereClause = sWhere;
ICursor pCursor = (featureclass as ITable).Search(pQueryFilter, true);
IDataStatistics pDataStat = new DataStatisticsClass() { Cursor = pCursor, Field = "SHAPE_Area" };//Field修改成需要统计的字段名称
skArea = pDataStat.Statistics.Sum;
网友评论