Buffer Shape

2695
4
Jump to solution
08-20-2015 05:39 AM
Highlighted
New Contributor

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

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Contributor

The buffer snippet boils down to something like this:

using ArcGIS.Core.Geometry;

QueuedTask.Run(() => {

   var bufferGeometry = GeometryEngine.Buffer(feature.GetShape(), dblBufDis);

});

View solution in original post

4 Replies
Highlighted
Esri Contributor

The buffer snippet boils down to something like this:

using ArcGIS.Core.Geometry;

QueuedTask.Run(() => {

   var bufferGeometry = GeometryEngine.Buffer(feature.GetShape(), dblBufDis);

});

View solution in original post

Highlighted
New Contributor

thanks.  My snippets do not appear to be available in the IDE.  should they be available after installing sdk?

Reply
0 Kudos
Highlighted
Esri Contributor

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

Highlighted
New Contributor

Wow, that's a big help, guess i should have known about that resource.

Reply
0 Kudos