Select to view content in your preferred language

Buffer Shape

3847
4
Jump to solution
08-20-2015 05:39 AM
mikeharol1
Emerging 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

0 Kudos
1 Solution

Accepted Solutions
ThomasEmge
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
ThomasEmge
Esri Contributor

The buffer snippet boils down to something like this:

using ArcGIS.Core.Geometry;

QueuedTask.Run(() => {

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

});

mikeharol1
Emerging Contributor

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

0 Kudos
ThomasEmge
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

mikeharol1
Emerging Contributor

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

0 Kudos