Batch Merge Feature Classes

2758
5
Jump to solution
07-24-2018 12:45 PM
EricStarn3
New Contributor III

Hello All,

I am trying to merge several feature classes together via model builder. All feature classes are stored in same work space GDB. What I want to do is iterate though that GDB, because number of feature classes in GDB are subject to change, and then merge all feature classes together. Any ideas how to handle this logic?

Respectfully,

Eric

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

perhaps you need 'collect values'

Collect Values—Tools | ArcGIS Desktop 

Examples of using ModelBuilder utilities—Tools | ArcGIS Desktop 

From

Utilities—ArcGIS Pro | ArcGIS Desktop 

The Collect Values tool is designed to collect output values of an iterator or to convert a list of multivalues into a single input. The output of Collect Values can be used as input to tools like Merge, Append, Mosaic, and Cell Statistics.

since you basically just need a list of the featureclasses to merge.

Hope the field mapping is identical as are the featureclass types, otherwise you are going to have issues.

View solution in original post

5 Replies
DanPatterson_Retired
MVP Emeritus

Eric

Examples of using iterators in ModelBuilder—Tools | ArcGIS Desktop 

And within that area are the various iterators that can be used in modelbuilder

0 Kudos
EricStarn3
New Contributor III

This is what I was trying. I know I am missing something because it just overwrite the output feature class to the last feature class in the GDB

0 Kudos
DanPatterson_Retired
MVP Emeritus

perhaps you need 'collect values'

Collect Values—Tools | ArcGIS Desktop 

Examples of using ModelBuilder utilities—Tools | ArcGIS Desktop 

From

Utilities—ArcGIS Pro | ArcGIS Desktop 

The Collect Values tool is designed to collect output values of an iterator or to convert a list of multivalues into a single input. The output of Collect Values can be used as input to tools like Merge, Append, Mosaic, and Cell Statistics.

since you basically just need a list of the featureclasses to merge.

Hope the field mapping is identical as are the featureclass types, otherwise you are going to have issues.

EricStarn3
New Contributor III

thanks, worked

0 Kudos
AshrafAyman33
New Contributor

Can u share the updated model 🙂

0 Kudos