<?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: create line-chord from higher point to lower in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-line-chord-from-higher-point-to-lower/m-p/361524#M28539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

fc_in = r"C:\Forum\test.gdb\Polyline_chord"
fc_out = r"C:\Forum\test.gdb\Polyline_straight"

sr = arcpy.Describe(fc_in).spatialReference

lines = []
with arcpy.da.SearchCursor(fc_in, ("SHAPE@")) as curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline_in = row[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline_out = arcpy.Polyline(arcpy.Array([polyline_in.firstPoint, polyline_in.lastPoint]), sr)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lines.append(polyline_out)

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(lines, fc_out)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:52:03 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2021-12-11T16:52:03Z</dc:date>
    <item>
      <title>create line-chord from higher point to lower</title>
      <link>https://community.esri.com/t5/python-questions/create-line-chord-from-higher-point-to-lower/m-p/361521#M28536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1). Hello i want to create 2 species of line. The first i created it with straight segment form editing tools, as for the second i want it to have the same start and end point but to be drawn as a chord on the terrain, and not on the surface of it, to calculate the difference of their heights.Any help? Should i use traverse editing tool for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 15:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-line-chord-from-higher-point-to-lower/m-p/361521#M28536</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-01-28T15:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: create line-chord from higher point to lower</title>
      <link>https://community.esri.com/t5/python-questions/create-line-chord-from-higher-point-to-lower/m-p/361522#M28537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain what exactly it is you mean by "chord"? If you have a picture to explain what you are after that would be helpful too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 22:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-line-chord-from-higher-point-to-lower/m-p/361522#M28537</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-28T22:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: create line-chord from higher point to lower</title>
      <link>https://community.esri.com/t5/python-questions/create-line-chord-from-higher-point-to-lower/m-p/361523#M28538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="z.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/56061_z.jpg" style="width: 620px; height: 410px;" /&gt;&lt;/P&gt;&lt;P&gt;i want to create the green line which will be precisly above the black line, because i want to calculate the differences at their altitudes at the points with red colour&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 20:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-line-chord-from-higher-point-to-lower/m-p/361523#M28538</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-01-29T20:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: create line-chord from higher point to lower</title>
      <link>https://community.esri.com/t5/python-questions/create-line-chord-from-higher-point-to-lower/m-p/361524#M28539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

fc_in = r"C:\Forum\test.gdb\Polyline_chord"
fc_out = r"C:\Forum\test.gdb\Polyline_straight"

sr = arcpy.Describe(fc_in).spatialReference

lines = []
with arcpy.da.SearchCursor(fc_in, ("SHAPE@")) as curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline_in = row[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polyline_out = arcpy.Polyline(arcpy.Array([polyline_in.firstPoint, polyline_in.lastPoint]), sr)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lines.append(polyline_out)

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(lines, fc_out)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-line-chord-from-higher-point-to-lower/m-p/361524#M28539</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T16:52:03Z</dc:date>
    </item>
  </channel>
</rss>

