<?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: OBJECTID    Inconsistent when features from one GeoDatabase  to another in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484420#M27564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's also important to remember that an in-memory workspace is not a true geodatabase. A lot of things that work in geodatabases will not work with in-memory workspaces (copy/paste, for example). If you want to use a temporary geodatabase, your best bet is to use a Scratch File Geodatabase. This link describes how to use them:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/creating_geodatabases/0001000004t8000000/#CreateScratch"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/creating_geodatabases/0001000004t8000000/#CreateScratch&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jun 2010 22:32:48 GMT</pubDate>
    <dc:creator>JamesMacKay</dc:creator>
    <dc:date>2010-06-08T22:32:48Z</dc:date>
    <item>
      <title>OBJECTID    Inconsistent when features from one GeoDatabase  to another</title>
      <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484414#M27558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I Create an InMemoryWorkspace, then get featues from one&amp;nbsp; FeatureClass in a SDE Geodatabase, add into a FeatureClass by InsertFeature function, and the result is that the objectID of feature is inconsistent compared with datas in SDE Geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to keep consistent in ObjectID?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 04:46:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484414#M27558</guid>
      <dc:creator>huangJary</dc:creator>
      <dc:date>2010-06-08T04:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTID    Inconsistent when features from one GeoDatabase  to another</title>
      <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484415#M27559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only way the objectids could be consistent is if you a) selected all features, b) inserted &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;them in objectid order, and c) the source dataset started at 1 and did not have any gaps.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to preserve the old ids, you'll need to insert them as an additional column (e.g., &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"prev_oid integer not null"), since there are no guarantees about SDE-set objectid allocation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(except that they will be unique non-zero positive values).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 11:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484415#M27559</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-06-08T11:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTID    Inconsistent when features from one GeoDatabase  to another</title>
      <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484416#M27560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ObjectIDs are managed and controlled by the Geodatabase, they are also unique within a given feature class/table within a Geodatabase.&amp;nbsp; You cannot control the values assigned as ObjectIDs within a feature class/table.&amp;nbsp; While the Insert cursors do not maintain ObjectIDs between feature classes/tables, since you are inserting new records into the target, Copy/Paste does maintain ObjectIDs.&amp;nbsp; Why do you need to keep the ObjectIDs consistent between your source and target Geodatabases?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 11:42:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484416#M27560</guid>
      <dc:creator>CraigGillgrass</dc:creator>
      <dc:date>2010-06-08T11:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTID    Inconsistent when features from one GeoDatabase  to another</title>
      <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484417#M27561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ObjectIDs are managed and controlled by the Geodatabase, they are also unique within a given feature class/table within a Geodatabase.&amp;nbsp; You cannot control the values assigned as ObjectIDs within a feature class/table.&amp;nbsp; While the Insert cursors do not maintain ObjectIDs between feature classes/tables, since you are inserting new records into the target, Copy/Paste does maintain ObjectIDs.&amp;nbsp; Why do you need to keep the ObjectIDs consistent between your source and target Geodatabases?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example,&amp;nbsp;&amp;nbsp; I&amp;nbsp; get&amp;nbsp; part of&amp;nbsp; datas from a SDE GeoDataBase, and add into an InMemoryWorkspaceFactory,&amp;nbsp; I will Modify�?�Add or Delete Data, then finally I need add datas which are in memory into a SDE GeoDataBase. The ObjectID need to keep consistent. if&amp;nbsp; ObjectIDs are inconsistent, I only create a Table in managing ObjectIDS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there better methods in solving this proplem�?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 13:22:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484417#M27561</guid>
      <dc:creator>huangJary</dc:creator>
      <dc:date>2010-06-08T13:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTID    Inconsistent when features from one GeoDatabase  to another</title>
      <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484418#M27562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The only way the objectids could be consistent is if you a) selected all features, b) inserted &lt;BR /&gt;them in objectid order, and c) the source dataset started at 1 and did not have any gaps.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;If you want to preserve the old ids, you'll need to insert them as an additional column (e.g., &lt;BR /&gt;"prev_oid integer not null"), since there are no guarantees about SDE-set objectid allocation&lt;BR /&gt;(except that they will be unique non-zero positive values).&lt;BR /&gt; &lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answer, are there better methods&amp;nbsp; in solving this proplem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 13:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484418#M27562</guid>
      <dc:creator>huangJary</dc:creator>
      <dc:date>2010-06-08T13:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTID    Inconsistent when features from one GeoDatabase  to another</title>
      <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484419#M27563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't control the objectids in either location, and can only keep track of old IDs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and edits through a great deal of effort.&amp;nbsp; It's generally easier to use ArcGIS as it has &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;been designed, so I think you should look into the Disconnected Editing model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A search on "Disconnected Editing" should pull up a wealth of information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 13:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484419#M27563</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-06-08T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTID    Inconsistent when features from one GeoDatabase  to another</title>
      <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484420#M27564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's also important to remember that an in-memory workspace is not a true geodatabase. A lot of things that work in geodatabases will not work with in-memory workspaces (copy/paste, for example). If you want to use a temporary geodatabase, your best bet is to use a Scratch File Geodatabase. This link describes how to use them:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/creating_geodatabases/0001000004t8000000/#CreateScratch"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/creating_geodatabases/0001000004t8000000/#CreateScratch&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 22:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484420#M27564</guid>
      <dc:creator>JamesMacKay</dc:creator>
      <dc:date>2010-06-08T22:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTID    Inconsistent when features from one GeoDatabase  to another</title>
      <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484421#M27565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can't control the objectids in either location, and can only keep track of old IDs&lt;BR /&gt;and edits through a great deal of effort.&amp;nbsp; It's generally easier to use ArcGIS as it has &lt;BR /&gt;been designed, so I think you should look into the Disconnected Editing model.&lt;BR /&gt;&lt;BR /&gt;A search on "Disconnected Editing" should pull up a wealth of information.&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcEngine "Disconnected Editing", the ICheckIn�?�ICheckOut&amp;nbsp; can keep OBJECTIDs consitent�?but this process is encapsulated in ArcEngine. Such as host said, if&amp;nbsp; I need get featureclasses or tables from a SDE Geodatabase into a InMemoryWorkspaceFactory, how to keep OBJECTID consistent?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 08:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484421#M27565</guid>
      <dc:creator>szcszc</dc:creator>
      <dc:date>2010-06-09T08:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTID    Inconsistent when features from one GeoDatabase  to another</title>
      <link>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484422#M27566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot control the allocation of SDE-set registered rowid column values in geodatabases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and "in-memory workspaces" aren't, as James pointed out, full geodatabase implementations.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The task of keeping track of pieces of a database, editing them, and merging the result back&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;into the original table is quite challenging, which is why the Disconnected Editing solution was &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;developed.&amp;nbsp; But you can't pick and choose pieces of that solution (the restrictions it imposes &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;were necessary to make the solution work).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If Disconnected Editing doesn't meet your requirements, you'll have to decide if the days, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;weeks, or even months of effort to make your own in-memory solution are worth your time, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but your design will have to actively track previous objectid values in an additional column, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and be prepared to update, delete, and insert appropriately when the transition back to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;persistent geodatabase occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 11:48:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/objectid-inconsistent-when-features-from-one/m-p/484422#M27566</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-06-09T11:48:10Z</dc:date>
    </item>
  </channel>
</rss>

