AnsweredAssumed Answered

Geoprocessing arcobjects Intersect

Question asked by nigel_ngl2 on Nov 1, 2015
Latest reply on Nov 2, 2015 by nigel_ngl2

Hi,

I have no idea as to how do I pass multiple input features to the intersect tool.

Here is my code

regards,

Nigel

 

Geoprocessor pGp = new Geoprocessor();

  IFeatureClass pGDMFclass = pGDMFLayer.FeatureClass;

 IFeatureClass pZoneFclass = pZoneFLayer.FeatureClass;



               Intersect pIntersect = new Intersect();
                    //Pass more than one feature  
              pIntersect.in_features = pZoneFclass;
  
                pIntersect.join_attributes = "ALL";
                pIntersect.output_type = "INPUT";
                IWorkspace pWs = pFWS as IWorkspace;


                string path = pWs.PathName + "\\" + "TEST";


                pIntersect.out_feature_class = path;
                pGp.OverwriteOutput = true;
                pGp.Execute(pIntersect, null);

Outcomes