Iterating through both target and join features at the same time.

288
1
01-16-2019 01:22 PM
ColeThrift
New Contributor

I am trying to use model builder to iterate a bunch of spatial joins. I know how to do it if I am iterating just the target or just the join features, but in this case I need to change both the target and join features for each iteration. The spatial join tool makes you specify at least one of them though to set it up so the iteration is not working. I have been trying to find a solution to this problem for days but haven't solved it. Anyone know any possible solutions? I'm sure this can be done with some complex python scripting but I do not have that skill.

Tags (2)
0 Kudos
1 Reply
ColeThrift
New Contributor

If anyone has a similar problem, I figured it out. Just create a separate model that iterates through the second set of features and then add it to your first model and set it as the target or join feature.

0 Kudos