Method Densify
Densify(Geometry, Double)
Densifies the input geometry by inserting additional vertices along the geometry at an interval
defined by maxSegmentLength
.
Declaration
public static Geometry Densify(this Geometry geometry, double maxSegmentLength)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | |
System.Double | maxSegmentLength | The maximum distance between vertices when the input geometry is densified. The linear unit is assumed to be that of the input geometry's spatial reference (decimal degrees for a geometry with a geographic spatial reference, meters for geometry with a Mercator spatial reference, and so on). Use Unit to determine the unit used by a specific spatial reference. |
Returns
Type | Description |
---|---|
Geometry | Returns the densified geometry. |
Remarks
Additional vertices are not inserted on segments of the input Polyline or
Polygon that are shorter than maxSegmentLength
.
Supports true curves as input, producing a densified curve as output where applicable.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
Densify and generalize: A multipart geometry can be densified by adding interpolated points at regular intervals. Generalizing multipart geometry simplifies it while preserving its general shape. Densifying a multipart geometry adds more vertices at regular intervals.