I've a CSV file with 106 rows with data suitable for a viewshed.

What I want to do is run an ArcGIS model where it works through the rows and produces 106 viewsheds for me (ideally the data could also be incorporated back into the original spreadsheet).

Initially I started playing with the 'Iterate Row Selection' but this does not seem to be working. It only produces one.

Does anyone have any ideas?

Here is an image as to how the model is set up. The Iterator is grouping by the ODI column.

enter image description here

  • 1
    You need provide a bit more information, show us your model and how you set up the iterator. Currently all you have said is "I tried something and ain't working" not much for us to go on to help you... – Hornbydd May 24 '16 at 20:19
  • Thanks @Hornbydd. I've added an image to the original post. – AJames May 24 '16 at 20:38

Looking at your model it appears you have accepted default naming. I'm guessing that one viewshed that is created is always the viewshed for the very last row in your input table?

I guessing that the model runs for a long time but creates a single output?

The reason this is happening is that you are not changing the name of the output of the Viewshed tool, it's always the same output name. When using an iterator you need to be using inline substitution to create that unique output name. You do that by referencing the value in what is being called Value from your iterator.

In your case lets says output is going into c:\temp then the output parameter of your viewshed tool would be:


%value% will be substituted with the grouping value OID. So if you have 100 unique OID values you should get 100 rasters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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