ArcEngine定义查询

在Arcgis中很容易就能实现对图层的定义查询显示。

ArcEngine定义查询_第1张图片

在ArcEngine中用代码也非常容易实现。

        /// <summary>
        /// 定义查询图层
        /// </summary>
        /// <param name="IN_Layer">要进行定义查寻的图层</param>
        /// <param name="IN_QueryCommand">定义查询命令</param>
        /// <param name="IN_AxmapControl">显示控件</param>
        private void PRV_DefinitionQuery(ILayer IN_Layer,string IN_QueryCommand,AxMapControl IN_AxmapControl)
        {
            IFeatureLayerDefinition Temp_FeatureLayerDef = IN_Layer as IFeatureLayerDefinition;
            Temp_FeatureLayerDef.DefinitionExpression = IN_QueryCommand;
            IN_AxmapControl.AddLayer(Temp_FeatureLayerDef as ILayer);
        }


你可能感兴趣的:(arcgis,ArcEngine,ArcgisEngine,ae)