buffer Or Null
Creates a buffer polygon at the specified distance around the given geometry. This is a planar buffer operation. Use GeometryEngine.bufferGeodeticOrNull(Geometry, Double, LinearUnit, Double, GeodeticCurveType) to produce geodetic buffers. This planar measurement uses 2D Cartesian mathematics to compute the buffer area. It is based upon the SpatialReference of the input geometry. If the input geometry does not use an 'area preserving' spatial reference, the result can be inaccurate. You have two options available to calculate a more accurate result:
Use a different spatial reference. Use the GeometryEngine.projectOrNull(Geometry, SpatialReference) method to project the geometry to a projected coordinate system that is better suited for area calculations. See Spatial references[https://developers.arcgis.com/documentation/spatial-references/] and Supported map projections[https://pro.arcgis.com/en/pro-app/latest/help/mapping/properties/list-of-supported-map-projections.htm] for more information.
Use the geodetic equivalent, GeometryEngine.bufferGeodeticOrNull(Geometry, Double, LinearUnit, Double, GeodeticCurveType).
Supports true curves as input, producing a densified curve as output where applicable.
Return
A polygon object that represents a buffer at the desired distance relative to the given geometry.
Since
200.1.0