# 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 | |

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.2 |

.NET 6.0 | 100.13 - 200.2 |

.NET 6.0 Windows | 100.13 - 200.2 |

.NET 6.0 Android | 200.0 - 200.2 |

.NET 6.0 iOS | 200.0 - 200.2 |

.NET Framework | 100.0 - 200.2 |

.NET 5 | 100.10 - 100.12 |

.NET Core 3.1 | 100.7 - 100.12 |

Android | 100.0 - 100.15 |

iOS | 100.0 - 100.15 |

UWP | 100.0 - 200.2 |

##### 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.