Parameters
- multipart
- The input multipart.
Return Value
The multipart with the M-values reversed.
Exception | Description |
---|---|
System.ArgumentNullException | Multipart is null. |
System.InvalidOperationException | This geometry is not M-Aware. |
string json = "{\"hasM\":true,\"paths\":[[[5,4,6],[6,4,5],[8,6,7]]],\"spatialReference\":{\"wkid\":4326}}"; Polyline polyline = PolylineBuilderEx.FromJson(json); Polyline outputPolyline = GeometryEngine.Instance.ReverseMs(polyline) as Polyline; // The xy-coordinates in outputPolyline are not changed. // The M-values in outputPolyline are: { 7, 5, 6 }
Target Platforms: Windows 11, Windows 10