<?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: Update/Add Z values for the vertices of a polyline - How to? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/update-add-z-values-for-the-vertices-of-a-polyline/m-p/486517#M37968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The old example is as simple as it gets. 8-) You need to define a new featureclass that is Z-aware so that you can iterate through the features, parts, vertices to extract the coordinates and then roll back the process to create new features from arrays.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have x,y,z points then the easiest way would be to use the tool PointsToLine to rebuild a series of lines.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 04:53:16 GMT</pubDate>
    <dc:creator>KimOllivier</dc:creator>
    <dc:date>2012-07-30T04:53:16Z</dc:date>
    <item>
      <title>Update/Add Z values for the vertices of a polyline - How to?</title>
      <link>https://community.esri.com/t5/python-questions/update-add-z-values-for-the-vertices-of-a-polyline/m-p/486516#M37967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For creating a polyline feature class from xy coordinates, I�??m able to follow the example python script given at the ArcGIS 10 help library...&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Writing_geometries/002z0000001v000000/"&gt;Writing Geometries&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to take this a step further. Assuming an existing polyline feature class has the ability to store Z values in the geometry field, how one would craft a python script to iterate the vertices of the polylines and add/update Z values to them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I understand it, the process would involve using the UpdateCursor and InsertCursor at the same time.&amp;nbsp; I have found an &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=1729&amp;amp;t=206791#621987"&gt;old example&lt;/A&gt;&lt;SPAN&gt; but I'm struggling to make sense of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone provide a very simple Python example that demonstrates how this could be done under an ArcGIS 10.x platform?&amp;nbsp;&amp;nbsp; I just need a simple example that explains the basic concepts and steps involved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony G&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2012 06:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-add-z-values-for-the-vertices-of-a-polyline/m-p/486516#M37967</guid>
      <dc:creator>AnthonyGangemi</dc:creator>
      <dc:date>2012-07-29T06:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update/Add Z values for the vertices of a polyline - How to?</title>
      <link>https://community.esri.com/t5/python-questions/update-add-z-values-for-the-vertices-of-a-polyline/m-p/486517#M37968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The old example is as simple as it gets. 8-) You need to define a new featureclass that is Z-aware so that you can iterate through the features, parts, vertices to extract the coordinates and then roll back the process to create new features from arrays.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have x,y,z points then the easiest way would be to use the tool PointsToLine to rebuild a series of lines.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 04:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-add-z-values-for-the-vertices-of-a-polyline/m-p/486517#M37968</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2012-07-30T04:53:16Z</dc:date>
    </item>
  </channel>
</rss>

