Hi everyone.
We need to export a feature layer in the map to a shapefile, but applying a clipping operation with a code-built polygon. The original layer must not be modified.
We've tried running the "analysis.Clip" tool. Unlike the old "arcpy.Clip_analysis", the ArcGIS Pro SDK version seems to require providing the clipping polygon (second GP value) as a FeatureLayer.
We think we need to either:
- Make an in-memory FeatureLayer containing the Polygon.
- Save my polygon to a temporary file whose path can be used as input for the analysis.Clip process.
We could find a way to do either one in C#. Maybe you can provide a sample or have other ideas. We would prefer not to create any intermediate visible layers in the Map.
Thanks!