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(this 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 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
Relevant samples
Create, delete, and update features: Add, delete, and update features (geometry and attributes) in 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.