Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a folder of shapefiles and each one starts with a code. There are multiple shapefiles that start with each code, and I would like to create a model in ModelBuilder that will select the shapefiles that have the same code, and append them into the appropriate existing geodatabase feature class.

Is there a way to use a wildcard in the Append tool, like to specify that any and all files in a certain folder starting with 'XPGC*' get appended into the 'Pipe_Grade_Change' feature class? Or is there a way to use an iterator to accomplish this?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

I would use Iterate Feature Classes and Collect Values as in the graphics below.

enter image description here

enter image description here

share|improve this answer
1  
This worked for me. I changed the wildcard in the Iterate tool and the target dataset of the Append tool to model parameters so I can change them when I run the tool. –  Sara Barnes Sep 30 '13 at 12:45
    
After working with this model, I found that it was appending the same feature multiple times. I was able to fix this problem by removing the Collect Features part of the model. See this thread for more information: gis.stackexchange.com/questions/73024/… –  Sara Barnes Oct 3 '13 at 14:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.