I would like to buffer a polygon with the arcgispro sdk.
Here is basic concept in arcobjects
var pTopo = myFeature.Shape as ITopologicalOperator;
IPolygon pOutPoly = (IPolygon)pTopo.Buffer(dblBufDis);
what is most efficient way to do this with arcgispro sdk?
Thanks
Mike
Solved! Go to Solution.
The buffer snippet boils down to something like this:
using ArcGIS.Core.Geometry;
QueuedTask.Run(() => {
var bufferGeometry = GeometryEngine.Buffer(feature.GetShape(), dblBufDis);
});
The buffer snippet boils down to something like this:
using ArcGIS.Core.Geometry;
QueuedTask.Run(() => {
var bufferGeometry = GeometryEngine.Buffer(feature.GetShape(), dblBufDis);
});
thanks. My snippets do not appear to be available in the IDE. should they be available after installing sdk?
We have 'ProSnippets' as part of the wiki at
https://github.com/esri/arcgis-pro-sdk/wiki next to the concepts.
You can find the geometry snippets at
https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Geometry
Wow, that's a big help, guess i should have known about that resource.