In computer programming, an iterator is an object that enables a programmer to traverse a container.

learn more… | top users | synonyms (1)

0
votes
0answers
16 views

Using a Value Table to Calculate Multiple Fields

I'm looking to develop a tool (ideally through model builder as my python writing ability is not stellar) that creates a simple user interface that has dropdown menus for desired fields of a selected ...
0
votes
3answers
26 views

ModelBuilder - Iterate through tabels to join and export and keep original field names

I am trying to iterate through an excel with over 200 sheets and join each to a ZIP code layer. I then need to symbolize each of those the three different ways and save that to a layer file. In order ...
0
votes
1answer
41 views

ModelBuilder, which tool should I use to rename layers with value from table?

Hi I have a ModelBuilder tool with an iterator that splits a feature into multiple shapefiles based on a attribute field. The problem I'm running into is instead of simply using the number values for ...
2
votes
0answers
45 views

Using Python to iterate through directory to create event layer and perform kernel Density for each file?

I am new to Python for ArcGIS, but have been using ArcGIS a while. I have a large directory of tables with point data. For each file of each folder I want to create a kernel density layer. I have ...
2
votes
1answer
18 views

Iterating through a FC and clipping by muliple areas of interest

I know how to build a model to iterate through a FC and clip that FC to ONE specific AOI, but is there a way (model or script) to iterate through that same FC but clip it to 35 different AOIs? I would ...
3
votes
5answers
291 views

Easy way to sum up a lot of values?

I've got a shapefile that was made by the mother of all Unions. Because of that, it's got about 400 columns, and I want to sum about 100 of them (specifically, the "Score" from each). Is there an ...
0
votes
2answers
42 views

Creating file geodatabases in multiple folders using iterator?

Software Spec: ArcMap 10.2.1 Advanced Licence. I have a single folder, let's call it "Processing". Inside this folder are 15 empty folders. Let's call these "Output_1" through to "Output_15". ...
1
vote
1answer
30 views

Iterating two different feature classes based on sequential order and clip

I have a watershed feature class with 273 polygons, in the attribute table there is a SiteID column that is populated as so: A1 A2 A3 A4 etc. I also have a buffer feature class with 273 polygons ...
1
vote
1answer
56 views

Iterators in model builder - merging nested files with same filename ending

I am trying to merge files that are nested in different folders by their file names. For example folder 1 contains up to 100 subfolders that each contain a set of shapefiles: subfolder1_A.shp, ...
2
votes
1answer
31 views

Iterating in Model Builder - Generate Output Files in Source Folder

I have a very simple model that has a feature class iterator (recursive) that runs through a directory and sub-folders looking for line files and then projects them to UTM_16N. The only issue with the ...
0
votes
0answers
29 views

Synchronize multiple sub model iterators in ModelBuilder?

I have quite a few burn date images (geotiff) for the past 14 years (one image for each month). My area of interest is in 4 images. First i need to mask the 4 images to extract area of interest and ...
0
votes
1answer
41 views

Add Polygons to SpatialPolygons via loop / iteration using R?

Just out of interest: I'm creating a SpatialPolygon (R with package "sp") with a number of Polygons within. Is there a way to loop this task? I'm doing it manually as follows. The Polygons consist of ...
1
vote
0answers
27 views

Nested iterators - batch merge from multiple outputs

I'd like to ask you some advice for nesting an iterator (from a submodel) into a master model which also include an iterator (see pic attached). The whole purpose is to 'Merge' the iteration output of ...
2
votes
1answer
67 views

How to use the math tool (“times”) in ArcGIS modelbuilder to multiply two raster sets while using an iterator?

I have two sets of rasters (in the same gdb), representing "loss" and "forestmask". I would like to multiply each forestmask raster (value 1 = forest) with its corresponding loss raster (value ...
0
votes
0answers
44 views

How to use Snap tool with iterator in ModelBuilder?

I have a folder containing large number of shapefiles that I would like to snap to a surrounding buffer. I need to snap UK district boundaries to 500m buffer around coastline. I have produced 200m ...
0
votes
1answer
47 views

How to output same name as input using Copy Features in ModelBuilder?

I am using ModelBuilder to iterate Closest Facility analysis for every building at an archaeological site (OD Cost Matrix is not what I need--I need the geometry output, not just a cost matrix table). ...
0
votes
1answer
47 views

Get country statistics using Iterate Feature Selection in ModelBuilder

I'm using night light data from the NOAA and I want to generate statistics on luminosity for each country, ie what is the mean pixel value for a country. I have been following this guide: ...
0
votes
2answers
116 views

Iterate incidents for closest facility analysis (Network Analyst) using ModelBuilder?

I have created a model for closest facility analysis (with help from folks on this forum, thx). Now I would like to add an iterator to it. Specifically, I need to iterate through 448 "Incidents" (the ...
0
votes
2answers
128 views

How to change different projections of feature classes in geodatabase to one projection in new geodatabase?

I want to create a script that iterates through feature classes with different projections in a geodatabase and exports them into a new geodatabase, all with the same projections. What I want is to ...
1
vote
1answer
46 views

Appending polygons to existing feature class in ModelBuilder?

I have a shp file with lots of polygons. I would like to create a buffer zone around the first polygon and intersect it (the buffer) with an other feature layer, than store the result in an existing ...
0
votes
0answers
42 views

Iterate origins and destinations in Modelbuilder for OD cost matrix analysis

Update: I changed my model, so I can iterate feature classes. My starting point is a gdb full of shapefiles of students (leerlingen), and another gdb full a shapefiles of school. leerling shapefile XX ...
1
vote
1answer
55 views

Using a feature iterator Value variable in a SQL expression of select by attribute

I am using Iterate feature selection to select dealers one by one as input features to the Near tool. I'm using Select by Attributes to select sales points from that same dealer. How do I sync the ...
1
vote
1answer
61 views

Increase buffer until value is reached?

Im builder a Buffer based on dealer sales. The inputs are Dealers points and sales points. I need the buffer to increase distance until 40% of sales volume is reached. Im not sure sure is I should ...
1
vote
1answer
50 views

Using Iterators in ArcGIS Pro ModelBuilder?

I am currently struggling with two issues in ModelBuilder both dealing with iterators. First I have situation where I have two model (Model1 and Model2). Both of these models produce a series of ...
0
votes
0answers
57 views

How to use the ModelBuilder iterator (For iterator) to run “Topo To Raster”

I want to use the ModelBuilder iterator (For iterator) to run “Topo To Raster” on 200+ inputs. But, when I want to write a dynamic name ("***%value%") in the field part of topo to raster window ...
1
vote
0answers
89 views

Having a problem with iterators in ArcGIS ModelBuilder

I'm having a problem with a process model I'm building. The process is as follows; A series of float img files are iterated and converted to raster files .img These files are then run through ...
0
votes
1answer
118 views

UnboundLocalError: local variable referenced before assignment wthin model builder iterator in ArcGIS

Within an iterator in Model Builder in ArcGIS I am trying to calculate a field value based on the inline variable substitution. In the picture I have renamed the tools with the corresponding inline ...
1
vote
1answer
108 views

Using only part of inline variable substitution string in ModelBuilder?

I am using an inline variable substiution to alter a field name. I do this within an iteration model in model builder. The inline variable is the name of the feature class which I use as my input for ...
1
vote
2answers
46 views

How to automate conversion of raster NoData values?

I am doing the work of change all null pixels to a value of -1 in the raster file X with raster calculator by using following syntax: Con(IsNull("X"),-1,"X") However, I need to do the same work on ...
0
votes
2answers
55 views

Nested Iterators

I have two polylines (say two paths/roads/etc. for example) that I want to iterate against another set of iterated polylines (ie. geologic fault lines). I want the first iterator to take Path #1 ...
1
vote
1answer
46 views

Using ModelBuilder and iteration to calculate values from previous row?

I would like to come up with a model that takes the previous value and adds it to the current value. For instance Value 3, 2, 3, 1 Would result in -, 5, 5, 4 I have been trying to use Iterate ...
0
votes
1answer
78 views

How to use iterators in ModelBuilder to create new feature?

I am attempting to use ModelBuilder to automate the process of plotting parcels of land that are related to mineral leases. The existing lease feature class contains information related to reference ...
1
vote
0answers
61 views

Creating Automated Upload Script

I have a bit of a complex scenario that I'm unsure how to put together into one model or script file. What I'm doing is creating service definition files then uploading these SD files to a server. ...
1
vote
1answer
52 views

Iterate Through Folders within Folders

I am having some trouble creating a model that will iterate through folders and subfolders. I want to be able to have the top level folder as a parameter and then have the code go through each of the ...
2
votes
2answers
163 views

Model Builder Iterator

I split sections of a roads on a map using polygons and now I would like to dissolve the roads within those polygons, but I only want to dissolve rows that have the same road name. (Roads are lines). ...
0
votes
0answers
24 views

Dissolving lines using iterate feature class (model builder)

I was wondering how I would build the model in order to dissolve multiple lines at once using the iterator. I have polygons over a line network that is supposed to represent roads, and I want to ...
0
votes
0answers
36 views

Modelbuilder Join

Trying to do an iterate with a join to a table to create a new feature class. The output has the spatial data but with none of the fields of the join making it. I think that I have the problem ...
4
votes
1answer
88 views

Is there a bug with the “For” iterator in model builder?

I have a problem using the "For" iterator in Model Builder (v 10.2.2, 64 bit, Windows 7). I wanted to create a series of rasters using the "Constant Raster" tool. The model works as expected when run ...
2
votes
1answer
95 views

Using iterator in ModelBuilder for groups of rasters

I'm trying to do some raster calculations on Landsat imagery in ModelBuilder. I'm calculating basic indices using Raster Calculator followed by Zonal Statistics. The resulting tables are merged ...
1
vote
1answer
37 views

issues with incorporating sub model which includes iterating featureclasses as output

Does anyone know why my model builder does not work when I tried to incorporate a sub-model into my main model? This is my problem: I created a sub model in which copies featureclasses within a ...
2
votes
1answer
107 views

Modelbuilder Iteration with Intersect Tool

I am trying to create a model that will select each feature within a feature class, then perform an intersect between that selection and another layer. The model setup seems rather straightforward, ...
2
votes
1answer
58 views

Iterate Row Selection takes too much of the model into ModelBuilder loop?

I am a little stuck with a relatively simple model. What I want: 1) Create a table "results". 2) Loop over "Points". 3) Do some buffer and counting 4) Put the results (OBJECTID and count) into ...
0
votes
0answers
137 views

ModelBuilder Iterate Row Selection & Variable Expected Fields in Summary Statistics

I have a model using a Iterate Row Selection. The inline variable produced by the iterator is used in the SQL expression of a Table Select tool. Note that this Table Select tool does not use the ...
0
votes
1answer
30 views

How to export (only) final iteration from modelbuilder?

I'm using an iterator in Model Builder (1) to merge files, using a feedback loop (2). The output file is named "Output_%n%.txt", (3), so each file is unique. Now, I'm merging a fair number of files, ...
2
votes
0answers
97 views

Iterating between two layers using QGIS python

I will try and explain my situation as clearly as possible. I just created my first plugin that is being used to analyze between various layers and give back quantities to the user. Most of it is ...
2
votes
2answers
86 views

Using Feature Class name to populate new field

I am trying to get the Feature Class name (from Iterate Feature Classes) into a new field. I have been following the models described in the following two threads. Using Value from Iterate Feature ...
2
votes
1answer
217 views

Limitations of iterate row selection in ArcGIS ModelBuilder?

inb4 using real script ;), I'm looking for some advice on arc's model builder. The iterate row selection in Arc's model builder allows you to make multiple table views based on field groupings of a ...
1
vote
0answers
110 views

ModelBuilder, Iterate by Field and Viewshed

I want to compute the independent Viewshed for 360 different points. If I run these all together, I have one viewshed output which shows how many times any given cell is visible, but this does not ...
3
votes
2answers
160 views

Iterate calculate field in multiple tables in ModelBuilder

I would like to iterate calculate field in multiple tables using ArcGIS Model Builder. The figure below explains details of the calculations. My existing model calculates value only for the first ...
1
vote
1answer
387 views

Using ModelBuilder to Iterate, Join & Export Feature Classes?

I am trying to make what I thought was a very simple batch processing tool, but I can't get the output to work properly. I would like the model to iterate through a geodatabase, join each feature ...