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
Solved! Go to Solution.
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.
Eric
Examples of using iterators in ModelBuilder—Tools | ArcGIS Desktop
And within that area are the various iterators that can be used in modelbuilder
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
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.
thanks, worked
Can u share the updated model 🙂