<?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: point cloud to polyline feature in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562189#M1271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wait... the lines are without Z... in the previous version.&lt;/P&gt;&lt;P&gt;Yep this is better:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="result3D.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/52564_result3D.png" style="width: 620px; height: 321px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached a new version of the lines. You will still have to set the projection of the data, since I do not know what projection your data is in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2015 21:43:52 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2015-01-19T21:43:52Z</dc:date>
    <item>
      <title>point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562171#M1253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a txt file with x,y,z and 0/1 columns. There are about 35000 point coordinates. When displayed, a pattern is clearly visible. How should i convert it to a line feature so that it can be used as a barrier in IDW interpolation. Please note: I already tried point to line feature tool but that doesn't follow the point pattern.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jan 2015 07:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562171#M1253</guid>
      <dc:creator>TanyaBurman1</dc:creator>
      <dc:date>2015-01-18T07:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562172#M1254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have a picture of the pattern?&amp;nbsp; The line will follow the pattern that they are in within the file, not as you see them on screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jan 2015 08:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562172#M1254</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-01-18T08:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562173#M1255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could convert the point cloud to raster (each point the same value) and then convert the raster to polygons (or line if possible) and use that as pattern. &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌ is absolutely right and yes it would be interesting to see what this pattern looks like. It will also to see if what I'm suggesting will work for your case or not...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jan 2015 18:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562173#M1255</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-18T18:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562174#M1256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/52466_Capture.PNG" style="width: 620px; height: 654px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/52467_Capture2.PNG" style="width: 620px; height: 682px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jan 2015 22:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562174#M1256</guid>
      <dc:creator>TanyaBurman1</dc:creator>
      <dc:date>2015-01-18T22:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562175#M1257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your points were collected via a gps, it appears you downloaded waypoints which have not been differentiated as to which route they were collected for.&amp;nbsp; It is merely connecting all the point in the order they were collected. You could separate them out into the tracklines if that information was collected.&amp;nbsp; Alternately, if you collected tracks and started and stopped the tracks properly, then you already have the data...otherwise, you could use the trackline and split it up into its component parts.&amp;nbsp; This will probably take as much time as other solutions and will probably yield superior data.&amp;nbsp; When saving tracks, make sure you delete the tracklog between each save otherwise, the whole log will be sequentially appended to each save&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jan 2015 23:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562175#M1257</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-01-18T23:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562176#M1258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe we could write a python script that will skip a line between vertices when it is larger than a certain length. In that case you could play with that tolerance (max length) and get a result that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the points maybe in the right order, but just lacking an ID for the parts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 02:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562176#M1258</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-19T02:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562177#M1259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, the whole point of those data points is to create breaklines for IDW interpolation. What would be the best solution for it? I converted the points to raster to polyline features but the result are not what i was looking for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 17:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562177#M1259</guid>
      <dc:creator>TanyaBurman1</dc:creator>
      <dc:date>2015-01-19T17:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562178#M1260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the screendumps you included, I can imagine that the conversion to raster was not useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to include (part of) the points? I would like to see if playing with the maximum length of the line could work for your data to get the result you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 17:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562178#M1260</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-19T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562179#M1261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the txt file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 18:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562179#M1261</guid>
      <dc:creator>TanyaBurman1</dc:creator>
      <dc:date>2015-01-19T18:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562180#M1262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tanya, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quick question... what is in the forth column (the 0 and 1 values)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 18:27:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562180#M1262</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-19T18:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562181#M1263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wherever you see a 0, that means its a start of a new line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp; Z&amp;nbsp;&amp;nbsp; 0 -&amp;gt;Start of new line segment&lt;/P&gt;&lt;P&gt;X&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp; Z&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;X&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp; Z&amp;nbsp;&amp;nbsp; 1 -&amp;gt;End of this line segment&lt;/P&gt;&lt;P&gt;X&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp; Z&amp;nbsp;&amp;nbsp; 0 -&amp;gt; Start of a new line segment&lt;/P&gt;&lt;P&gt;X&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp; Z&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;X&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp; Z&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 19:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562181#M1263</guid>
      <dc:creator>TanyaBurman1</dc:creator>
      <dc:date>2015-01-19T19:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562182#M1264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If fact can you confirm the whole column header list.&amp;nbsp; I have seen the 0,1 thing in some gps outputs indicating the start and stop of a tracklog and/or when movement paused sufficiently long enough that the log resets its self, however, the continuous tracklog keeps going.&amp;nbsp; There is no guarantee that the numbers before and after a 1, 0,1 triplet will be the same, since it can take some time before a unit realises that it is moving again.&amp;nbsp; But if the headers could be confirmed then the distance between points could be calculated as Xander suggests and the log could be split accordingly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 19:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562182#M1264</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-01-19T19:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562183#M1265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you just posted the information required sorry... then what I suggested is the way that the log could be parsed to produce separate segments&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 19:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562183#M1265</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-01-19T19:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562184#M1266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data/header is confirmed. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 19:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562184#M1266</guid>
      <dc:creator>TanyaBurman1</dc:creator>
      <dc:date>2015-01-19T19:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562185#M1267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you guide me to get me started on it. What exactly should I search for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 19:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562185#M1267</guid>
      <dc:creator>TanyaBurman1</dc:creator>
      <dc:date>2015-01-19T19:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562186#M1268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I don't have time to finish it right now, but I will provide a numpy solution that at least splits your array into its component parts.&amp;nbsp; These can then be used to reassemble polylines.&amp;nbsp; I will try to return to this later in case anyone hasn't come up with a simple solution...but this one took no time to implement up to the part of using the output results to reassemble.&amp;nbsp; I just grabbed some of your data and made a list of tuples of coordinates, converted them to an ndarray and gave them some headers, then split up the data (aka...an array) into subarrays, which can then be reassembled into polylines using geometry objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; import numpy as np
&amp;gt;&amp;gt;&amp;gt; np.set_printoptions(precision=4,threshold=10,edgeitems=3,linewidth=60, suppress=True,)
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; a = [(-5669.381,&amp;nbsp; 5657594.686,1047.036,&amp;nbsp; 0),
&amp;nbsp;&amp;nbsp; (-5653.986,&amp;nbsp; 5657609.230,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1046.894,&amp;nbsp; 1),
&amp;nbsp;&amp;nbsp; (-5645.052,&amp;nbsp; 5657617.510,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1046.794,&amp;nbsp; 1),
&amp;nbsp;&amp;nbsp; (-5637.189,&amp;nbsp; 5657624.986,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1046.734,&amp;nbsp; 1),
&amp;nbsp;&amp;nbsp; (-5629.506,&amp;nbsp; 5657624.986,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1046.501,&amp;nbsp; 0),
&amp;nbsp;&amp;nbsp; (-5638.223,&amp;nbsp; 5657616.218,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1046.584,&amp;nbsp; 1),
&amp;nbsp;&amp;nbsp; (-5648.777,&amp;nbsp; 5657606.484,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1046.654,&amp;nbsp; 1),
&amp;nbsp;&amp;nbsp; (-5669.381,&amp;nbsp; 5657587.371,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1046.869,&amp;nbsp; 1),
&amp;nbsp;&amp;nbsp; (-5669.382,&amp;nbsp; 5657530.797,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1046.489,&amp;nbsp; 0),
&amp;nbsp;&amp;nbsp; (-5668.446,&amp;nbsp; 5657531.698,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1046.485,&amp;nbsp; 1)]
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; arr = np.array(a,dtype= [('x','&amp;lt;f8'),('y','&amp;lt;f8'),('z','&amp;lt;f8'),('split','&amp;lt;i4')])
&amp;gt;&amp;gt;&amp;gt; arr
array([(-5669.381, 5657594.686, 1047.036, 0),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (-5653.986, 5657609.23, 1046.894, 1),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (-5645.052, 5657617.51, 1046.794, 1),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (-5637.189, 5657624.986, 1046.734, 1),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (-5629.506, 5657624.986, 1046.501, 0),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (-5638.223, 5657616.218, 1046.584, 1),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (-5648.777, 5657606.484, 1046.654, 1),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (-5669.381, 5657587.371, 1046.869, 1),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (-5669.382, 5657530.797, 1046.489, 0),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (-5668.446, 5657531.698, 1046.485, 1)], 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtype=[('x', '&amp;lt;f8'), ('y', '&amp;lt;f8'), ('z', '&amp;lt;f8'), ('split', '&amp;lt;i4')])
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; # get the indices where 0 occurs in the split column
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; indx = np.where(arr['split']==0)&amp;nbsp;&amp;nbsp; # the where clause
&amp;gt;&amp;gt;&amp;gt; indx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # it returns a tuple containing an array
(array([0, 4, 8]),)
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; indices = indx[0].tolist()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # convert the first tuple to a list
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; out = np.split(arr,indices,axis=0) # split the array using the indices
&amp;gt;&amp;gt;&amp;gt; 
&amp;gt;&amp;gt;&amp;gt; for i in out:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # here it is for further processing
...&amp;nbsp; print "\n", i
...
[]
[(-5669.381, 5657594.686, 1047.036, 0)
 (-5653.986, 5657609.23, 1046.894, 1)
 (-5645.052, 5657617.51, 1046.794, 1)
 (-5637.189, 5657624.986, 1046.734, 1)]
[(-5629.506, 5657624.986, 1046.501, 0)
 (-5638.223, 5657616.218, 1046.584, 1)
 (-5648.777, 5657606.484, 1046.654, 1)
 (-5669.381, 5657587.371, 1046.869, 1)]
[(-5669.382, 5657530.797, 1046.489, 0)
 (-5668.446, 5657531.698, 1046.485, 1)]
&amp;gt;&amp;gt;&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562186#M1268</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T00:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562187#M1269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes more sense...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first started to play with the max distance between two vertices and with 10 meters it started to make sense, yet created some errores. With the 0 as beginning of a new line it is much better:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="result.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/52563_result.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;If you're interested I can include the code. Is is ugly, but it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 20:16:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562187#M1269</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-19T20:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562188#M1270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, just in case you're interested, but I'm sure Dan will come up with a better solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;i&lt;SPAN style="line-height: 1.5;"&gt;mport arcpy&lt;/SPAN&gt;

import os
import math

txt = r"D:\Xander\GeoNet\PointCloud\sample.txt"
fc_pnt = r"D:\Xander\GeoNet\PointCloud\gdb\test.gdb\points05"
fc_lines = r"D:\Xander\GeoNet\PointCloud\gdb\test.gdb\lines05"
max_dist = 25

arcpy.env.overwriteOutput = True
# sr = arcpy.SpatialReference()

# create empty fc
pnt_ws, pnt_name = os.path.split(fc_pnt)
arcpy.CreateFeatureclass_management(pnt_ws, pnt_name, "POINT", "#", "DISABLED", "ENABLED")

fld_X = "X"
fld_Y = "Y"
fld_Z = "Z"
fld_A = "Att"
fld_dist = "Dist"

arcpy.AddField_management(fc_pnt, fld_X, "Double")
arcpy.AddField_management(fc_pnt, fld_Y, "Double")
arcpy.AddField_management(fc_pnt, fld_Z, "Double")
arcpy.AddField_management(fc_pnt, fld_A, "Integer")
arcpy.AddField_management(fc_pnt, fld_dist, "Double")

flds = ("SHAPE@", fld_X, fld_Y, fld_Z, fld_A, fld_dist)

lst_lines = []
with arcpy.da.InsertCursor(fc_pnt, flds) as curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # open txt file
&amp;nbsp;&amp;nbsp;&amp;nbsp; arr_line = arcpy.Array()
&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 0
&amp;nbsp;&amp;nbsp;&amp;nbsp; with open(txt, 'r') as f:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for r in f.readlines():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i += 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r = r.replace('\n', '')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst = r.split(' ')

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i % 1000 == 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Processing line: {0}".format(i)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i == 1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = float(lst[3])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = float(lst[5])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xp = x
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yp = y
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xp = x
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yp = y
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = float(lst[3])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = float(lst[5])

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z = float(lst[10])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a = int(lst[12])

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dist = math.hypot(xp-x, yp-y)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt = arcpy.Point(x, y, z)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt_g = arcpy.PointGeometry(pnt)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curs.insertRow((pnt_g, x, y, z, a, dist, ))

##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if dist &amp;lt; max_dist:
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # add to line
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr_line.add(pnt)
&lt;SPAN style="line-height: 1.5;"&gt;##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/SPAN&gt;
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # add previous line to list
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arr_line.count &amp;gt; 1:
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline = arcpy.Polyline(arr_line)
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_lines.append(polyline)
##
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create a new line
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr_line = arcpy.Array()
##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr_line.add(pnt)

&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if a == 1:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # add to line
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr_line.add(pnt)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # add previous line to list
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arr_line.count &amp;gt; 1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline = arcpy.Polyline(arr_line)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_lines.append(polyline)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create a new line
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr_line = arcpy.Array()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr_line.add(pnt)

&lt;SPAN style="line-height: 1.5;"&gt;arcpy.CopyFeatures_management(lst_lines, fc_lines)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562188#M1270</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T00:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562189#M1271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wait... the lines are without Z... in the previous version.&lt;/P&gt;&lt;P&gt;Yep this is better:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="result3D.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/52564_result3D.png" style="width: 620px; height: 321px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached a new version of the lines. You will still have to set the projection of the data, since I do not know what projection your data is in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 21:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562189#M1271</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-19T21:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: point cloud to polyline feature</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562190#M1272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I am late...&lt;BR /&gt;This is the numpy version without Xander's 3D point file and the distance calculations.&lt;/P&gt;&lt;P&gt;It is fairly short and gets the job done.&lt;BR /&gt;One comment, about the data structure.&amp;nbsp; There are many parallel lines which I presume are curbside points. If your final attempt is to produce a barriers file for IDW interpolation, I can assure you that it will fail miserably since you have far too many barriers and some of them are extremely close together...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;But non-the-less... your gps data can be convert to polylines using Xander's approach or mine. EDIT..added import arcpy which I cut off&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# textfile_array.py
import arcpy
import numpy as np
np.set_printoptions(precision=4,threshold=10,edgeitems=3,linewidth=60, suppress=True,)
# data type assumes prior knowledge of data structure
dt = [('x','&amp;lt;f8'),('y','&amp;lt;f8'),('z','&amp;lt;f8'),('split','&amp;lt;i4')] #assumes prior knowledge
#&amp;nbsp; read the text file and specify an output file
arr = np.loadtxt('c:/temp/sample.txt',dtype=dt,unpack=False)
output_shp = 'c:/Temp/x.shp'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # alter to suit
indx = np.where(arr['split']==0)&amp;nbsp; # the where clause
indices = indx[0].tolist()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # convert the first tuple to a list
out = np.split(arr,indices,axis=0) # split the array using the indices
all_shps = []&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # store the polylines
print "\nProcessing array, N = ", np.size(arr)
print "with sub arrays, n = ", np.size(out,axis=0) 
for sub in out:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # for each sub list
&amp;nbsp; if np.size(sub,axis=0) &amp;lt; 2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # dump anything with too few points
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "too few points"
&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp; pnts = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in sub:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnts.append(arcpy.Point(X=i[0],Y=i[1],Z=i[2]))
&amp;nbsp;&amp;nbsp;&amp;nbsp; p_arr = arcpy.Array(pnts)
&amp;nbsp;&amp;nbsp;&amp;nbsp; p_line = arcpy.Polyline(p_arr)
&amp;nbsp;&amp;nbsp;&amp;nbsp; all_shps.append(p_line)
arcpy.CopyFeatures_management(all_shps, output_shp)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the close-up image for what I mean&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="52753" alt="sample_lines.jpg" class="jive-image image-1" height="389" src="https://community.esri.com/legacyfs/online/52753_sample_lines.jpg" style="width: 248px; height: 243px;" width="452" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:15:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/point-cloud-to-polyline-feature/m-p/562190#M1272</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T00:15:09Z</dc:date>
    </item>
  </channel>
</rss>

