<?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 Documentation: Hierarchical structure of ArcPy Geometry class in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/documentation-hierarchical-structure-of-arcpy/idi-p/1141023</link>
    <description>&lt;P&gt;&lt;SPAN&gt;In the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/classes/alphabetical-list-of-arcpy-classes.htm#:%7E:text=a%20SpatialReference%20object.-,Geometry%20classes,-Class" target="_blank" rel="nofollow noopener noreferrer"&gt;ArcPy Geometry Class&lt;/A&gt; documentation, could ESRI provide more detailed information about the hierarchical structure of gemetries?&lt;/P&gt;&lt;P&gt;For example, provide a hierarchical &lt;U&gt;diagram&lt;/U&gt;,&amp;nbsp;&lt;SPAN&gt;kind of like we have for the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/what-is-the-st-geometry-storage-type.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;SDE.ST_GEOMETRY spatial type&lt;/A&gt;, but for the ArcPy Geometry class:&lt;/P&gt;&lt;PRE&gt;Like this, but better:&lt;BR /&gt;&lt;BR /&gt; - Geometry
    - PointGeometry 
    - Multipoint
        - Point
    - Polygon
        - Ring (aka part)
           - Point
    - Polyline
        - Path (aka part)
           - Point&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;That would help people who are trying to learn ArcPy understand how to access the various levels of the Geometry class.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I know there is some info about that in the Cursor docs. But it doesn't explain the hierarchical structure of geometries.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For example, as a novice, it was difficult to know how to iterate through a Polyline's components — to get at the individual points/vertices &lt;STRONG&gt;within a feature-part&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;import arcpy&lt;BR /&gt;connection = "Database Connections\my_conn.sde"&lt;BR /&gt;feature_class = connection + "\my_owner.my_fc"&lt;BR /&gt;&lt;BR /&gt;with arcpy.da.SearchCursor(feature_class, ["SHAPE@","OID@"]) as cursor:&lt;BR /&gt;    for row in cursor:&lt;BR /&gt;        geometry = row[0]&lt;BR /&gt;        print("Geometry/Polyline: {}".format(row[1]))&lt;BR /&gt;        for i, part in enumerate(geometry):&lt;BR /&gt;            print(" Part: {}".format(i))&lt;BR /&gt;            for j, point in enumerate(part):&lt;BR /&gt;                print(" Point: {}".format(j))&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; &lt;BR /&gt;Geometry/Polyline: 100&lt;BR /&gt;  Part: 0&lt;BR /&gt;    Point: 0&lt;BR /&gt;    Point: 1&lt;BR /&gt;    Point: 2&lt;BR /&gt;    Point: 3&lt;BR /&gt;    Point: 4&lt;BR /&gt;  Part: 1&lt;BR /&gt;    Point: 0&lt;BR /&gt;    Point: 1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would help a lot if if we could get some more detailed information about the hierarchical structure.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 19:54:38 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-02-08T19:54:38Z</dc:date>
    <item>
      <title>Documentation: Hierarchical structure of ArcPy Geometry class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/documentation-hierarchical-structure-of-arcpy/idi-p/1141023</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/classes/alphabetical-list-of-arcpy-classes.htm#:%7E:text=a%20SpatialReference%20object.-,Geometry%20classes,-Class" target="_blank" rel="nofollow noopener noreferrer"&gt;ArcPy Geometry Class&lt;/A&gt; documentation, could ESRI provide more detailed information about the hierarchical structure of gemetries?&lt;/P&gt;&lt;P&gt;For example, provide a hierarchical &lt;U&gt;diagram&lt;/U&gt;,&amp;nbsp;&lt;SPAN&gt;kind of like we have for the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/what-is-the-st-geometry-storage-type.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;SDE.ST_GEOMETRY spatial type&lt;/A&gt;, but for the ArcPy Geometry class:&lt;/P&gt;&lt;PRE&gt;Like this, but better:&lt;BR /&gt;&lt;BR /&gt; - Geometry
    - PointGeometry 
    - Multipoint
        - Point
    - Polygon
        - Ring (aka part)
           - Point
    - Polyline
        - Path (aka part)
           - Point&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;That would help people who are trying to learn ArcPy understand how to access the various levels of the Geometry class.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I know there is some info about that in the Cursor docs. But it doesn't explain the hierarchical structure of geometries.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For example, as a novice, it was difficult to know how to iterate through a Polyline's components — to get at the individual points/vertices &lt;STRONG&gt;within a feature-part&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;import arcpy&lt;BR /&gt;connection = "Database Connections\my_conn.sde"&lt;BR /&gt;feature_class = connection + "\my_owner.my_fc"&lt;BR /&gt;&lt;BR /&gt;with arcpy.da.SearchCursor(feature_class, ["SHAPE@","OID@"]) as cursor:&lt;BR /&gt;    for row in cursor:&lt;BR /&gt;        geometry = row[0]&lt;BR /&gt;        print("Geometry/Polyline: {}".format(row[1]))&lt;BR /&gt;        for i, part in enumerate(geometry):&lt;BR /&gt;            print(" Part: {}".format(i))&lt;BR /&gt;            for j, point in enumerate(part):&lt;BR /&gt;                print(" Point: {}".format(j))&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; &lt;BR /&gt;Geometry/Polyline: 100&lt;BR /&gt;  Part: 0&lt;BR /&gt;    Point: 0&lt;BR /&gt;    Point: 1&lt;BR /&gt;    Point: 2&lt;BR /&gt;    Point: 3&lt;BR /&gt;    Point: 4&lt;BR /&gt;  Part: 1&lt;BR /&gt;    Point: 0&lt;BR /&gt;    Point: 1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would help a lot if if we could get some more detailed information about the hierarchical structure.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 19:54:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/documentation-hierarchical-structure-of-arcpy/idi-p/1141023</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-02-08T19:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation: Hierarchical structure of ArcPy Geometry class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/documentation-hierarchical-structure-of-arcpy/idc-p/1141727#M18590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;,&amp;nbsp;there is some discussion about geometry structure in this topic:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/reading-geometries.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/reading-geometries.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is this sufficient, or is there more information you'd like to see?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 18:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/documentation-hierarchical-structure-of-arcpy/idc-p/1141727#M18590</guid>
      <dc:creator>DWynne</dc:creator>
      <dc:date>2022-02-08T18:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation: Hierarchical structure of ArcPy Geometry class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/documentation-hierarchical-structure-of-arcpy/idc-p/1144117#M18703</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/443144"&gt;@DWynne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, now I realize that the Geometry class&amp;nbsp;&lt;A href="https://gis.stackexchange.com/a/423196/62572" target="_self"&gt;isn't as hierarchical as I originally thought&lt;/A&gt;. So I think the link you mentioned is sufficient.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 18:16:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/documentation-hierarchical-structure-of-arcpy/idc-p/1144117#M18703</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-02-15T18:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation: Hierarchical structure of ArcPy Geometry class - Status changed to: Already Offered</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/documentation-hierarchical-structure-of-arcpy/idc-p/1219513#M21570</link>
      <description />
      <pubDate>Thu, 06 Oct 2022 18:19:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/documentation-hierarchical-structure-of-arcpy/idc-p/1219513#M21570</guid>
      <dc:creator>DannyMcVey</dc:creator>
      <dc:date>2022-10-06T18:19:40Z</dc:date>
    </item>
  </channel>
</rss>

