Parameters
- multipart
- The multipart to check for monotonicity.
Return Value
Monotonic indicating whether or not the Ms are monotonic as well as whether they are ascending or descending.
Exception | Description |
---|---|
System.ArgumentNullException | Multipart is null or empty. |
System.InvalidOperationException | This geometry is not M-Aware. |
System.NotImplementedException | Spatial reference of multipartis an image coordinate system. |
string json = "{\"hasM\":true,\"paths\":[[[-3000,-2000,10],[-2000,-2000,15],[-1000,-2000,20]]]}"; Polyline polyline = PolylineBuilder.FromJson(json); Monotonic monotonic = GeometryEngine.Instance.GetMMonotonic(polyline); // monotonic = Monotonic.Ascending json = "{\"hasM\":true,\"paths\":[[[-3000,-2000,10],[-2000,-2000,5],[-1000,-2000,0]]]}"; polyline = PolylineBuilder.FromJson(json); monotonic = GeometryEngine.Instance.GetMMonotonic(polyline); // monotonic = Monotonic.Descending json = "{\"hasM\":true,\"paths\":[[[-3000,-2000,10],[-2000,-2000,15],[-1000,-2000,0]]]}"; polyline = PolylineBuilder.FromJson(json); monotonic = GeometryEngine.Instance.GetMMonotonic(polyline); // monotonic = Monotonic.NotMonotonic
Target Platforms: Windows 10, Windows 8.1