How to get the route measure?

270
1
11-14-2011 06:41 AM
deleted-user-hb3f0SCDAPf8
New Contributor II
All the Python examples to work with geometry are for point features.  Would someone please tell me how I can get the measure (not length) from a route feature class?

Your help is greatly appreciated.

Fardosht
Tags (2)
0 Kudos
1 Reply
RichardFairhurst
MVP Honored Contributor
All the Python examples to work with geometry are for point features.  Would someone please tell me how I can get the measure (not length) from a route feature class?

Your help is greatly appreciated.

Fardosht


If all you want is the beginning or ending measure value of a line the code in the Field Calculator that works using Python (if you have 9.3 or up) is one of the following:

!Shape.FirstPoint.M!
!Shape.LastPoint.M!

If you are wanting the measure at any point along the line I am not really sure if Python has an interface that replicates the ArcObjects IRouteLocator and IRouteLocation functionality.
0 Kudos