Questions tagged [iterator]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
5k views

Iterating through columns in table using ModelBuilder?

I am unable to find any info on how to use ModelBuilder to run a certain spatial analysis function on each column in a table. I have a table to sample locations and at each location there are a ...
Mr.ecos's user avatar
  • 471
3 votes
2 answers
8k views

Using Value from Iterate Feature Selection to Calculate Field in ArcMap ModelBuilder

I am using ArcMap 10.1. I have two polygon feature classes, an alignment layer and a parcels layer. I am trying to use ModelBuilder to create a tool that will do the follow: iterate through groups in ...
kkaszas's user avatar
  • 290
13 votes
1 answer
5k views

Simplify repetitive tasks in QGIS Graphical Modeler

Are there iterators that can be used in QGIS graphical modeler to simplify the model shown above. If not, is there any better way of simplifying the model? The first column represents my input layers,...
DennisTG's user avatar
  • 256
8 votes
1 answer
3k views

nested iterator, 2 iterations in one model, collect values, cell statistics, batch processing dialogue box

(ArcGIS10, SP2, ArcInfo) This is my model, and it works perfectly, but... I do have a large amount of data to process. The interim output files (from raster calculator, collect value) would reach ...
MsGISRocker's user avatar
4 votes
1 answer
3k 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 ...
Jelle's user avatar
  • 371
4 votes
2 answers
2k views

How to prevent running part of a model when iterator is used?

My process is to run Buffer on two feature layers, intersect the buffers and then Clip intersected buffers with polygon object from Iterate Feature Selection iterator. Here's my model: The model runs ...
Marcin's user avatar
  • 1,821
3 votes
1 answer
6k views

How to iterate through layers of an MXD?

I know model builder will not iterate through the layers in an MXD, which is kind of fundamentally stupid if you ask me, but I still need to do exactly that. I am not a strong coder but i understand ...
user25644's user avatar
  • 1,059
2 votes
2 answers
9k views

Joining Fields from Multiple Tables to One Table in ModelBuilder?

I have 40 tables with about 2000 row with a shared ID that I want to merge into 1 table with 2000 rows. I only want to retain a distance field calculated within each table. The distance field is ...
ajeedee's user avatar
  • 123
5 votes
3 answers
272 views

Looping every features pair with PyQGIS

I need code that loops between each pair of features in sequence (feature 1 with feature 2, feature 2 with feature 3...) but using only a for, I searched the forum and found similar code but with two &...
Mestrexama's user avatar
5 votes
1 answer
2k views

Using If precondition is false, continue iterating next input in ModelBuilder?

I've built a model in modelbuilder but cannot find an answer to this problem. Please help if you can. Firstly I have an 'iterate feature class' tool drawing inputs out of a folder and then selecting ...
KennyC's user avatar
  • 115
4 votes
2 answers
452 views

ArcGIS ModelBuilder iterator reports only last input shapefile?

Using Arc 10.3.1, if I manually enter the names of multiple shapefiles (all from the same folder) into the Check Geometry tool, the (single) output table lists the errors that exist in all of the ...
user45726's user avatar
4 votes
1 answer
938 views

Iterating in ModelBuilder to 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 ...
R. Stevens's user avatar
3 votes
2 answers
2k views

Iterating in ModelBuilder?

Ultimate goal is to pull data from a Feature Class, group out the different types of Lease Status (field), run a dissolve and sum calculation on each new layer/FC then merge all new layers/FC's ...
Karen's user avatar
  • 33
3 votes
2 answers
2k views

Nesting two iterators for cost distance calculation in ModelBuilder?

I am attempting to calculate cost distances iteratively for each point element in different datasets. I created a model that does the job for a single dataset but when I try to batch it I'm getting ...
Sebastian's user avatar
3 votes
1 answer
3k 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 ...
Britt W's user avatar
  • 61
3 votes
1 answer
3k views

Using ArcGIS ModelBuilder with a "While" Iterator

I am struggling to get the ArcGIS ModelBuilder "While" Iterator to work as I would expect it. I have a hunch it's user error, but even reading the help hasn't seemed to get it working for me. I have ...
RyanKDalton's user avatar
  • 23.1k
3 votes
1 answer
3k 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 ...
geoJshaun's user avatar
  • 1,525
3 votes
1 answer
3k views

Using multiple wildcards within iterator of ArcGIS ModelBuilder?

I would like to know if it is possible to use multiple wildcards to select specific shapefiles when using the Iterate Feature Classes tool in ArcGIS ModelBuilder. I use this to select all shapes ...
JPD's user avatar
  • 1,658
3 votes
1 answer
78 views

Storing points from multiple GDBs as object

I often download data that comes in 30 minutes to 1-hour windows and then have to compile that data manually into one feature class, from multiple GDBs. I am trying to iterate through the separate ...
cameron's user avatar
  • 33
2 votes
0 answers
497 views

Extracting specific feature class from dataset in ModelBuilder?

I would like to be able to run a model that iterates through datasets and at one point extracts just a single point feature from within the dataset and save it in a different geodatabase. The problem ...
GeoJohn's user avatar
  • 1,986
2 votes
2 answers
1k views

Model builder: select feature based on attribute, iterator?

This is the data I have: shapefile with polygons shapefile with line features What I eventually want: line features attributes joined to the polygons that they fall in. I need to clip each polygon ...
sandra's user avatar
  • 21
2 votes
1 answer
2k views

Piping output of Iterate Raster tool into Raster Calculator tool using ModelBuilder?

ArcGIS v10.1 ModelBuilder Using ModelBuilder and map algebra, I want to compute a ten year average grid from a stack of 10. The problem is that only 1 grid (%raster%), the last one through the ...
user15968's user avatar
1 vote
1 answer
5k views

ArcGIS Iterate Files tool in ModelBuilder gives ERROR 000732?

I want to use a "simple" iterator to process all the text files in a directory using my model but ModelBuilder won't let me connect the file to the first step of the model. Once I run the Iterate tool,...
GeorgeC's user avatar
  • 8,196
1 vote
2 answers
495 views

Iterating with sub model iteration

I have a model within a model. Each model has an iterator. The sub model has a iterate feature class instance and the main model has an iterate row selection. I need for each feature class a field ...
D_C's user avatar
  • 1,359
1 vote
1 answer
141 views

Action after iteration in ArcGIS ModelBuilder?

I've build a model using the ArcGIS ModelBuilder. The model uses an iterator that clips all the features in a specific geodatabase. The iterator-part is nested in a submodel. I want that geodatabase ("...
jack.valentine's user avatar
1 vote
1 answer
162 views

Using Iterator with ModelBuilder for clipping and splitting in ArcMap?

My input feature class is a county-wide dataset and the input clip feature is a township’s ‘section.’ I have 576 different ‘sections’ in which to clip the county-wide data out to. Though I dont have ...
Benjamin's user avatar
1 vote
2 answers
3k views

Changing 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 ...
Franky's user avatar
  • 11
1 vote
1 answer
1k 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=...
AstridB's user avatar
  • 11
0 votes
0 answers
52 views

Random error iterating add fields (multiple) to folder of shapefiles

I have a folder of shapefiles in iterating through and a series of processes. I am getting several seemingly random errors, between which field is the issue or on which shapefile it happens to, mostly ...
CarteCraft's user avatar
0 votes
1 answer
619 views

Multiple Output for Zonal Statistics as Table [closed]

I am trying to merge NDVI data from 2005 to 2018 (two .tif per decade) with a region land use. For this, I have used "iterate rasters" with 36 of .tif I'll be using, as the 'Input value raster' of ...
Nour's user avatar
  • 25
0 votes
1 answer
219 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 ...
crld's user avatar
  • 882
0 votes
1 answer
326 views

Euclidean distance tool failing in model iterator ArcGIS Pro

I have a set of points representing houses (>500). I am calculating a cumulative viewshed for each house and mosaicing them onto a target raster using iterate feature selection. One of the tools ...
Tom's user avatar
  • 11