<?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: Order of features after Copy/Export from memory workspace to FGDB in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562109#M90502</link>
    <description>&lt;P&gt;I suspect CopyFeatures is optimizing the layout of the points when it does the copy.&amp;nbsp; I haven't looked into it in detail. Things like&lt;/P&gt;&lt;P&gt;Are the copied points sorted in some fashion?&amp;nbsp; (by x, then y? peano sort?)&lt;/P&gt;&lt;P&gt;Are duplicate points removed? (only possible if polylines/polygons are used that have shared edges, duplicate start/end points for polygons,&amp;nbsp; etc)&lt;/P&gt;&lt;P&gt;Duplicating OBJECTID is always a good idea since it belongs to the geodatabase and not the featureclass.&lt;/P&gt;&lt;P&gt;Tools provide the options for the widest use-case.&amp;nbsp; Arcpy allows fine-tuning for specific cases, and even those have their limits.&amp;nbsp; For instance FeatureClassToNumpy and its relatives do a good job but not a perfect one (for example, it is hard to work with multipart shapes)&lt;/P&gt;&lt;P&gt;You have a workaround.&amp;nbsp; I simply suggest other options should the existing tool not work in your particular situation.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2024 04:35:15 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-11-25T04:35:15Z</dc:date>
    <item>
      <title>Order of features after Copy/Export from memory workspace to FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562082#M90497</link>
      <description>&lt;P&gt;I am using ArcGIS Pro 3.4. I did this:&lt;/P&gt;&lt;P&gt;arcpy.management.FeatureVerticesToPoints("R2P",r"memory\POINTS","ALL")&lt;/P&gt;&lt;P&gt;arcpy.management.CopyFeatures("POINTS",r"...\GDB.gdb\POINTS_GDB")&lt;/P&gt;&lt;P&gt;Picture shows parent polygon (R2P) and 2 pairs of points labelled by&amp;nbsp;$feature.OBJECTID:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FelixPertziger_0-1732499423377.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120319iE073078733FCB70A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FelixPertziger_0-1732499423377.png" alt="FelixPertziger_0-1732499423377.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As one can see copying features has broke their original physical order. In reality 47k points out of 54k are randomly reshuffled.&lt;/P&gt;&lt;P&gt;Is this intended behavior?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 02:01:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562082#M90497</guid>
      <dc:creator>FelixPertziger</dc:creator>
      <dc:date>2024-11-25T02:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Order of features after Copy/Export from memory workspace to FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562096#M90498</link>
      <description>&lt;P&gt;I suspect so, since they include a&amp;nbsp;ORIG_FID field in the output data.&lt;/P&gt;&lt;P&gt;If you need to maintain the order you can use&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/featureclasstonumpyarray.htm" target="_blank"&gt;FeatureClassToNumPyArray—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;with "explode_to_points" as True,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/numpyarraytofeatureclass.htm" target="_blank"&gt;NumPyArrayToFeatureClass—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Perhaps instead of the ORIG_FID field, you would like a "retain_original_order" option in the FeatureVerticesToPoints tool&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 02:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562096#M90498</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-11-25T02:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Order of features after Copy/Export from memory workspace to FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562101#M90499</link>
      <description>&lt;P&gt;You are talking about arcpy, let's assume I have no clue about it and have no desire to learn.&lt;/P&gt;&lt;P&gt;My issue is &lt;STRONG&gt;not&lt;/STRONG&gt; with&amp;nbsp;&lt;SPAN&gt;FeatureVerticesToPoints tool. It produces nicely ordered points with first being first vertex of geometry etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My issue is with Copy Features tool.&amp;nbsp;Moreover if I use Data-Export Features&amp;nbsp; (instead of Copy Features), there is no OBJECTID in a list of SORT fields available. There is a good reason why it is not in a list, - it is a default. And, yes&amp;nbsp;Data-Export Features creates similar mess, which I can avoid by populating new long integer field with OBJECTID and use it as sorting order...&lt;/P&gt;&lt;P&gt;This is annoying oddity, which caused my 2 years old script to fail and I've wasted 3 hours debugging it.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 03:36:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562101#M90499</guid>
      <dc:creator>FelixPertziger</dc:creator>
      <dc:date>2024-11-25T03:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Order of features after Copy/Export from memory workspace to FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562105#M90500</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;thanks for you reply, see my comments below&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 04:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562105#M90500</guid>
      <dc:creator>FelixPertziger</dc:creator>
      <dc:date>2024-11-25T04:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Order of features after Copy/Export from memory workspace to FGDB</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562109#M90502</link>
      <description>&lt;P&gt;I suspect CopyFeatures is optimizing the layout of the points when it does the copy.&amp;nbsp; I haven't looked into it in detail. Things like&lt;/P&gt;&lt;P&gt;Are the copied points sorted in some fashion?&amp;nbsp; (by x, then y? peano sort?)&lt;/P&gt;&lt;P&gt;Are duplicate points removed? (only possible if polylines/polygons are used that have shared edges, duplicate start/end points for polygons,&amp;nbsp; etc)&lt;/P&gt;&lt;P&gt;Duplicating OBJECTID is always a good idea since it belongs to the geodatabase and not the featureclass.&lt;/P&gt;&lt;P&gt;Tools provide the options for the widest use-case.&amp;nbsp; Arcpy allows fine-tuning for specific cases, and even those have their limits.&amp;nbsp; For instance FeatureClassToNumpy and its relatives do a good job but not a perfect one (for example, it is hard to work with multipart shapes)&lt;/P&gt;&lt;P&gt;You have a workaround.&amp;nbsp; I simply suggest other options should the existing tool not work in your particular situation.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 04:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/order-of-features-after-copy-export-from-memory/m-p/1562109#M90502</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-11-25T04:35:15Z</dc:date>
    </item>
  </channel>
</rss>

