<?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 Sorting Linear Features in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135200#M4615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having a bit of trouble sorting a polyline feature class in the correct order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I have a polyline feature calss with multiple features in it that form a single line. This feature class was produced by taking a single polyline and splitting it at specified points (using the Split at Point tool). The resulting feature class has multiple polyline features in a somewhat random order. What I need to do is re-order these feature classes from a start point at one end of the line to the end of the line. I have tried the Sort tool and that works some of the time, but not all of the time as occasionally the original line winds and turns a lot and that seems to mess up the Sort tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know of a simple way or tool to do this without having to get into any crazy Python scripting that manipulates the geometry? This seems like a fairly logical need, so I'm hoping there is a simple way to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 14:27:37 GMT</pubDate>
    <dc:creator>MattBull</dc:creator>
    <dc:date>2013-04-29T14:27:37Z</dc:date>
    <item>
      <title>Sorting Linear Features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135200#M4615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having a bit of trouble sorting a polyline feature class in the correct order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I have a polyline feature calss with multiple features in it that form a single line. This feature class was produced by taking a single polyline and splitting it at specified points (using the Split at Point tool). The resulting feature class has multiple polyline features in a somewhat random order. What I need to do is re-order these feature classes from a start point at one end of the line to the end of the line. I have tried the Sort tool and that works some of the time, but not all of the time as occasionally the original line winds and turns a lot and that seems to mess up the Sort tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know of a simple way or tool to do this without having to get into any crazy Python scripting that manipulates the geometry? This seems like a fairly logical need, so I'm hoping there is a simple way to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 14:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135200#M4615</guid>
      <dc:creator>MattBull</dc:creator>
      <dc:date>2013-04-29T14:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Linear Features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135201#M4616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The data can sort either alpabetically or numerically.&amp;nbsp; If you have numbers in your sort and letters it will sort alphabetically so your numbers will not sort properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to keep them in order when you split your best practice may be to start at the digitized beginning and split it while going down the line. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having a bit of trouble sorting a polyline feature class in the correct order.&lt;BR /&gt;&lt;BR /&gt;Basically I have a polyline feature calss with multiple features in it that form a single line. This feature class was produced by taking a single polyline and splitting it at specified points (using the Split at Point tool). The resulting feature class has multiple polyline features in a somewhat random order. What I need to do is re-order these feature classes from a start point at one end of the line to the end of the line. I have tried the Sort tool and that works some of the time, but not all of the time as occasionally the original line winds and turns a lot and that seems to mess up the Sort tool. &lt;BR /&gt;&lt;BR /&gt;Does anyone know of a simple way or tool to do this without having to get into any crazy Python scripting that manipulates the geometry? This seems like a fairly logical need, so I'm hoping there is a simple way to do it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 15:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135201#M4616</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2013-04-30T15:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Linear Features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135202#M4617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as 'sorting' to get the physical continuity of the orginal line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;section 1 connects to section 2 to section 3, and so forth&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One would build a route, and the sections table would provide that order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without buying the Network Analyst extension, and without populating a 'step' attribute by hand,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you will need to do some "manipulation of geometry".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way might be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;selecting the start segment,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make a feature layer of that start line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;calc the step attibute you added (did I mention that?) to 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select by location on a layer of all the lines&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this should select 2 lines, the start line and the next one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;remove the start line from the selection (use select by attribute to remove step attibute is not null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make a layer of that 'next' segment (the selected one)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;calculate the step attribute to 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... and repeat the steps above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This time select by location&amp;nbsp; will return 3 lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the indentical one, the previous one, and the next one (which is the one you want)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;again, use select by attribute to remove step attibute is not null to get just the new segment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make a new layer with that one and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;calc its attribute to 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rinse. repeat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sort of long and tedious I know...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 16:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135202#M4617</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2013-04-30T16:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Linear Features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135203#M4618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The data can sort either alpabetically or numerically.&amp;nbsp; If you have numbers in your sort and letters it will sort alphabetically so your numbers will not sort properly.&lt;BR /&gt;&lt;BR /&gt;If you want to keep them in order when you split your best practice may be to start at the digitized beginning and split it while going down the line.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Sort tool also sorts the lines spatially, but as I mentioned, sometimes these lines wind and turn and that seems to mess up the Sort tool, so that is not an option. I've been re-ordering them manually, but that can take a colossal amount of time to figure out which one goes where, hence why I'm loooking for a way to automate the process. This is part of a much larger workflow, and this is the last step in order to completely automate the whole process, which is ultimately the goal here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've resorted to Python scripting and have met with moderate success so far.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 16:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135203#M4618</guid>
      <dc:creator>MattBull</dc:creator>
      <dc:date>2013-04-30T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Linear Features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135204#M4619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use the Create Route tool.&amp;nbsp; If each end touches another end the line will rebuild successfully from one end to the other.&amp;nbsp; THe only caveat is for lines that are perpendicular to the corner you specify to build from.&amp;nbsp; Then it may grab a position closest to that corner and double back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume you kept your original lines?&amp;nbsp; If so build the Route from that.&amp;nbsp; That will assign measures to the lines before you split them.&amp;nbsp; Then I would locate the point on the line to get M values for the points (just as a precaution), then split at points.&amp;nbsp; Calculate the M values to each segment (Python field calculation of !Shape.FirstPoint.M! for the from measure and !Shape.LastPoint.M! for the end measure) and that value should be your sort order for a given original Line_ID.&amp;nbsp; I believe that the split of the line will cause an interpolation of measures at the split points.&amp;nbsp; However, if NAN values appear at the end points of the split, then prior to using the Create Route tool create vertices at the split point positions so that they will have vertices where measures will be assigned (probably using a Snap tool).&amp;nbsp; Back up your data if you have to use any destructive tools like Integrate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Centroids of the split lines you are currently working with should allow you to do a Spatial Join to the resplit lines, assuming you have attributes you have created since splitting the lines that you need to preserve or transfer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 20:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135204#M4619</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-04-30T20:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Linear Features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135205#M4620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Then I would locate the point on the line to get M values for the points "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a bit confused by this part. What do you mean and how exactly do I locate the point on the line to get M values for the points?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 21:13:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135205#M4620</guid>
      <dc:creator>MattBull</dc:creator>
      <dc:date>2013-04-30T21:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Linear Features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135206#M4621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;"Then I would locate the point on the line to get M values for the points "&lt;BR /&gt;&lt;BR /&gt;I'm a bit confused by this part. What do you mean and how exactly do I locate the point on the line to get M values for the points?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the Locate Features Along Route tool to get the M values of the points once you have an LR route system or roads established.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003m00000007000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003m00000007000000.htm&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; Probably this step is optional, since I believe the split at points tool will interpolate the M values of the line ends automatically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 22:05:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135206#M4621</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-04-30T22:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Linear Features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135207#M4622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This was a very interesting solution that I probably wouldn't have come up with on my own. I did get this into a script that sorted the line segments properly. Basically created one route for the entire line, split the line, calculated the M value (I used the !Shape.LastPoint.M! function) and then Sorted according to the M values. Voila, the resulting feature class had the lines sorted correctly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much, this will allow me to automate my entire workflow for this particular project and save me some time in the future!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 14:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sorting-linear-features/m-p/135207#M4622</guid>
      <dc:creator>MattBull</dc:creator>
      <dc:date>2013-05-01T14:40:17Z</dc:date>
    </item>
  </channel>
</rss>

