Method NormalizeCentralMeridian
NormalizeCentralMeridian(Geometry)
Folds the geometry into a range of 360 degrees. This may be necessary when wrap around is enabled on the map. If Geometry is an Envelope then a Polygon will be returned unless the Envelope is empty then and Empty Envelope will be returned.
Declaration
public static Geometry NormalizeCentralMeridian(Geometry geometry)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | geometry | The geometry that you want folded. |
Returns
| Type | Description |
|---|---|
| Geometry | The folded geometry |
Remarks
Supports true curves.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | geometry or geometry.SpatialReference |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.15 |
Relevant samples
Add features: Add features to a feature layer.
Convex hull: Create a convex hull for a given set of points. The convex hull is a polygon with shortest perimeter that encloses a set of points. As a visual analogy, consider a set of points as nails in a board. The convex hull of the points would be like a rubber band stretched around the outermost nails.
Feature layer selection: Select features in a feature layer.
Nearest vertex: Find the closest vertex and coordinate of a geometry to a point.