Show / Hide Table of Contents

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

A Envelope, Polyline or Polygon 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
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
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.
In This Article
Back to top Copyright © 2022 Esri.