I am trying to develop a model in modelbuilder that will allow for a number of polygon shapefiles to be paired with each other. Say a group of 3 shapefiles (1,2,3) located in the same folder would be processed producing individual shapefiles 1-2, 1-3, 2-3. Is there a way to do this in modelbuilder? Thanks in advance
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
Your problem is that Model Builder only allows for one iterator per model. For your use-case, you need two (like nested loops iterating your list of files in a program). You could try using an iterator as one input and setting the other input to a list/series but model builder doesn't always work the way you might expect. However this should be an easy task to code in ArcPy or the Python API for OGR. |
||||
|
|
|
The merge tool will do what you want. It could look something like below. Note that your field names need to be the same for all shapefiles in order for them to map correctly.
Hope this helps |
|||
|

