Select to view content in your preferred language

Bug: Set M-values as distance — Multipart M-values are set in descending order

663
2
03-21-2022 07:32 AM
Bud
by
Honored Contributor


I have a multipart polyline in an ArcGIS Pro 2.9.2 feature class:
(NAD83 UTM 17N)

Bud_1-1647871715101.png

I can set the M-values to the cumulative distance of the line by using the Set As Distance tool (setting "Starting M" to zero):

Bud_2-1647871823474.png


That works as expected. Part #2's M-values are in the correct order (ascending).

 

 Bud_3-1647872013325.png


However, if I do a different test, the results are unexpected:

  • Drop the measures.
  • Try a slightly different feature:
    Change the X-coordinate of part #1, vertex 2...from 130 meters to 135 meters.
  • Re-do the test:
    Set the M-values to the cumulative distance of the line by using the Set As Distance tool (setting "Starting M" to zero).

Now, part #2's M-values are in the incorrect order (descending):

Bud_4-1647872911983.png

Question:

Why are the M-values in the incorrect order? (descending)
I would expect the M-value order to be the same as the vertex index's order (ascending).

Thanks!

 

0 Kudos
2 Replies
JohannesLindner
MVP Frequent Contributor

Set as Distance seems to try to minimize the distance. In your second case, V2 is closer to V4 than to V3, so it continues the route that way.

That feels kinda wrong, but maybe there are good reasons for that behavior, I don't know.

 

Workaround:

  • Set as Distance
  • Set From/To, using the highest M value as To

Have a great day!
Johannes
0 Kudos
Bud
by
Honored Contributor

Esri confirmed it's a defect: BUG-000148390.

0 Kudos