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
2
votes
0answers
13 views

Iterator (Iterate Feature Selection) running loop in undesired path using ArcMap ModelBuilder?

I am building a model using Iterate Feature Selection. I want to run the Iterator -> select by location -> Calculate field, and after finishing this loop (#3 in the image below), I will continue to ...
3
votes
1answer
52 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 ...
-1
votes
1answer
22 views

How does 'Iterator row selection' function work?

How does the 'Iterator row selection' function work?
3
votes
0answers
22 views

Preconditions not working on second iteration of ModelBuilder?

I'm working on a project where I have to iterate through geodatabases and handle some debug errors if they exist. For this I've created a ModelBuilder model, in ArcGIS 10.7. Essentially, what the ...
1
vote
1answer
25 views

ArcGIS Pro ModelBuilder iterate and lookup values/table for parameters?

I have a module I've written in the ModelBuilder that uses a few parameters. I need to run this module on several raster files, each time with different parameters. Is there a way to use the ...
1
vote
1answer
28 views

ArcMap ModelBuilder Iterator running only once and generating non-unique outputs

I'm trying to generate LST from landsat tiles using modelbuilder in ArcMap. I have used Iterators and Sub-Models inside the Main Model but the problem is that whenever I run the Main Model, it only ...
0
votes
0answers
15 views

Iterating clip in ModelBuilder based on different province/county names using ArcGIS Pro?

I have a featureclass with all counties/provinces from the Netherlands and I would like to do clips for roughly 8/9 counties based on their names in the feature class. I have a feeling that I have ...
1
vote
0answers
31 views

Error 000445 in iterate Resample for rasters in Arcpy

I'm trying to resample rasters using a foor loop. Something is going wrong but i don't know what... This is my code: import arcpy, os, math from arcpy import env from os.path import split, join from ...
0
votes
3answers
62 views

Model Only calculate value with zonal statistics as table

In a precedent post Multiple Output for Zonal Statistics as Table I was trying to have as many table in the output as the rasters in the input. To overcome my errors, I decided to add a "Model Only ...
0
votes
1answer
66 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 ...
1
vote
1answer
54 views

Project raster with geographic transformation works stand alone but not in model with iteration

I will briefly describe my unsuccessful model shown below. It fails at the very last Project Raster step, where I receive an error mesage. The model: I have a workspace called South America. It ...
0
votes
0answers
31 views

For ArcGIS Pro - What if you need two iterators in one model? Looking to batch clip multiple shapefiles with a Feature Selection iterator?

I am working on a series of maps in ArcGIS Pro, matching wind speed and direction with a modeled migratory path of 19 sparrows for the month of April. The wind speed and direction shapefiles are from ...
0
votes
0answers
31 views

SQL expression for “current” layer when using iterator?

I am trying to run a model to select the maximum (wind measurement) value from each weather station (called SNXXXXX), which has their own feature class in my input gdb: in the Feature class to ...
1
vote
1answer
14 views

Export Rasters from geodatabase containing specific words in title

I have a file geodatabase containing +200 rasters. I want to export a selection of these based on words in the middle of the file name. Example file names below: Bat_day_male Bat_night_male ...
3
votes
1answer
46 views

Iterating in ArcGIS ModelBuilder?

I'm trying to make a model where I make a copy of 'geodatabase A' to another location as 'geodatabase B', delete all of the datasets within, and create new datasets for geodatabase B. The reason I'm ...
2
votes
1answer
49 views

Creating ArcMap Model with multiple iterators? [duplicate]

I'm using ArcMap version 10.4.1. I'm attempting to create a model which almost works perfectly but I can't figure out the last bit. Ultimately I want to run the "extract by mask" tool multiple times. ...
0
votes
0answers
55 views

Using ModelBuilder Iterator sub-model then append?

I've created an iterator as a sub-model that collects values, then a main model that appends those values together upon completion of all iterations. My issue is if the iterator runs 10 times, then I ...
0
votes
0answers
33 views

Multiplying individual raster layers by corresponding values in Excel file?

I have two groups of items I want to multiply, using the Times tool. I have a geodatabase full of density raster layers. I also have an excel sheet. This excel sheet has a column listing the names ...
0
votes
1answer
36 views

Using ModelBuilder to Summarize Multiple Feature Classes?

I am trying to create a model that will iterate through all the files in a Database, return the counts of each feature class, then add them all together to get a final count and put the result in a ...
1
vote
1answer
43 views

Forcing Feature Compare tool to iterate through multiple files in specific order?

I am working with multiple layers and I have been asked to find the percentage of change between them: GEOM, ATTR and ALL. I know that there is the Feature Compare tool and the Table Compare tool (I ...
0
votes
0answers
20 views

Adding same field(s) to multiple shapefiles in ModelBuilder?

I have 18 feature classes that I need to convert to shapefiles and then add the same 12 new fields to. I know I can do this using the "Batch" option, but I'd like to do this in ModelBuilder so that I ...
1
vote
0answers
18 views

Adding input files of near tool using %name% or %value% function?

I am trying to caluclate the nearest distance between road and road_buf shp. But I'm struggling to add input features using %name% function in NEAR TOOL. I want to add road_buf file as "c:Desktop\...
1
vote
0answers
52 views

Model Builder iteration process problem: could not create the output tables invalid extension

I encountered problems with my Model Builder in Arcmap 10.4: I want to perform some statistics on my rasters using the same polygon (buffer). I use the Raster Iteretor and I did check if the extent ...
1
vote
1answer
67 views

Using Row Iterator and IDW in ModelBuilder?

I am using ModelBuilder to perform inverse distance weighting. I would like to interpolate values using a point file with values for several unique dates - resulting in a raster dataset for each ...
1
vote
1answer
35 views

Iterate bug in ArcGIS ModelBuilder?

When I add inn an iterator into my model, the first tool (which in this case is "make XY event layer") keeps running in a loop. This occurs even if the iterator is not even connected to anything. Once ...
0
votes
1answer
40 views

Selecting points in polygon in a range of time (ArcGIS)

I have: - point GPS for people (time in seconds) - buffer GPS for a car (time in seconds) What I want to do is for each buffer GPS coordinate, I want to find the number of GPS people points inside ...
0
votes
1answer
64 views

Using Con tool with iterator in ArcGIS ModelBuilder?

I have been using ArcGIS Modelbuilder on 16 years of MODIS LST 8 day data, ie. quite a few files. I want to use the QC pixel data at error <=1, 2, and 3K to overlay on the base LST data so I can ...
0
votes
1answer
46 views

Using ArcGIS ModelBuilder row iterator?

I have a process with an address list as an input table. The row iterator should iterate through entries of the address name column and then I use the output values for some other stuff. It works ...
1
vote
0answers
33 views

Using ModelBuilder to Iterate Row Selection with ArcMap?

I have a model that does a lot of linear calculations, then eventually runs into an ITERATE ROW SELECTION tool. I only want the iterator to cycle through the tools downstream of itself, but instead ...
0
votes
1answer
178 views

Make NetCDF Raster Layer tool in ModelBuilder - Cannot export as geotiff

I am attempting to iterate through thousands of .nc files to convert them into geotiffs using the Make NetCDF Raster Layer tool. I am using ModelBuilder to accomplish this. The iterator works fine, ...
1
vote
1answer
83 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 ...
1
vote
2answers
2k views

Arrange pair of coordinates in Python lists [closed]

I have these coordinates of a bounding box in this format: (51.901071, 7.543488, 52.002215, 7.692406) and I want to convert it into a list of coordinates so that I can iterate through the pair. The ...
1
vote
0answers
187 views

Iterating polygons in folder as input in QGIS Modeler like ArcGIS ModelBuilder

How do I iterate polygons in a folder as input in QGIS modeller? Usually, ArcGIS can iterate polygons as an input for functions like union, merge, intersect, etc. But I cannot find the way to do ...
2
votes
0answers
41 views

Logical operators and looping back through a process in Modelbuilder

I am using a series of models in ArcGIS Pro 2.1 to manage gaps and slivers on a very large dataset, and have hit a wall trying to use a logical operator. I have split the data into multiple smaller ...
1
vote
2answers
275 views

Batch Calculating Indices

I have 111 Landsat8 scenes which I want to calculate several indices for. The algebra to calculate them is most of the time Index= (b1-b2)/(b1+b2). I have the single bands (bands 1-11 respectively) ...
0
votes
2answers
167 views

Geoprocessing all shapefiles of folder using ArcGIS ModelBuilder?

I have 200 shapefile in a folder. All of them are similar. I need to select by attribute then apply the Eliminate tool and save the shapefiles. How do I do this automatically with all the feature ...
1
vote
1answer
39 views

Move to next iteration in event of empty feature class

I'm working on a model that processes lidar data from a public layer file, one quadrangle at a time, as I don't have a powerful enough machine, or enough storage to do it all at once. I am looking for ...
0
votes
1answer
46 views

How to use preconditions with row counts when some row counts = 0?

I have a model that iterates through a series of neighborhood polygons and clips several different datasets using the iterated neighborhood polygon. I am trying to determine the number of features ...
1
vote
0answers
36 views

Using For Iterator in ArcGIS ModelBuilder?

I'm trying to build a rather easy model but somehow couldn't find a solution to one problem: I work with a main model and a submodel which contains the iterator "for". I want to buffer a feature class ...
1
vote
1answer
22 views

Double Iterator Name in ArcGIS

I have a created a simple model in ArcGIS ModelBuilder. It works fine, however, I have problems saving the resulting files with appropriate names. I iterate over 150 feature classes and sent them ...
1
vote
1answer
150 views

Intermediate data not deleted properly after running model in ModelBuilder after Windows 10 update?

yesterday my Windows 10 got update and finally, the Active X warning that has occurred for more than a year now vanished. Instead, I ran into another problem that never happened to me before and that ...
0
votes
1answer
67 views

Iterate Row Selecton - Buffer Distances

I am trying to iterate through a set of 50 points of GPS data. Each have their own unique Estimated Horizontal Accuracy. What I am looking to do in ModelBuilder is create a model so that it creates a ...
1
vote
0answers
38 views

Iterate rows in polygon, use result to select by location

I'm not overly familiar with iterators but basically I have a polygon with multiple rows. I want to select each row in that polygon feature class and use the selected polygon in a select by location ...
2
votes
1answer
83 views

How to Remove Decimal Points From Measured Grid Label C#

I'm creating a map layout with a measured grid using visual studio and ArcGIS Engine 10.4. I was able to change all the properties for the grid label (color, font and font size), except for the part ...
0
votes
1answer
87 views

Iterate Cell Statistics Every 5 Raster [closed]

If I am going to use cellstat alone, CellStat would produce mean of 2000 rasters inside the FOLDER(ALL RASTERS). I want to average only every 5 raster which would result to 400 rasters. How do you do ...
1
vote
1answer
83 views

Using iterator in a cost distance analysis model with multiple destinations

I am building a cost distance model to find three different paths. Each has his own start and end point. So there are three start points with each an end point belonging to it. I want to use an ...
1
vote
1answer
229 views

Error 000735 when using collect values

I am using a Feature Class Iterator in a Submodel ending with Collect Features: The main model looks like this: When I want to run it I only get this error: I have no clue why he says the value ...
0
votes
1answer
143 views

Modelbuilder iterator only puts out the last input?

I need to use an iterator in a model process. My problem is that I always only have one output instead of three. There are three Polygons e to run. The output always only contains the last Polygon one ...
1
vote
1answer
77 views

Nested iterator in model not working?

I am trying to iterate through 2 folders (1 for points, and 1 for polygons) and use the output values as inputs for another submodel that applies IDW, Focal Statistics, and finally a Clip (to a ...
0
votes
2answers
55 views

Adding dynamic name in tool parameter?

I am building a model in ArcMap ModelBuilder that will take an input dataset folder, iterate through each shapefile in that folder and use that shapefile as an input for another tool. I then want to ...