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.

Is it possible to break Iterate Raster after certain set of processes ?

I have a list of Image files which I am processing using Iterate Rasters and performing aggregate and Extract Values to Points and then writing the output to a textfile.

I have three processes:

  1. Aggregate
  2. Extract Values to Points
  3. Writing to textfile

I want to execute process 1 and 2 in Iterate, but 3 Process I don't want to perform in the Iteration. Instead, I want to perform process 3 after all the Iteration got completed for the 1 and 2 process in the same Model.

Anybody has any idea how can I achieve this in the same model?

share|improve this question
    
+1 great question relevant to many users here. –  Aaron Mar 26 '13 at 17:39
add comment

2 Answers 2

One solution is to use the iterations portion as a completed model, then use that model inside of another that performs the remaining operations on the output of the iteration model. This is called a nested model. Also, consider looking into Python scripting, the options for dropping into and out of iterations are much more flexible.

share|improve this answer
    
@ Jay Guarneri : Thank you the way you have suggested is worked for me. –  Dharmesh Mar 25 '13 at 20:48
add comment

Here are two links which are related to @Jay's post:

Example of using an iterator in a model

Integrating a model within a model

share|improve this answer
    
-1 I was unable to find any information about how to exclude processes from iteration within this link. Could you please expand on your comment to address the original question? –  Aaron Mar 26 '13 at 17:36
    
@Aaron - I agree with you but I believe this is the relevant content: "If an iterator is added to a model, all tools in the model iterate for each value in the iterator. If you do not want to run each tool in the model for each iterated value, create a submodel/model within a model/nested model that contains only the iterator and add it as a model tool into the main model" –  blah238 Mar 26 '13 at 18:17
    
+1 Post edited to incorporate @blah238 link –  Aaron Mar 26 '13 at 19:23
add comment

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.