<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with Locate Features Along Route (Linear Referencing) in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91723#M3134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I exploded the multipart feature into single parts (n = ~700). Then I ran the integrate tool with a 2 meter tolerance, which reduced the number of single parts by about one-half. Using the Intersect functions you suggested, I identified two locations of overlapping line segments and fixed these errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried re-building the route with the cleaned up trail lines and "upper right" option. The measures are now more random than before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Re-calculating MMONOTONIC gave me a value of 10 for each of the records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something else I should do to ensure monotonicity in the dataset?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2013 15:20:00 GMT</pubDate>
    <dc:creator>toddsams</dc:creator>
    <dc:date>2013-09-23T15:20:00Z</dc:date>
    <item>
      <title>Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91715#M3126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to measure the distance between sites (points; n=50) that were sampled along a trail using the Linear Referencing tools. I created a "route" from my trail feature class (line; dissolved into one single feature) and was able to run the Locate Features Along Route tool without any errors. I then ran Make Route Event Layer so that I could view my points after they had been "snapped" to the trail, which all looked great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I am having is with the values in the Measure Field, which is supposed to list the distance at which each point exists along the trail. I sorted the Measure Field in descending order and expected that my sites would then be listed in the order in which they appear along the trail, and this is the case for the first 12 sites. However, the 13th site listed is the one at the opposite end of the trail and then the remaining sites are listed in sequential order and meet back up with the 12th site. I checked to see if this could be explained due to the values being measured from the other end of the trail, but this didn't add up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So basically, it seems that the Measure Field was not calculated properly. I would greatly appreciated any insight into this. Many thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 14:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91715#M3126</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-20T14:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91716#M3127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am attempting to measure the distance between sites (points; n=50) that were sampled along a trail using the Linear Referencing tools. I created a "route" from my trail feature class (line; dissolved into one single feature) and was able to run the Locate Features Along Route tool without any errors. I then ran Make Route Event Layer so that I could view my points after they had been "snapped" to the trail, which all looked great.&lt;BR /&gt;&lt;BR /&gt;The problem I am having is with the values in the Measure Field, which is supposed to list the distance at which each point exists along the trail. I sorted the Measure Field in descending order and expected that my sites would then be listed in the order in which they appear along the trail, and this is the case for the first 12 sites. However, the 13th site listed is the one at the opposite end of the trail and then the remaining sites are listed in sequential order and meet back up with the 12th site. I checked to see if this could be explained due to the values being measured from the other end of the trail, but this didn't add up.&lt;BR /&gt;&lt;BR /&gt;So basically, it seems that the Measure Field was not calculated properly. I would greatly appreciated any insight into this. Many thanks in advance!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are multiple trails in your route feature class?&amp;nbsp; Did you use the get nearest route or keep all locations option with the Get Rotue Locations tool?&amp;nbsp; Are you sure the 13th event was linked to the same route as the others?&amp;nbsp; Sort by RID and then by measure and be sure all of the events have the same RID values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you have a simple monotonic route (all measures increase on each successive vertex)?&amp;nbsp; Is the Route a singlepart feature or multipart feature?&amp;nbsp; Does the trail loop back on itself or have branches?&amp;nbsp; Any complexity to the route will cause odd results, so that is the first thing to eliminate.&amp;nbsp; Just because everything is merged together does not mean that the route measures are properly formed.&amp;nbsp; Did you manually calculate the measures or use the Create Route tool to assign measures?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is code that will fill in a field to rate the MMonotonicity of your routes.&amp;nbsp; Add a long field called MMONOTONIC to your routes and calculate it with this formula (any result other than 1 is potentially bad):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Parser: Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Show Codeblock: Checked&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pre-Logic Script Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def MMonotonicity(feat):
 partnum = 0

 # Count the number of points in the current multipart feature
 partcount = feat.partCount
 pntcount = 0
 mmonotonicity = 0
 lastM = -100000000

 # Enter while loop for each part in the feature (if a singlepart feature
 # this will occur only once)
 #
 while partnum &amp;lt; partcount:
&amp;nbsp; part = feat.getPart(partnum)
&amp;nbsp; pnt = part.next()

&amp;nbsp; # Enter while loop for each vertex
&amp;nbsp; #
&amp;nbsp; while pnt:
&amp;nbsp;&amp;nbsp; pntcount += 1
&amp;nbsp;&amp;nbsp; if lastM &amp;lt; pnt.M and lastM != -100000000:
&amp;nbsp;&amp;nbsp;&amp;nbsp; mmonotonicity = mmonotonicity | 1
&amp;nbsp;&amp;nbsp; if lastM == pnt.M and lastM != -100000000:
&amp;nbsp;&amp;nbsp;&amp;nbsp; mmonotonicity = mmonotonicity | 2
&amp;nbsp;&amp;nbsp; if lastM &amp;gt; pnt.M and lastM != -100000000:
&amp;nbsp;&amp;nbsp;&amp;nbsp; mmonotonicity = mmonotonicity | 4
&amp;nbsp;&amp;nbsp; if not pnt.M:
&amp;nbsp;&amp;nbsp;&amp;nbsp; mmonotonicity = mmonotonicity | 8
&amp;nbsp;&amp;nbsp; lastM = pnt.M
&amp;nbsp;&amp;nbsp; pnt = part.next()
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; # If pnt is null, either the part is finished or there is an 
&amp;nbsp;&amp;nbsp; # interior ring
&amp;nbsp;&amp;nbsp; #
&amp;nbsp;&amp;nbsp; if not pnt: 
&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt = part.next()
&amp;nbsp; partnum += 1
 return mmonotonicity&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression: MMonotonicity( !Shape!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The MMonotonicy values of the calculation and their domain translations are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1 = Strictly Increasing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2 = All Measures are Level&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 = Increasing with Levels&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4 = Strictly Decreasing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5 = Increasing and Decreasing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6 = Decreasing with Levels&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7 = Increasing and Decreasing with Levels &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8 = All Measures are NaN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9 = Increasing with NaN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10 = Measures with Levels and NaN only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11 = Increasing with Levels and Nan&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;12 = Decreasing with NaN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13 = Increasing and Decreasing with NaN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;14 = Decreasing with Levels and NaN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;15 = Increasing and Decreasing with Levels and NaN&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91716#M3127</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-10T23:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91717#M3128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the detailed reply. Responses to your questions are in red below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are multiple trails in your route feature class? No.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you use the get nearest route or keep all locations option with the Get Rotue Locations tool? The Locate Features Along Routes tool (in V10.1) has the option to "Keep only the closest route location", which I have checked. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure the 13th event was linked to the same route as the others? Yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sort by RID and then by measure and be sure all of the events have the same RID values. The RID field includes zeros for each record. Maybe this is a clue to the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you have a simple monotonic route (all measures increase on each successive vertex)? Is the Route a singlepart feature or multipart feature? Does the trail loop back on itself or have branches? It seems that the route is a simple monotonic route. It is a singlepart feature (dissolved into a single line represented by one record). The trail has some meandering, but is generally linear with no major switchbacking etc. and no branching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you manually calculate the measures or use the Create Route tool to assign measures? I used the Create Route tool to convert my standard polyline (representing the trail) into a "route" (polyline M). Then I used the Locate Features Along Route tool to populate the measures field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the code. I do have some Python experience. However, I am not sure how I would implement/modify this code for my situation. Can this be used in the Python window in ArcMap or would it require IDLE (or other)? Would I reference my data by defining a variable named "feat" which points to my point feature class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 19:00:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91717#M3128</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-20T19:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91718#M3129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Sort by RID and then by measure and be sure all of the events have the same RID values.&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;The RID field includes zeros for each record. Maybe this is a clue to the problem?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is your actual Route ID for your trail 0? If not, these records are not located events and probably have a 0 measure, which would fall at the beginning of the route. However, I would have thought the events that did not locate properly would have been dropped by the tool, so I am not sure why you have these records at all if they are not actual events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Thank you for the code. I do have some Python experience. However, I am not sure how I would implement/modify this code for my situation. Can this be used in the Python window in ArcMap or would it require IDLE (or other)? Would I reference my data by defining a variable named "feat" which points to my point feature class?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a Field Calculation not a Python script and it is for the Routes not the points. It is just to make sure the Route measures are well formed. Right click the MMONOTONIC field I told you to add to the Routes and choose the Calculate Field. Then input the calculation. Each step is listed from top to bottom of the field calculator tool and there are 4 things you need to set. No modification of the code is needed. It just ensures that there are no hdden problems in your routes and become more important when you start dealing with large datasets, such as the 30,000+ routes I deal with.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 20:07:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91718#M3129</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-09-20T20:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91719#M3130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is your actual Route ID for your trail 0?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the Route ID of the trail is zero. So it seems that the RID field of the Events is populated appropriately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Right click the MMONOTONIC field I told you to add to the Routes and choose the Calculate Field.&amp;nbsp; Then input the calculation. Each step is listed from top to bottom of the field calculator tool and there are 4 things you need to set.&amp;nbsp; No modification of the code is needed.&amp;nbsp; It just ensures that there are no hdden problems in your routes and become more important when you start dealing with large datasets, such as the 30,000+ routes I deal with.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran the code you provided using field calculator in a new "MMONOTONIC" field (long integer) and recieved error 999999 (attached). Maybe because I only have one route represented by one record?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The attached image also shows the section of the trail where the calculation jumps and the attribute table of the route layer. For reference, this distance between the 13th and 14th point is about 500 meters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 20:41:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91719#M3130</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-20T20:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91720#M3131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, the Route ID of the trail is zero. So it seems that the RID field of the Events is populated appropriately.&lt;BR /&gt;&lt;BR /&gt;I ran the code you provided using field calculator in a new "MMONOTONIC" field (long integer) and recieved error 999999 (attached). Maybe because I only have one route represented by one record?&lt;BR /&gt;&lt;BR /&gt;The attached image also shows the section of the trail where the calculation jumps and the attribute table of the route layer. For reference, this distance between the 13th and 14th point is about 500 meters.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a screen shot of how the calculation should look for the MMONOTONIC field.&amp;nbsp; The codeblock only shows the beginning of the code, but the full code in my post code block is in that area.&amp;nbsp; I ran this calculation on my 30K+ routes and it worked fine.&amp;nbsp; I have not tested the code on actual NaN values in the route measures, so if the code fails NaN measures would be my suspected cause.&amp;nbsp; You can see the route MMonotonic value using the Get Route Locations tool in the Customize Linear Referencing commands area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Go ahead and screen shot the sorted event table so I can see what the actual events and values are.&amp;nbsp; Expand the tableview to full screen so I can see all of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I personally would not use an ID of 0, since that can confuse blank values in a shapefile with real values, since both will defualt to 0.&amp;nbsp; Also zoom into the 13 and 14 points.&amp;nbsp; Complex curving routes can cause 2 locations to be chosen by the tool within the search radius and then randomly pick which it wants to keep.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 21:03:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91720#M3131</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-09-20T21:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91721#M3132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the code to work just fine. It calculated 15 in the MMONOTONIC field. Seems like I do not have monotonicity. How can I correct this? Simplify the line?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I switched RID to 1 and re-generated the Event Table (attached).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I zoomed into points 13 and 14 and there doesn't appear to be any complex curving here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 21:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91721#M3132</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-20T21:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91722#M3133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I got the code to work just fine. It calculated 15 in the MMONOTONIC field. Seems like I do not have monotonicity. How can I correct this? Simplify the line?&lt;BR /&gt;&lt;BR /&gt;I switched RID to 1 and re-generated the Event Table (attached).&lt;BR /&gt;&lt;BR /&gt;I zoomed into points 13 and 14 and there doesn't appear to be any complex curving here.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A rating of 15 is the most messed up it can get and there is no way you can expect the measures to behave as though you had a simple monotonic route as the input.&amp;nbsp; Some measures are increasing, others are decreasing, others are identical next to each other and others are unassigned.&amp;nbsp; The measure order is true to the measure distribution on the route and your events give some clue how the route is actually pieced together in the underlying geometry, so that if you sorted the points in order by number that will show how the measures are assigned actually along the route.&amp;nbsp; Such errors are almost always due to bad topology at very small detail levels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In an edit session I would inspect the sketch properties to see if the Route is singlepart or multipart.&amp;nbsp; It is almost certainly multipart and joined together in a random segment order.&amp;nbsp; So lines are skipped and then reverse direction and double back.&amp;nbsp; To find out how many parts your line is made up of add a long field called Parts and calculate it with a simple Python calculation of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!Shape.PartCount!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming you have multiple parts I would probably use the explode tool in the Advanced Editing toolbar or the MultiPart to SinglePart tool to break the Route back up to its original component lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The original lines are probably both overlapping each other and not touching exactly end to end to begin with.&amp;nbsp; Bad topology like that will definitely mess up the measures and the way the Route is pieced together by the Create Route tool.&amp;nbsp; No lines can overlap each other or cross over each other and all nearly coincident ends must actually touch end to end to avoid errors.&amp;nbsp; To fix that I would convert it all to a file geodatabase feature class within a dataset and build a topology with rules for single part, no dangles, no crossings, and no overlaps and use the topology tools to fix the lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't want to go with the topology option, use either the Integrate tool or the Snap tool on the singlepart lines to make sure they join end to end without overlaps.&amp;nbsp; Running the Intersect tool with the lines option would show you where line segments overlap.&amp;nbsp; Running the Intersect tool again and with the points option where they cross or connect end to end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once that is fixed I would build the Route using the Create Route tool with the Upper Right or Lower Left orientation Option (assuming the line does not curve around to another direction trend at the actual ends of the overall line).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 22:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91722#M3133</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-09-20T22:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91723#M3134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I exploded the multipart feature into single parts (n = ~700). Then I ran the integrate tool with a 2 meter tolerance, which reduced the number of single parts by about one-half. Using the Intersect functions you suggested, I identified two locations of overlapping line segments and fixed these errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried re-building the route with the cleaned up trail lines and "upper right" option. The measures are now more random than before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Re-calculating MMONOTONIC gave me a value of 10 for each of the records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something else I should do to ensure monotonicity in the dataset?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 15:20:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91723#M3134</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-23T15:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91724#M3135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I built topology and rules for the trail then checked for errors and found many! I may try to generalize the line using Smooth Line since my measures do not need to be very precise.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 17:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91724#M3135</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-23T17:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91725#M3136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The smoothed line still has MMONOTONIC = 10 for all records. I built topology and rules for the smoothed line and there were no errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something else I can do to ensure monotonicity in the dataset?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 17:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91725#M3136</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-23T17:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91726#M3137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The smoothed line still has MMONOTONIC = 10 for all records. I built topology and rules for the smoothed line and there were no errors.&lt;BR /&gt;&lt;BR /&gt;Is there something else I can do to ensure monotonicity in the dataset?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10 is an odd result for the MMonotonic calculation.&amp;nbsp; It should mean that nearly every measure is the identical on every vertice.&amp;nbsp; Have you looked at the sketch properties of the route to see how many parts it is made up of and how the measures look?&amp;nbsp; Also you should set the M tolerance and resolution in the environment for the Create Route tool to ensure it has the decimal precision you need (if you use miles and it rounds to whole numbers, most measures will be identical).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in an edit session open the sketch properties and let me know what you see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also set hatching on the route layer to display the measure layout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also want to be sure again that this trail is not complete loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you screenshot the whole trail just so I understand what you are working with?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 14:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91726#M3137</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-09-24T14:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91727#M3138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So in an edit session open the sketch properties and let me know what you see.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm have an edit session open and selected sketch properties. However, I am not seeing anything listed (image attached). I have not done much editing since Version 3.x and the new editing interface is a bit confusing to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are 368 features that comprise the trail (trail attribute table also attached).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could also set hatching on the route layer to display the measure layout.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also not familiar with how to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I also want to be sure again that this trail is not complete loop.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can you screenshot the whole trail just so I understand what you are working with?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The trail is not a complete loop.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 14:54:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91727#M3138</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-24T14:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91728#M3139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had previously ran MMONOTONIC on the trail data (not the trail as a "route"). After running it on the route, I obtain values of either 15 or 9 for each feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It does look like there are overlapping lines (9) and other problems (15). I was hoping these had been cleaned up because I checked for errors with topology rules and everything seemed fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 15:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91728#M3139</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-24T15:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91729#M3140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm have an edit session open and selected sketch properties. However, I am not seeing anything listed (image attached). I have not done much editing since Version 3.x and the new editing interface is a bit confusing to me.&lt;BR /&gt;&lt;BR /&gt;There are 368 features that comprise the trail (trail attribute table also attached).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also not familiar with how to do this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The trail is not a complete loop.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To build the trail you need a single attribute on all segments when building the Create Route.&amp;nbsp; Having 300+ segments makes no sense for positioning events, since each event will have the same measures, since each segment will restart the measures.&amp;nbsp; Breaking it apart was only a temporary step to help you clean up the topology, but once that is clean you want to rebuild a single route feature.&amp;nbsp; Therefore Make id 1 again on all segments and then Create Route with the Length option and the orientation priority using that id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To see the Sketch properties you have to select a single feature and then edit its vertices.&amp;nbsp; Right click the single selected feature with the Editor cursor and choose "Edit Vertices" and the sketch table will show up.&amp;nbsp; Only look at the sketch properties of the route built the way I explained above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fact that the original lines were not Routes is why they came up as 10.&amp;nbsp; Everything was Not a Number so it was all one value.&amp;nbsp; My logic should probably be altered to make that just an 8, but in any case the fact that there were not polyline M values explains the answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To apply hatches, choose a route feature layer (polyline M features) and open the Property window for the layer (right click and choose Properties or double click the layer).&amp;nbsp; There will be a Hatches tab.&amp;nbsp; See the help &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00390000001n000000"&gt;here on setting up hatching&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; But only do that after building the route on the combined segments that form a single trail.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 16:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91729#M3140</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-09-24T16:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91730#M3141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I decided to "trace" over the trail layer and although my new layer does not capture all of the twists and turns of the trail, at least I can get a general sense for the relative difference in distance between the sites along the trail. The Linear Referencing tools and measures calculated just fine after creating the new (clean) line to generate the route with. Someone else gave the original trail data to me and it clearly has bad topology!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for all of your help! All of the suggestions you made were helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 17:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91730#M3141</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2013-09-24T17:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Locate Features Along Route (Linear Referencing)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91731#M3142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I decided to "trace" over the trail layer and although my new layer does not capture all of the twists and turns of the trail, at least I can get a general sense for the relative difference in distance between the sites along the trail. The Linear Referencing tools and measures calculated just fine after creating the new (clean) line to generate the route with. Someone else gave the original trail data to me and it clearly has bad topology!&lt;BR /&gt;&lt;BR /&gt;Many thanks for all of your help! All of the suggestions you made were helpful.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad I could help.&amp;nbsp; I knew once you had a clean line topology your problems would go away, so I'm glad you worked out a way to get there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 18:48:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problem-with-locate-features-along-route-linear/m-p/91731#M3142</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-09-24T18:48:28Z</dc:date>
    </item>
  </channel>
</rss>

