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 = 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 Home, Pro, Enterprise (64 bit)