Preserve Global IDs in Python when merging data?

2775
2
10-02-2015 04:11 PM
AmyRose
New Contributor III

Hello,

I want to take feature classes (say a point feature class) from different SQL geodatabases and merge them into one without losing the global ids.  All the feature classes have the same schema, etc.

I have looked at the following help topic:  ArcObjects 10 .NET SDK Help  that talks about how you can do this with C# or .Net

I'm just wondering if there is a way to do this with Python.

I don't have Visual Studio and I am more comfortable with Python.

I am also looking to see if there is a way to join/merge exported recordset XML (maybe calling an XML editor?) to also get around this.

Thought I would ask before I went down a rabbit hole.

Thanks,

Amy

2 Replies
FreddieGibson
Occasional Contributor III

What happens when you have data that already has GUIDs and you load it another feature class with the Simple Data Loader or Object Loader? Does it persist the GUIDs.

I'm looking at the ArcObjects code and I'm pretty sure that you won't have anything available to this extent unless you want to invest in learning how to use the comtypes library to access the ArcObjects libraries from python. Otherwise, Visual Studio is free and if you're familiar with using C# it wouldn't be too hard to take the information off the page you've linked to and build a console application from it, which you could interact with from python. Luckily 97% of what you'd need to write is already included on the page.

AmyRose
New Contributor III

Thanks Freddie,

I didn't get an email about your reply.  I will take a stab at C#, but I have barely worked with it.

Amy

0 Kudos