<?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>idea ArcPy: Edit vertex without removing true curves in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idi-p/1140675</link>
    <description>&lt;P&gt;I have a multipart polyline FC that has &lt;STRONG&gt;true curves&amp;nbsp;&lt;/STRONG&gt;(&lt;EM&gt;Oracle 18c SDE.ST_GEOMETRY)&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I want to &lt;A href="https://gis.stackexchange.com/questions/422560/set-m-values-to-cumulative-length-of-line-via-arcpy" target="_self"&gt;update the coordinates of the vertices&lt;/A&gt; in the lines via ArcPy — without losing the true curves:&lt;/P&gt;&lt;PRE&gt;import arcpy
connection = "Database Connections\my_conn.sde"
feature_class = connection + "\my_owner.my_fc"
spatial_reference = arcpy.Describe(feature_class).spatialReference

with arcpy.da.Editor(connection) as edit_session:
    with arcpy.da.UpdateCursor(feature_class, "SHAPE@") as cursor:
        for row in cursor:
            geometry = row[0].densify("ANGLE", 10000, 0.174533)
            parts = arcpy.Array()
            for part in geometry:
                points = arcpy.Array()
                for point in part:
                    &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;point.M = geometry.measureOnLine(point)&lt;/STRONG&gt;&lt;/FONT&gt;
                    points.append(point)
                parts.append(points)
            row[0] = arcpy.Polyline(parts, spatial_reference)
            cursor.updateRow(row)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The script reconstructs and replaces the geometry of the lines. So, unfortunately, it&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;removes the true curves&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;from the shapes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Before running script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1643953604735.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33121i147725D4E2B6649A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1643953604735.png" alt="Bud_3-1643953604735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After running script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_5-1643953681539.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33123iE795A612C3743AB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_5-1643953681539.png" alt="Bud_5-1643953681539.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;Idea:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could ESRI consider giving us a clean way to edit vertices — without removing the true curves from the SHAPE?&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;- I don't want to densify the curves into straight segments...I want to &lt;U&gt;keep&lt;/U&gt; the true curves.&lt;BR /&gt;&amp;nbsp;- It would be ideal if there were a clean way to do this; not a workaround like converting to JSON and parsing out the curve info from the JSON text (would be messy/fragile).&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;For example, a simple method like this would be helpful:&lt;/P&gt;&lt;PRE&gt;UpdateVertex (shape, partNum, vertexNum, [z, m]) &lt;BR /&gt;#It wouldn't replace the shape or replace the vertex. It would *update* a coordinate in the vertex.&lt;BR /&gt;#So the true curves would remain intact.&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 22:25:19 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-02-07T22:25:19Z</dc:date>
    <item>
      <title>Enhance arcpy.Geometry with the properties regarding object type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/940525#M23039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Some geometries in ArcGIS are created like parametric elements (arcs, ellipses).&lt;BR /&gt;&lt;BR /&gt;It should be able to get this information somehow from the properties of arcpy.Geometry, arcpy.Polyline, arcpy.Polygon classes.

&lt;!-- content transformation source ID: 087E00000004Vcd --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 12:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/940525#M23039</guid>
      <dc:creator>AlexMarkov</dc:creator>
      <dc:date>2013-02-18T12:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Enhance arcpy.Geometry with the properties regarding object type</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/940526#M23040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;For performance reasons only coordinate values are actually readable from the arcpy.geometry operators.&amp;nbsp; Geoprocessing deals with the parametric elements, but not the arcpy geometry operators.&amp;nbsp; At the users conference the programmers said it had to do with optimizing online performance, which was a&amp;nbsp;key design requirement for arcpy.&amp;nbsp;&amp;nbsp;They recognized that you will screw up geometry if you use arcpy operations on parametric data, but offered no solution.

&lt;!-- content transformation source ID: 00aE00000028ZtL --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/940526#M23040</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-02-19T20:52:59Z</dc:date>
    </item>
    <item>
      <title>ArcPy: Edit vertex without removing true curves</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idi-p/1140675</link>
      <description>&lt;P&gt;I have a multipart polyline FC that has &lt;STRONG&gt;true curves&amp;nbsp;&lt;/STRONG&gt;(&lt;EM&gt;Oracle 18c SDE.ST_GEOMETRY)&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I want to &lt;A href="https://gis.stackexchange.com/questions/422560/set-m-values-to-cumulative-length-of-line-via-arcpy" target="_self"&gt;update the coordinates of the vertices&lt;/A&gt; in the lines via ArcPy — without losing the true curves:&lt;/P&gt;&lt;PRE&gt;import arcpy
connection = "Database Connections\my_conn.sde"
feature_class = connection + "\my_owner.my_fc"
spatial_reference = arcpy.Describe(feature_class).spatialReference

with arcpy.da.Editor(connection) as edit_session:
    with arcpy.da.UpdateCursor(feature_class, "SHAPE@") as cursor:
        for row in cursor:
            geometry = row[0].densify("ANGLE", 10000, 0.174533)
            parts = arcpy.Array()
            for part in geometry:
                points = arcpy.Array()
                for point in part:
                    &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;point.M = geometry.measureOnLine(point)&lt;/STRONG&gt;&lt;/FONT&gt;
                    points.append(point)
                parts.append(points)
            row[0] = arcpy.Polyline(parts, spatial_reference)
            cursor.updateRow(row)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The script reconstructs and replaces the geometry of the lines. So, unfortunately, it&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;removes the true curves&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;from the shapes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Before running script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1643953604735.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33121i147725D4E2B6649A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1643953604735.png" alt="Bud_3-1643953604735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After running script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_5-1643953681539.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33123iE795A612C3743AB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_5-1643953681539.png" alt="Bud_5-1643953681539.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;Idea:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could ESRI consider giving us a clean way to edit vertices — without removing the true curves from the SHAPE?&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;- I don't want to densify the curves into straight segments...I want to &lt;U&gt;keep&lt;/U&gt; the true curves.&lt;BR /&gt;&amp;nbsp;- It would be ideal if there were a clean way to do this; not a workaround like converting to JSON and parsing out the curve info from the JSON text (would be messy/fragile).&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;For example, a simple method like this would be helpful:&lt;/P&gt;&lt;PRE&gt;UpdateVertex (shape, partNum, vertexNum, [z, m]) &lt;BR /&gt;#It wouldn't replace the shape or replace the vertex. It would *update* a coordinate in the vertex.&lt;BR /&gt;#So the true curves would remain intact.&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 22:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idi-p/1140675</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-02-07T22:25:19Z</dc:date>
    </item>
    <item>
      <title>ArcPy Polyline property to get true curve info</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1141270#M23002</link>
      <description>&lt;P&gt;&lt;EM&gt;Merged from a separate idea:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Currently, there isn't a way to directly access a polyline's&amp;nbsp;true curve information.&lt;/P&gt;&lt;P&gt;We're aware that it's technically possible to access true curves &lt;EM&gt;indirectly&lt;/EM&gt; &lt;A href="https://i.stack.imgur.com/dcdvB.png" target="_self"&gt;via JSON&lt;/A&gt;. But that requires parsing the JSON text to grab the true curve info, which is slow and messy.&lt;/P&gt;&lt;P&gt;It would be helpful if we had a cleaner way to access curves.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 21:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1141270#M23002</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-01-24T21:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Polyline property to get true curve info - Status changed to: Needs Clarification</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1250812#M23003</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your suggestion regarding a cleaner way to access true curves in a polyline through an ArcPy property. We understand you feel the current method of accessing the information indirectly through JSON can be improved. To better understand your idea, could you please clarify if you are looking for a way to determine whether or not the geometry has curves? If so, this is already offered using the hasCurves property of geometry objects. Or are you looking for a similar property, but for accessing and manipulating the actual curve information rather than just confirming its existence? We appreciate feedback from all users visiting the ideas exchange, as it helps us make informed decisions about future updates, and look forward to hearing from you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 15:20:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1250812#M23003</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2023-01-24T15:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Polyline property to get true curve info</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1250953#M23004</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50334"&gt;@HannesZiegler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I think this is right:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Or are you looking for a similar property, but for accessing and manipulating the actual curve information rather than just confirming its existence?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;In hindsight, my wording wasn't great.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 19:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1250953#M23004</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-01-24T19:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Polyline property to get true curve info</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1251047#M23005</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for clarifying, while looking into this further &lt;/SPAN&gt;&lt;SPAN&gt;I noticed you more recently submitted a similar idea, &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idi-p/1140675" target="_self"&gt;1250953&lt;/A&gt;. We will merge these ideas together. To help us gauge user interest in this idea, please consider giving it a kudo (The author's kudo is not automatically applied).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 21:44:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1251047#M23005</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2023-01-24T21:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy: Edit vertex without removing true curves</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1611575#M34674</link>
      <description>&lt;P&gt;I'm running into this same issue when scripting for the Utility Network.&amp;nbsp; I'm loading service line features into the UN and, in order to do so, need to add a vertex to each water main at the point where the new service lines connect.&amp;nbsp; When adding the vertices, we have to re-draw the whole water main and are losing the curves, thus altering the original geometry of the shape.&amp;nbsp; Our workaround solution is to email the GIS editors when a line with curves is affected, but it would be MUCH better to be able to just insert a vertex at a given location and retain the rest of the line's original geometry.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 13:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcpy-edit-vertex-without-removing-true-curves/idc-p/1611575#M34674</guid>
      <dc:creator>BruceBacia</dc:creator>
      <dc:date>2025-05-06T13:25:19Z</dc:date>
    </item>
  </channel>
</rss>

