<?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: Arcpy - Updating FC2 with FC1 updates/changes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300791#M23309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;“FC_Main” sits in our SDE database.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 00:06:55 GMT</pubDate>
    <dc:creator>timdunlevie</dc:creator>
    <dc:date>2015-10-07T00:06:55Z</dc:date>
    <item>
      <title>Arcpy - Updating FC2 with FC1 updates/changes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300788#M23306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK here's what I want to do...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 Feature Classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is the main Feature Class which resides in a Geodatabase which I want to update - call it "FC_main"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other Feature Class resides in a FGDB which gets new updated metadata &amp;amp; new/modified objects from an export from another database - "FC_new"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both FC's have the same schema ([fieldID], [field1], [field2], [field3], [field4], [field5]). Both have a matching unique ID field (fieldID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using arcpy is it possible to compare the 2 FCs, update any metadata differences, add new objects, update any changed spatial locations ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been playing around with lists, search cursors ,update cursors and can do parts of this, but not all. My scripting is pretty limited.&lt;/P&gt;&lt;P&gt;The main problem I have are the existing objects when they have coordinate changes. These don't seem to update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just need to be put onto the right path and the steps to go about coding all this into 1 script.&lt;/P&gt;&lt;P&gt;Arc 10.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 05:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300788#M23306</guid>
      <dc:creator>timdunlevie</dc:creator>
      <dc:date>2015-10-06T05:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Updating FC2 with FC1 updates/changes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300789#M23307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is "FC_main" in a File or SDE Geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 11:14:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300789#M23307</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-10-06T11:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Updating FC2 with FC1 updates/changes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300790#M23308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So FC_main should be updated from FC_new? I would just wipe out the features in FC_main and then append them from the FC_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Truncate Table&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//00170000016z000000" title="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//00170000016z000000"&gt;http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//00170000016z000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//001700000050000000" title="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//001700000050000000"&gt;http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//001700000050000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Typically I set the schema_type to "NO_TEST"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Metadata Importer&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//00120000000z000000" title="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//00120000000z000000"&gt;http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//00120000000z000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will insure that the FC_main is the same as FC_new without having to loop over the whole thing with a cursor. We have many update operations for our SDE that are variations on this theme. One can set the python to run every night with windows task scheduler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 17:51:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300790#M23308</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2015-10-06T17:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Updating FC2 with FC1 updates/changes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300791#M23309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;“FC_Main” sits in our SDE database.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 00:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300791#M23309</guid>
      <dc:creator>timdunlevie</dc:creator>
      <dc:date>2015-10-07T00:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Updating FC2 with FC1 updates/changes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300792#M23310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes FC_Main will be an update from FC_New.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was my first option – remove features, append data….but was thinking there may be a more efficient way of doing that.&lt;/P&gt;&lt;P&gt;I was finding after I removed all features, then append new data (8000 records) I would have to compress the database for the Feature Class to display quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had not looked at Truncate Table option so I might give this a play !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 00:14:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300792#M23310</guid>
      <dc:creator>timdunlevie</dc:creator>
      <dc:date>2015-10-07T00:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Updating FC2 with FC1 updates/changes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300793#M23311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mate,&lt;/P&gt;&lt;P&gt;I tested this today and it works brilliantly.&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 02:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300793#M23311</guid>
      <dc:creator>timdunlevie</dc:creator>
      <dc:date>2015-10-07T02:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Updating FC2 with FC1 updates/changes</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300794#M23312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice! Happy to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 16:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-updating-fc2-with-fc1-updates-changes/m-p/300794#M23312</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2015-10-07T16:14:22Z</dc:date>
    </item>
  </channel>
</rss>

