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
1 vote
1 answer
68 views

Updating attribute field with values from list calculation using PyQGIS

I have a shapefile and I need to update a field with calculation results. In the calculation I'm iterating through two list with equal items as features of the shapefile. The sum of the list items ...
user avatar
  • 65
0 votes
0 answers
26 views

ArcMap ModelBuilder join field error

I need to create lines from points using bearing and distance tool. For a mass of files I use Iterator. Also I need to join attribute fields from source point layer to each line layer that made from ...
user avatar
0 votes
0 answers
20 views

Iterate over raster images and mosaic images based on same dates using model builder

I am trying to mosaic images with same dates in a folder. As there are images with different dates in the folder I have looped through the images with just SR_clip.tif extension using wildcard that I ...
user avatar
1 vote
1 answer
35 views

Turning values from one feature into Field names in another feature using ModelBuilder with ArcGIS Pro

I'm trying to use the Iterate Row Selection function to collect values from one feature, and then create a series of new Fields in another feature using the collected values as Field Names. There will ...
user avatar
  • 11
0 votes
1 answer
35 views

ModelBuilder using iterator as precondition

Was wondering how I can iterate over field values and when all the iteration is done to move onto the group at the end. I've tried setting a precondition within the loop but that just causes the whole ...
user avatar
  • 61
0 votes
1 answer
27 views

Accumulation Function Error in Google Earth Engine?

The below code is going to calculate accumulative temperature by adding each image to the previous ones. Despite it works and plots values but csv file shows many dates have been missed before. Does ...
user avatar
0 votes
1 answer
40 views

Repeat extracting values from all rasters in a folder

I want to extract values from multiple .tif files in one folder to points, which means I repeat extracting values from multiple TIFF rasters many times. How can I do this using an iterator? I prefer ...
user avatar
2 votes
1 answer
50 views

Clipping series of buffer zone polygons using series of boundary polygons that have same file name using ModelBuilder of ArcMap

I have an iteration problem. I have a series of polygons that represent 1000 m buffers of individual lakes. I would like to clip these buffers using individual polygon boundaries that represent lake ...
user avatar
  • 23
2 votes
1 answer
51 views

Using ArcPy to iterate feature classes for kriging

I have 12 feature classes and they are named from net_0 to net_11 but the order of feature classes In Arc catalog is,List_wells = [net_0,net_1,net_10,net_11,net_2,net_3,net_4,net_5,..net_9]. I used ...
user avatar
  • 23
2 votes
2 answers
164 views

Iterating over features within Group Layer that will be identified with Wildcard using ModelBuilder of ArcGIS Pro

In the ModelBuilder of ArcGIS Pro 2.8.1, using Iterate Layers, I want to iterate over features that are in a group layer. It seems like I should be able to identify this group layer by using a ...
user avatar
  • 452
2 votes
1 answer
29 views

Iterating files in contents pane or in .mapx in ModelBuilder

I am using ArcGIS Pro 2.6.1. I have consolidated a map and was able to shorten the name of the files within the resulting consolidate map folders. Consolidate Map tool also creates a map.mapx file ...
user avatar
  • 21
1 vote
1 answer
184 views

Calculating field when iterating file geodatabase using "if field exists" statement in ArcMap 10.3

I need to calculate certain field in every feature class within a file geodatabase in case this field exists. If it doesn't, I want iterator to skip appropriate feature class. I'm building a model, ...
user avatar
  • 91
1 vote
0 answers
69 views

Using ArcGIS Pro ModelBuilder to iterate through folders and create mosaic

I am trying to create one mosaic from every month of the year. I have 3 folders with raster files for each month. So I have been trying to create 12 different mosaics from these files without success. ...
user avatar
1 vote
1 answer
50 views

Iterate Field Value and Select by Attribute in ArcMap does not select rows after first iteration

I'm running ArcGIS 10.3 on Windows 10. I need to find all the Block names and identify the record with the largest area. Then I need to calculate the Species across to the last field. However, it ...
user avatar
  • 423
3 votes
1 answer
121 views

Save geodataframes from list to separate shapefiles

I have a list of geodataframes which I imported from a folder full of shapefiles: import glob import geopandas as gpd shapefiles = glob.iglob('E:/folder/shapefiles/*.shp') gdfs = [gpd.read_file(file) ...
user avatar
  • 413
0 votes
1 answer
160 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 ...
user avatar
  • 11
2 votes
2 answers
145 views

Joining multiple tables to multiple feature classes using ModelBuilder / arcpy

I have a list of tables (1,2,3) and would like to join the tables, tables by table, to a list of feature classes (1X,2X,3X). So that table 1 combines with feature class 1X, table 2 with feature class ...
user avatar
  • 21
0 votes
0 answers
41 views

Inline variable substitution to end at a certain character

I am working in ArcGIS ModelBuilder. For one of my models I would like to use an iterator (Iterate Feature Classes) but am having difficulties with the Wildcard. Here is an example of some of the data ...
user avatar
2 votes
1 answer
55 views

Iterate Feature Selection freezes in ArcGIS Pro 2.7

I'm recreating a model on ArcGIS Pro 2.7 that I have used in the past on ArcMap 10.7.1. It is a model that takes a selected parcels layer, iterates through each selected parcel to find the addresses ...
user avatar
  • 85
1 vote
0 answers
40 views

Using ModelBuilder to iterate row and calculate field (code block)

I would like to use "iterate row selection in ModelBuilder" and for each row, I want to use the field calculator's code block to create a conditional statement that goes: If field=0 then go ...
user avatar
  • 21
0 votes
1 answer
53 views

Iteration Error in Google Earth Engine?

The below code computes area elevation relationship by iteration algorithm. But when the interval sets to 0.5 shows same area values in a row(like the below picture). code link: https://code....
user avatar
0 votes
1 answer
161 views

Google earth engine: function to apply code to sequential dates

0 I have a code which creates a value for several different variables for a specific time period (usually over 1 month) and exports these as a csv to my google drive. You can find a link to the code ...
user avatar
1 vote
1 answer
316 views

Using ModelBuilder to iterate through fields in shapefile and create raster from each

I have the exact same problem as Iterate Through Fields in Model Builder [sic] at GeoNet but all the solutions proposed there involved ArcPy and I'm not familiar with that program. I would like to use ...
user avatar
0 votes
0 answers
64 views

Are there scenarios where the JSON payload from an AGOL webhook would have multiple collections in the array?

I have a webhook in AGOL that posts a JSON payload to an external system (Integromat). The webhook is triggered when features are edited in a feature layer (Change Types: FeaturesEdited). This is ...
user avatar
  • 756
0 votes
0 answers
34 views

ArcMap Modelbuilder Iterator (tables) - Not iterating DBF files [SOLVED]

I have a model created in ArcMAP 10.8 modelbuilder that has an iterator (tables) (standard setup). The model is setup in such a way that it runs various analysis on multiple DBF files in a folder. The ...
user avatar
  • 39
1 vote
0 answers
72 views

Adding multiple vector files in a folder as an input in QGIS processing modeler using iterator tool

I have shapefiles in a folder that I intend to use as an input in QGIS Processing Modeler. I would like to iterate within the folder to add each of the shapefiles as an input. It did it in ArcGIS ...
user avatar
2 votes
0 answers
202 views

Clip feature (with selected attributes) with individual polygons using iterator: name error or repetitive selection

I have a bunch of locations (polygons) across the USA that I will use to clip a number of features and rasters (e.g., the National Hydrography Dataset). When I clip a dataset like the NHD with all of ...
user avatar
2 votes
3 answers
159 views

Including float value in loop processing of Surface Volume tool using ArcMap ModelBuilder

How do I use the Surface Volume tool in ArcMap via Model Builder, without using Python, to process a set of multiple float values in a loop, since an iterator takes integers when I implement a for ...
user avatar
  • 53
1 vote
1 answer
52 views

Nesting iterators using ModelBuilder in ArcMap

I need to iterate all files in one folder/geodatabase, and perform those operations for all files in a different folder/geodatabase i.e. a matrix, of all entries in one, to all entries in another. ...
user avatar
  • 980
0 votes
2 answers
118 views

How to iterate folder in a model that has a sub-model (iterate raster) in ModelBuilder

I have multiple folders that contain a number of raster files. What I would like to do is iterate through every folder and resample each every raster file from 1km to 30m. Since only one iterator is ...
user avatar
-1 votes
1 answer
217 views

Using Model Builder iterators to create unique shapefiles from one big shapefile

I'm trying to use Model Builder in ArcMap to split one shapefile with multiple entries into unique ones and then create individual buffers for each of them. See image for the table. I think it should ...
user avatar
  • 213
2 votes
0 answers
323 views

Error 999999, Table name is invalid - Zonal Stats as table

I am attempting to run a model that iterates rasters and computes zonal statistics returning a table. The raster's statistics are computer across all polygons in a specific shapefile. This model ...
user avatar
0 votes
0 answers
76 views

Iterate Workspace not working in ArcGIS Pro ModelBuilder

I created a model in ArcGIS Pro that will delete features (ex. drainage areas) that intersect with unfeasible landcover classes within a raster (ex. impervious). So I used the following model ...
user avatar
  • 1
-1 votes
1 answer
178 views

Using iterator in ModelBuilder with layers in REST Service

Is it possible to get an iterator in ModelBuilder to iterate through layers in a REST service? It appears to be possible to extract data from many REST service layers. However, I want to point an ...
user avatar
0 votes
0 answers
156 views

Iterating spatial join with multiple merge rules (and then creating raster) in ModelBuilder?

I'm using a Basic licence in ArcGIS Desktop 10.3 with Spatial & 3D Analyst extensions. I have a dbf file which contains point data for several days. I want my final output to be a) a point ...
user avatar
  • 61
1 vote
0 answers
79 views

Using submodel within model in ArcGIS Desktop

I have two databases 175 shapefiles each I want to clip each one of them using the corresponding shapefile from the second database .. as I can't use two iterators I have to do a nested submodel ...
user avatar
0 votes
1 answer
548 views

Iterating feature classes in multiple geodatabases using ModelBuilder?

I have 5 geodatabases. All have a feature dataset that contains a point feature class called "Point" and a line feature class called "Polyline." I want to go through these feature datasets, take only ...
user avatar
  • 335
2 votes
0 answers
32 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 ...
user avatar
3 votes
1 answer
67 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 ...
user avatar
  • 33
-1 votes
1 answer
113 views

How does 'Iterator row selection' function work?

How does the 'Iterator row selection' function work?
user avatar
5 votes
1 answer
569 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 ...
user avatar
1 vote
1 answer
244 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 ...
user avatar
  • 157
1 vote
1 answer
122 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 ...
user avatar
0 votes
0 answers
32 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 ...
user avatar
  • 41
1 vote
0 answers
74 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 ...
user avatar
  • 145
0 votes
3 answers
210 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 ...
user avatar
  • 25
0 votes
1 answer
510 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 ...
user avatar
  • 25
1 vote
1 answer
325 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 ...
user avatar
  • 63
1 vote
1 answer
66 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 ...
user avatar
  • 83
3 votes
1 answer
71 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 ...
user avatar

1
2 3 4 5
7