Geometry.GetBuffer
Geometry.GetBuffer method
Computes a buffer region around this geometry.
public IGeometry GetBuffer(double distance, int quadrantSegments = 30)
Parameter | Type | Description |
---|---|---|
distance | Double | The buffer region width. |
quadrantSegments | Int32 | Number 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
exception | condition |
---|---|
InvalidOperationException | This geometry is invalid in a such way that operation can not be completed. |
ArgumentOutOfRangeException | Quadrant segments is less or equal to 0. |
See Also
- interface IGeometry
- class Geometry
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS