<?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: Calculate Z values of 3D Polyline for new vertices in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculate-z-values-of-3d-polyline-for-new-vertices/m-p/409401#M32291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, once you have moved or inserted vertices, the only way is to re-interpolate the elevation from the dem using interpolate shape. To calculate an elevation from the vertex before and after would be a mistake surely? What if you have reshaped a small segment of line to better follow the stream bottom (which is what you appear to be doing).&lt;/P&gt;&lt;P&gt;So without the original dem, where are the elevations coming from?&lt;/P&gt;&lt;P&gt;The line segment geom object could be fed into Interpolate shape to create an in_memory fc, then update the original from that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 16:39:58 GMT</pubDate>
    <dc:creator>NeilAyres</dc:creator>
    <dc:date>2016-08-11T16:39:58Z</dc:date>
    <item>
      <title>Calculate Z values of 3D Polyline for new vertices</title>
      <link>https://community.esri.com/t5/python-questions/calculate-z-values-of-3d-polyline-for-new-vertices/m-p/409399#M32289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a 3D polyline from a 3D point feature class and then reshaped the polyline feature class to follow the meandering of the river thawleg (centreline). I would like to calculate the Z values for the new vertices that are added to the 3D polyline based on the existing vertices that already have Z values and the distance along the polyline as a linear proportion of the elevation drop. Is there a way that I can achieve the following in&amp;nbsp; python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="215135" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/215135_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Points (Red) were used to create the 3D polyline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="215137" class="image-2 jive-image" height="610" src="https://community.esri.com/legacyfs/online/215137_pastedImage_3.png" style="width: auto; height: auto;" width="532" /&gt;&lt;/P&gt;&lt;P&gt;New vertices added through reshaping 3D Polyline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-z-values-of-3d-polyline-for-new-vertices/m-p/409399#M32289</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-08-11T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Z values of 3D Polyline for new vertices</title>
      <link>https://community.esri.com/t5/python-questions/calculate-z-values-of-3d-polyline-for-new-vertices/m-p/409400#M32290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not to nitpick, but a &lt;EM&gt;thalweg&lt;/EM&gt; is often not the same as a centerline. A &lt;EM&gt;thalweg&lt;/EM&gt; is the lowest point in a waterbody and in a moving waterbody that meanders it will be found on the &lt;STRONG&gt;&lt;EM&gt;outside of the curve&lt;/EM&gt;&lt;/STRONG&gt; (not in the center).&amp;nbsp; Depending upon what your goal is of this analysis, that can throw things a bit if centerline data is used instead of &lt;EM&gt;thalweg &lt;/EM&gt;location data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Thalweg" title="https://en.wikipedia.org/wiki/Thalweg"&gt;Thalweg - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="thalweg_asymetrical.jpg" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/215166_thalweg_asymetrical.jpg" style="width: 620px; height: 229px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="215165" alt="thalweg.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/215165_thalweg.jpg" style="width: 620px; height: 207px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://aerialgeologist.blogspot.com/2015/04/thawing-thalweg.html" title="http://aerialgeologist.blogspot.com/2015/04/thawing-thalweg.html"&gt;images source:&amp;nbsp; Aerial Geologist: Thawing Thalweg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT - added images from the link to help folks better visualize the spatial location of a thalweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:44:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-z-values-of-3d-polyline-for-new-vertices/m-p/409400#M32290</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2016-08-11T15:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Z values of 3D Polyline for new vertices</title>
      <link>https://community.esri.com/t5/python-questions/calculate-z-values-of-3d-polyline-for-new-vertices/m-p/409401#M32291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, once you have moved or inserted vertices, the only way is to re-interpolate the elevation from the dem using interpolate shape. To calculate an elevation from the vertex before and after would be a mistake surely? What if you have reshaped a small segment of line to better follow the stream bottom (which is what you appear to be doing).&lt;/P&gt;&lt;P&gt;So without the original dem, where are the elevations coming from?&lt;/P&gt;&lt;P&gt;The line segment geom object could be fed into Interpolate shape to create an in_memory fc, then update the original from that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 16:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-z-values-of-3d-polyline-for-new-vertices/m-p/409401#M32291</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-08-11T16:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Z values of 3D Polyline for new vertices</title>
      <link>https://community.esri.com/t5/python-questions/calculate-z-values-of-3d-polyline-for-new-vertices/m-p/409402#M32292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a Python Code sample in the help section for Interpolate Shape that may be use.&amp;nbsp; Note that it requires access to the &lt;EM&gt;3D Analyst extension&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/3d-analyst/interpolate-shape.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/3d-analyst/interpolate-shape.htm"&gt;Interpolate Shape—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-z-values-of-3d-polyline-for-new-vertices/m-p/409402#M32292</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2016-08-11T17:32:04Z</dc:date>
    </item>
  </channel>
</rss>

