ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / IGeometryEngine Interface / GeodeticBuffer Method / GeodeticBuffer(IEnumerable<Geometry>,IEnumerable<Double>,LinearUnit,Double,GeodeticCurveType,Boolean) Method
Specifies the input geometries.
The distances to buffer the geometries. If there are less distances than geometries, the last distance value is used for the remaining geometries.
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.
Signifies whether the buffered geometries will be unioned or not.

In This Topic
    GeodeticBuffer(IEnumerable<Geometry>,IEnumerable<Double>,LinearUnit,Double,GeodeticCurveType,Boolean) Method
    In This Topic
    Creates buffers at the specified geodetic distance around the given geometries.
    Syntax

    Parameters

    geometries
    Specifies the input geometries.
    distances
    The distances to buffer the geometries. If there are less distances than geometries, the last distance value is used for the remaining geometries.
    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.
    unionResult
    Signifies whether the buffered geometries will be unioned or not.

    Return Value

    The polygons that represent the buffered area.
    Exceptions
    ExceptionDescription
    geometries is null.
    distances is null.
    distances
    The method is not implemented for GeometryBag or Multipatch.
    The first non-null spatial reference is an image coordinate system.
    The buffer distance must be a valid floating point number.
    Remarks
    At least one geometry must have a spatial reference that is not null or Unknown. The spatial reference of the output geometries is the first valid spatial reference found in the list of geometries. All other geometries are projected to this spatial reference, if necessary.

    If the buffer distance is zero and the input geometry is a polygon or an envelope, then a polygon created from the input geometry is returned. If the buffer distance is zero and the input geometry is not a polygon or an envelope, 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