• 关键字 Geoprocessor Intersect IFeatureLayers IGpValueTableObject


    http://forums.arcgis.com/threads/2390-Using-the-Intersect-Geoprocessor-with-IFeatureLayers-in-C // LOJIC.ArcGIS.Carto.Layers.GetFeatureLayerByName is a function to get the featurelayer IFeatureLayer pParcelFLayer = LOJIC.ArcGIS.Carto.Layers.GetFeatureLayerByName(fa rmassessment.m_mxDocument.ActiveView, "Parcel Lines"); IFeatureLayer pSoilsFLayer = LOJIC.ArcGIS.Carto.Layers.GetFeatureLayerByName(fa rmassessment.m_mxDocument.ActiveView, "Soils"); // String for the output path String stroutput = "J:\\pva\\Appdata\\Farm\\fa" + strParcelID; //Setting up the Geoprocessor Geoprocessor GP = new Geoprocessor(); GP.OverwriteOutput = true; ESRI.ArcGIS.AnalysisTools.Intersect intersectLayers = new Intersect(); //using the IGpValueTableObject to add multiple featurelayer from the TOC to the Input of the Intersect Geopros. IGpValueTableObject valTbl = new GpValueTableObjectClass(); valTbl.SetColumns(2); object row = ""; object rank = 1; row = pParcelFLayer; valTbl.SetRow(0, ref row); valTbl.SetValue(0, 1, ref rank); row = pSoilsFLayer; valTbl.SetRow(1, ref row); rank = 2; valTbl.SetValue(1, 1, ref rank); intersectLayers.in_features = valTbl; intersectLayers.out_feature_class = stroutput; intersectLayers.join_attributes = "ALL"; intersectLayers.output_type = "INPUT"; GP.Execute(intersectLayers, null);
  • 相关阅读:
    求全排列,调用C++函数
    ZOJ 3508 (the war)
    HDU 1285
    SDUT--枚举(删数问题)
    SDUT--进制转换
    位运算
    [NOI2015]软件包管理器
    列队[noip2017]
    [APIO2007]动物园
    [NOI2001]炮兵阵地
  • 原文地址:https://www.cnblogs.com/adodo1/p/4327916.html
Copyright © 2020-2023  润新知