0

I am using geoprocessing tool Intersect in Arcobjects. How to pass two input feature classes in to in_features option in INTERSECT tool could you please tell me how to pass.

Geoprocessor gp = new Geoprocessor();
ESRI.ArcGIS.AnalysisTools.Intersect Inter = new ESRI.ArcGIS.AnalysisTools.Intersect(); 
Inter.in_features = ????????????????????????????????         
Inter.out_feature_class = "D:\\Temp\\Inter.shp";
gp.OverwriteOutput = true;
gp.Execute(Inter, null); 
2
  • Did you solve your problem yet? I´m currently working with the Union tool of arcobjects and do not know how to pass the feature classes eather.
    – David
    Feb 20, 2018 at 13:22
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
    – BERA
    Feb 20, 2018 at 13:54

1 Answer 1

1

Add the feature classes to a IGPValueTable object and pass that to the in_features property.

Here is an example showing how to do it for the Union gp but it should give you the gist: Building a custom geoprocessing function tool

Scroll down to Parameter DataTypes > Lists.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.