Select to view content in your preferred language

which arcpy function to update geodatabase

3136
1
Jump to solution
06-29-2015 02:32 AM
MarkWisniewski
Deactivated User

Hi,

I update our internal file geodatabase with shapefiles supplied by state government (parcels, roads etc). After learning Python I would like to now speed up and automate this process. My question is which arcpy function would I use to;

Compare the names of the downloaded shapefiles with the names of feature classes in the file geodatabase ie parcels.shp vs parcels? Would I just use the overwrite or should I delete first and then copy new features?

Thanks for your help,

Mark

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
WesMiller
Deactivated User

In an ideal world you would be able to set up a replica from their geodatabase. Since you mentioned shapefiles I'm guessing they don't have a database published you could replicate from. You could use what i call "nuclear replication" where you use delete rows and then append rows essentially wiping out the database and replacing it with new data. You could easily do this in model builder

View solution in original post

1 Reply
WesMiller
Deactivated User

In an ideal world you would be able to set up a replica from their geodatabase. Since you mentioned shapefiles I'm guessing they don't have a database published you could replicate from. You could use what i call "nuclear replication" where you use delete rows and then append rows essentially wiping out the database and replacing it with new data. You could easily do this in model builder