Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

If feature class has the same name as feature class in another database

$
0
0
I have two databases (Staging and Prod) each containing the same feature classes. I want to append the data from each individual feature class in the staging.gdb to its matching feature class in the Prod.gdb. What is the most efficient way of writing this in python.

Currently i am using the append tool for each individual feature class. this is making the script kind of long and a lot to maintain if something changes as I have 20 appends to account for the 20 different feature classes.


Example

Staging.gdb ........... Prod.gdb
Wetlands --append--> Wetlands
Streams --append--> Streams

Viewing all articles
Browse latest Browse all 2485

Trending Articles