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

learn more… | top users | synonyms (1)

0
votes
1answer
55 views

Copying Multiple Selections (by Attribute) to One Output Shapefile using QGIS Python scripting?

INTRODUCTION The code below makes a selection and then saves to an 'Output' file (shapefile?) each time through the "FINAL ITERATION LOOP". Each 'Output' file will contain all selected civic address ...
2
votes
0answers
57 views

File iterator in ModelBuilder does not work correctly when passing variable input folder? [closed]

In ArcGIS ModelBuilder, I am trying to iterate over some ascii files (my_ascii.asc) in a folder (c:\my_folder) and converting them from ascii to raster. This works fine if I do it as shown below. ...
4
votes
1answer
108 views

Iterating polygon creation in ArcGIS ModelBuilder?

I have contour lines in a feature class. I covert the closed lines into polygons using the 'Feature to Polygon' tool. With this method I get concentric stripes, but I need the area of each area ...
2
votes
1answer
99 views

Iterate - Raster Calculator - 8 Day MODIS LST to Monthly Avg

I have 8-day MODIS Land Surface Temperature data from 2009-2013. I have used Model Builder to extract the LST_day and LST_Night Subdatasets (in different model runs). What I am attempting to do next ...
0
votes
1answer
43 views

Looping output as new input many times (50+) in ModelBuilder?

I want to run focal statistics on a raster, then run focal statistics (same configuration/setup as the first focal stat.) again on the output, and again on the new output, and again, and again. ...
4
votes
1answer
431 views

Raster Calculator Iteration in ModelBuilder?

I have a large number of rasters and I want to add 1 to each of them (e.g. each raster's values currently range from 0 to 1, and I want to make them range from 1 to 2). I believe ModelBuilder, using ...
1
vote
2answers
81 views

Extracting a Feature Class' Name, and Adding It to a Field

I'm building a bike network dataset based on an existing street network. Each bike lane/route/path has a unique ID number (assigned by our engineering deparment) that must be included in a separate ID ...
1
vote
1answer
155 views

Build ArcGIS Model to Select by Location (Within a Distance) and Export to KML with an Iteration

I have a parcel shapefile and point data. I need to select parcels within 0.5 miles of each point and export that data to KML then repeat the set of each point (Iteration). The KML also needs to be ...
0
votes
0answers
80 views

Using “While” iterator in ModelBuilder

I can't find examples of the "While" iterator being used other than this: Using ArcGIS ModelBuilder with a "While" Iterator Are there links to any other examples available? For my ...
2
votes
0answers
45 views

Excluding Specific Feature classes from ModelBuilder iteration?

I am creating a model the will iterate through the feature classes in the dataset. It will select attributes from each feature class, the only issue is, two of the feature classes will cause a break ...
0
votes
0answers
41 views

Clipping only overlapping datasets using Iterator function in ArcGIS ModelBuilder?

I've create a geodatabase with about 100 feature classes for my home province. I want to be able to specify a project extent and clip the feature classes to that extent and save into a new ...
2
votes
1answer
343 views

Using Iterate Feature Selection export features to new feature class with unique names

I'm trying to use ModelBuilder in ArcMap 10.2 to select features from a large data set (>30,000 features) based on a value in the field "Route" and have those selected features export to a file ...
0
votes
0answers
12 views

Error while running the model for join Iteration

I am trying to run a model which iterates joining multiple tables to a shapefile and export the resultant shapefile after each iteration. The model runs successfully but after each run, only the ...
2
votes
1answer
132 views

Iterate Row Selection Using Current Selection ArcMap 10.2 ModelBuilder

I am trying to make a model using Iterate Row Selection. I have a buffer shapefile and a line shapefile. Ideally I would like for the model to loop through the buffer shapefile and select each row one ...
0
votes
0answers
39 views

Linking Statistics Type with Calculate Field after Table Join using ModelBuilder?

I am attempting to build a model using ModelBuilder in which there is a zone statistics tool being run iteratively for a set of rasters. The input is a blank template table that contains the number ...
2
votes
2answers
94 views

How to change output folders when iterating a geoprocessing model?

I have digital elevation models clipped to watershed boundaries and I have to run a set of tools to hydrologically condition each one, and I want to use the iterator tool to automate this process. ...
2
votes
1answer
350 views

Loop through columns Python arcpy.ListFields

I am trying to run a Python script that loops through all fields in my input feature attribute table. I have searched extensively and tried to use arcpy.ListField to work but it seems all people got ...
0
votes
1answer
57 views

Creating coded values with iteration from a field

I'd like to find a way to add coded values to a Text domain using values from a table field, if such a thing is even possible. I'm using the Add Coded Value to Domain tool connected to two variables: ...
1
vote
0answers
37 views

Iteratively Change Object's Instance Attributes PyQGIS

I am trying to create new instance attributes (NOT feature attributes) for a collection of features in a vector layer in PyQGIS. I'm getting some weird results and am wondering if this is even ...
1
vote
1answer
83 views

Iterating Table Fields to Create Individual Shapefiles

I am trying to create individual shape files from a single table that contains the following: Weather Station Names Station XY Cordinates 31 individual field columns of daily data for each weather ...
1
vote
0answers
59 views

Using ModelBuilder or Python parser of Field Calculator to check values between two datasets?

I have a *.dbf that I need to check values against for a shapefile. I need to report whether the values match the dbf in the shapefile and, if not, what the value should have been (in two new fields)...
1
vote
0answers
121 views

ArcGIS ModelBuilder Iterate tables: Make Query/SQL expression

I'm new to ArcGIS and was wondering if someone could help me with my SQL expression. Essentially, I'm using ModelBuilder to iterate over several tables and Make Query table for each one. I'm trying ...
1
vote
2answers
287 views

Using Value from Iterate Feature Selection to create new files per feature value

I am attempting to use Model Builder to export a file per value in a feature. The intent is to create a file per school, listing the students that attend. We currently have a single large file with ...
1
vote
0answers
62 views

Why the iterator never ends?

I set a iterator to create two categories of feature class, and then join and dissolve them. The calculation works fine. However, the running result never shows completion even when the calculation ...
0
votes
0answers
84 views

Skip an iteration in ModelBuilder?

I am trying to iterate through some feature classes, named "Hos_AllPatients2014", and select the certain data and name it "Hos_IP", then export it to the corresponding folder "Hos". I have already ...
0
votes
4answers
102 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
143 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
150 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
24 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
490 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 ...
1
vote
2answers
120 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
86 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 ...
3
votes
1answer
265 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, ...
4
votes
1answer
323 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
1answer
161 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
62 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
307 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 1=...
0
votes
0answers
74 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
222 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). ...
1
vote
1answer
84 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: http://...
0
votes
2answers
314 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
860 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
345 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 ...
1
vote
0answers
145 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 ...
2
votes
1answer
268 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
74 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
75 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
118 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
339 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 ...
-1
votes
1answer
316 views

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

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 ...