Show / Hide Table of Contents

Method Offset

Offset(Geometry, Double, OffsetType, Double, Double)

Returns offset version of the input geometry.

Declaration
public static Geometry Offset(this Geometry geometry, double distance, OffsetType offsetType, double bevelRatio, double flattenError)
Parameters
Type Name Description
Geometry geometry

The geometry to calculate offset for. MapPoint and Multipoint are not supported.

System.Double distance

The offset distance for the geometry.

OffsetType offsetType

The offset type of the offset geometry.

System.Double bevelRatio

The ratio used to produce a bevel join instead of a miter join (used only when joins is miter)

System.Double flattenError

The maximum distance of the resulting segments compared to the true circular arc (used only when joins is round). When flattenError is zero or negative, tolerance will be automatically determined based on the input geometry and its spatial reference. Also, the algorithm never produces more than around 180 vertices for each round join.

Returns
Type Description
Geometry

The result of the offset operation.

Remarks

The offset operation creates a geometry that is a constant distance from an input polyline or polygon. It is similar to buffering, but produces a one sided result. If distance is greater than 0, then the offset geometry is constructed to the right of the oriented input geometry, otherwise it is constructed to the left. For a simple polygon, the orientation of outer rings is clockwise and for inner rings it is counterclockwise. So the "right side" of a simple polygon is always its inside. The bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be from the input curve before it is beveled.

Supports true curves as input, producing a densified curve as output where applicable.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.