ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / IGeometryEngine Interface / GeodeticBuffer Method / GeodeticBuffer(Geometry,Double,LinearUnit,Double,GeodeticCurveType) Method
The input geometry. Cannot be null and its spatial reference cannot be null.
The distance to used to buffer the geometry.
The unit of the buffer distance. If null, then the buffer distance is in meters.
The deviation in meters to use for convergence. The geodetic arcs of the resulting buffer will be closer than the max deviation of the true buffer. Pass in NaN or a value less than or equal to 0 to use the default deviation which will be the maximum of 0.01 meters and 0.2% of the buffer distance.
The GeodeticCurveType of the segments. If the curveType is GeodeticCurveType::ShapePreserving, then the segments are densified in the spatial reference where they are defined before buffering.

In This Topic
    GeodeticBuffer(Geometry,Double,LinearUnit,Double,GeodeticCurveType) Method
    In This Topic
    Creates a geodetic buffer polygon at the specified geodetic distance around the given geometry.
    Syntax

    Parameters

    geometry
    The input geometry. Cannot be null and its spatial reference cannot be null.
    distance
    The distance to used to buffer the geometry.
    distanceUnit
    The unit of the buffer distance. If null, then the buffer distance is in meters.
    maxDeviation
    The deviation in meters to use for convergence. The geodetic arcs of the resulting buffer will be closer than the max deviation of the true buffer. Pass in NaN or a value less than or equal to 0 to use the default deviation which will be the maximum of 0.01 meters and 0.2% of the buffer distance.
    curveType
    The GeodeticCurveType of the segments. If the curveType is GeodeticCurveType::ShapePreserving, then the segments are densified in the spatial reference where they are defined before buffering.

    Return Value

    A polygon representing the buffered area. If the input geometry is empty, then an empty polygon is returned.
    Exceptions
    ExceptionDescription
    Geometry is null or geometry's spatial reference is null.
    The method is not implemented for GeometryBag.
    The method is not implemented for Multipatch.
    The buffer distance must be a valid floating point number.
    Spatial reference of geometryis an image coordinate system.
    Remarks
    If the buffer distance is zero and the input geometry is a polygon, then the polygon is returned unchanged. If the input geometry is an envelope, then a polygon created from the envelope is returned. Otherwise, an empty polygon is returned.

    A negative buffer distance can be used to create a buffer inside a polygon or an envelope. Using a negative buffer distance shrinks the geometry's boundary by the distance specified. Note that if the absolute value of the negative distance is too large, the buffer may collapse to an empty polygon. If a negative buffer distance is used and the input geometry is not a polygon or an envelope, then an empty polygon is returned.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also