Geometry.GetBuffer

Geometry.GetBuffer method

Computes a buffer region around this geometry.

public IGeometry GetBuffer(double distance, int quadrantSegments = 30)
ParameterTypeDescription
distanceDoubleThe buffer region width.
quadrantSegmentsInt32Number of segments used to approximate a 90 degree of curvature. The larger this number is the better approximation of curves is produced. Default is 30.

Return Value

A geometry that represents all points that are within a specified distance from this geometry. The type of result is either Null, IPolygon or IMultiPolygon.

Exceptions

exceptioncondition
InvalidOperationExceptionThis geometry is invalid in a such way that operation can not be completed.
ArgumentOutOfRangeExceptionQuadrant segments is less or equal to 0.

See Also