ReverseMs Method (GeometryEngine)
Parameters
- multipart
- The input multipart.
Return Value
The multipart with the M-values reversed.
Reverse the order of the M-values along a multipart - ReverseMs
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
ArcGIS Pro version: 3.3 or higher.