<?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 Add param drop, truncate, append to GeoAccessor.to_featureclass() in ArcGIS API for Python Ideas</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-ideas/add-param-drop-truncate-append-to-geoaccessor-to/idi-p/1598018</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Greetings,&lt;BR /&gt;&lt;BR /&gt;GeoAccessor.to_featureclass&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;location&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;overwrite&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;has_z&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;has_m&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sanitize_columns&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;) is quite handy, but would be much handier if there was a truncate parameter instead of forced drop.&amp;nbsp; As is, the table is dropped, which is not ideal in many situations, including holding table permissions.&amp;nbsp; Truncate would preserve the table and table schema whilst inserting or appending the the values.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;So a new to_featureclass() method might look like this:&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;GeoAccessor.to_featureclass&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;location&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;overwrite&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;has_z&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;has_m&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sanitize_columns&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;True, drop=False, truncate=True&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;A drop=False, truncate=False would imply append.&lt;BR /&gt;&lt;BR /&gt;The method would have to generate ObjectIDs and GlobalIDs as necessary.&amp;nbsp; An error would occur if datatypes were violated.&amp;nbsp; Consideration could be given for whether an error was given for extra or lacking columns not matching db table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 16:11:51 GMT</pubDate>
    <dc:creator>TylerT</dc:creator>
    <dc:date>2025-03-21T16:11:51Z</dc:date>
    <item>
      <title>Add param drop, truncate, append to GeoAccessor.to_featureclass()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-ideas/add-param-drop-truncate-append-to-geoaccessor-to/idi-p/1598018</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Greetings,&lt;BR /&gt;&lt;BR /&gt;GeoAccessor.to_featureclass&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;location&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;overwrite&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;has_z&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;has_m&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sanitize_columns&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;) is quite handy, but would be much handier if there was a truncate parameter instead of forced drop.&amp;nbsp; As is, the table is dropped, which is not ideal in many situations, including holding table permissions.&amp;nbsp; Truncate would preserve the table and table schema whilst inserting or appending the the values.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;So a new to_featureclass() method might look like this:&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;GeoAccessor.to_featureclass&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;location&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;overwrite&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;has_z&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;has_m&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sanitize_columns&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;True, drop=False, truncate=True&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;A drop=False, truncate=False would imply append.&lt;BR /&gt;&lt;BR /&gt;The method would have to generate ObjectIDs and GlobalIDs as necessary.&amp;nbsp; An error would occur if datatypes were violated.&amp;nbsp; Consideration could be given for whether an error was given for extra or lacking columns not matching db table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 16:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-ideas/add-param-drop-truncate-append-to-geoaccessor-to/idi-p/1598018</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2025-03-21T16:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add param drop, truncate, append to GeoAccessor.to_featureclass()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-ideas/add-param-drop-truncate-append-to-geoaccessor-to/idc-p/1598052#M146</link>
      <description>&lt;P&gt;Sounds like a decent and worthy upgrade to me.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 15:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-ideas/add-param-drop-truncate-append-to-geoaccessor-to/idc-p/1598052#M146</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-03-21T15:35:35Z</dc:date>
    </item>
  </channel>
</rss>

