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
21 views

How to iterate through multiple polygons in a file using model builder using ArcGIS

This question is a lead on from this question which was not resolved: Iterating through multiple polygons to produce a table with elevations using DEM? I want to iterate through each polygon in a ...
-1
votes
1answer
314 views

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

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

Filtering a polygon by area with multiple iterations?

I am currently working on a habitat conservation map in ArcGIS 10.3. I want to filter out smaller areas from my polygon layer, but as I'm not sure what the appropriate habitat patch size is for this, ...
0
votes
1answer
33 views

Writing for loop for focal statistics?

Im trying to run Focal statistics on a list of parameters, where the radius changes for each input parameter and then save the resultant DTM with the radius attached in the name. I can do this for one ...
0
votes
0answers
58 views

Using iterator to interpolate across multiple fields of attribute table using ArcPy? [closed]

I interpolated precipitation data in ArcMap 10.2 using a surface-fitting tool [e.g. Global Polynomial Interpolation (GPI)]. I built a GPI model using ModelBuilder in ArcGIS 10.2, but the model only ...
0
votes
1answer
229 views

Multivalue iteration in Vehicle Routing Problem (VRP)?

I'm currently building a model that would simulate three different set of orders (shapefile format) by using the Vehicle Routing Problem (VRP) tool of network analyst. The model I built runs correctly ...
2
votes
1answer
403 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, ...
1
vote
0answers
20 views

File Path does not recognise Get Field Value

I have an ArcGIS model which I want to iterate through a series of points separately as I wish to create a catchment for each of them using the Batch Watershed Delineation Tool. I have encountered a ...
0
votes
0answers
41 views

postgis iterate over rows (cursors)

I need to repeat the same set of operations for each road polygon by using an id (road_id): I have tested my code only on one polygon of geometry using a series of functions inside a WITH query: ...
0
votes
0answers
14 views

Creating model with two iterators that uses clip tool as input feature and clip feature

I have a Geodatabase containing each county as its own feature (~60 features). I have another Geodatabase containing data in the form of points, lines, and polygons for the entire state. What I need ...
1
vote
1answer
37 views

Iterate cost distance/cost path over multiple points

I have multiple source points in one shape file and one destination point in a separate file. I would like to find the least cost path from each source point to the destination point. My costs are ...
2
votes
1answer
37 views

Iterate through layers of an MXD

I found this, under the topic How to iterate through layers of an MXD? answered by Midavalo I wanto to know if its possible to change something in the second line, to iterate through all data frames ...
1
vote
0answers
34 views

Summary statistics from feature iterator and select by location - missing selected feature name. Arcmap 10.2

I'm trying to calculate summary statistics for a subset of a point feature, based on selecting by location. I'm using a feature selection iterator to get statistics for each polygon feature in the '...
0
votes
0answers
55 views

Double Iteration Intersect in Model Builder

I need to intersect two highly-overlapping shapefiles, the first with 60 polygons (ponds), the second with 3000 (lilly pads). A straight-up intersection does not work (60 x 3000 -- it runs for hours ...
0
votes
1answer
22 views

ArcGIS Model - Iterate Row Selection - Multipal viewsheds

I've a CSV file with 106 rows with data suitable for a viewshed. What I want to do is run an ArcGIS model where it works through the rows and produces 106 viewsheds for me (ideally the data could ...
1
vote
1answer
43 views

How to apply functions iteratively to SpatialLines in R?

Looking for a way to apply the 'rgeos::gIntersection' and 'rgeos::gDifference' function iteratively to SpatialLines, I created 3 SpatialLines as an example: #from the sp vignette: l1 = cbind(c(1,2,3,...
1
vote
0answers
29 views

Modelbuilder ArcGIS: Collect values

I have a large model with submodels. Basically the Model iterates through all Districts, selects in each district an attribute above a certain threshold, creates a layerfile of it. The submodel ...
3
votes
0answers
123 views

ModelBuilder inline variable does not change consecutively when iterating raster?

---SOLVED--- I am trying to create a model in ModelBuilder (ArcMap 10.2.2), where there is an iteration through rasters in a workspace, each raster is run through a formula in raster calculator and ...
2
votes
2answers
27 views

Reference Items in Generated List for Multiple Record Selection and Iterate

I'm new to Python and am having trouble with a list of all things. The data I am currently working with consists of multiple road segments (contained in 'STREETNAME' field) each of which has a ...
1
vote
1answer
27 views

Iterate variables in Con statement in Raster Calculator- model builder

I have this formula which works fine in raster calculator on its own. Here is a simplified version of it: Con((("Trial_analysis\winter_pm" == 2)) & ("Wind_directions\winter_pm_WD" <=b) & (...
1
vote
1answer
30 views

Performing join on simultaneous spatial and attribute criteria in ArcGIS for Desktop in Modelbuilder?

A similar question was posted here, but I have an additional problem that seems to make the answers there unlikely to work. I am interested in performing a spatial join between point feature class A (...
0
votes
1answer
26 views

Adjusting ArcMap Model to Create 1000 Iterations of Random Data Files with Spatial Join?

I have created a model that creates a random point data set for a certain area, conducts a spatial join of these points to polygons, calculates the frequency of a certain field in the joined table, ...
0
votes
1answer
136 views

How to use ModelBuilder to run tool extract by mask on many rasters in ArcGIS for Desktop?

I'm trying to extract the same part of multiple rasters (Landsat scenes) using a polygon so I can do a time series. I've been trying to do it in ArcMap 10.2 ModelBuilder but the following error "...
4
votes
2answers
122 views

Model Builder/Python: batch raster calculation

I wish to carry out a raster calculation on a batch of rasters. I want to add rasters by month, as identified by their file name. i.e. all rasters within the month of January should add together and ...
4
votes
1answer
423 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 ...
0
votes
2answers
44 views

Using ModelBuilder (and Iterator?) to rename multiple shapefiles files

I have thousands of shapefiles that I would like to rename, all are currently named "cYYYDDD_Union_Clip_Clip" and I would like to ultimately rename each to "YYYYDDDD_abc")? I've tried using Iterator ...
3
votes
1answer
264 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
0answers
23 views

Iterate Feature Selection in my sub model is not recognizing data in my main model [closed]

I have an iterate feature selection in a sub model; however, when I go to add the input for the iterator, the data that I want to add to it from the main model is not showing as a choice. I have tried ...
2
votes
2answers
135 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 ...
0
votes
0answers
7 views

How to retain dataset structure in output of feature class iterator (model builder)

I am using the feature class iterator to pass all feature classes in a geodatabase to an intersect tool where they are intersected with one other feature class. The feature classes in the geodatabase ...
0
votes
1answer
28 views

Iterating and matching feature classes as an input by their names using ModelBuilder?

I am trying to iterate a series of feature classes (polygons) from two different/separated folders in model builder to convert a series of polygons using union and then the output for aggregate ...
1
vote
2answers
77 views

script to grab value from field and input into SearchCursor then select results for further analysis

The data: PL_Fac -point file - facilities used in service area analysis - contains PNTID in Add_PNTID field PD - polygon - catchment areas assigned to a facility (there can be many polygons assigned ...
0
votes
0answers
78 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 ...
3
votes
2answers
1k 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 ...
2
votes
1answer
2k 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 ...
2
votes
1answer
85 views

Creating multiple LAS datasets from LiDAR files in various directories using model builder?

I have 60 folders each containing approximately 20 LiDAR files in .las format. I want to create one LAS dataset from .las files from each folder, and each LAS dataset is named by the folder name. I ...
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 ...
1
vote
1answer
252 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 ...
1
vote
1answer
31 views

Renaming Output feature classes

I am running two models using an iterator in each. I want my output (feature class in a GDB) to be named after the field value from which it was selected as opposed to "I_feature1_join1', etc.
3
votes
0answers
57 views

Iteration from a text file [closed]

Trying to determine logic to create a line from the points for each Line_X number Example: Create array of points, then a polyline for all points of Line_1, then Line_2, etc. pointList = arcpy....
2
votes
1answer
211 views

Creating composite band mosaic of sentinel 2 data with arcpy

I previously useda simple script that went through many Landsat satellite images, and for each folder it found it made a composite band raster. The script was as follows: import arcpy import os ...
8
votes
1answer
228 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,...
0
votes
1answer
52 views

ModelBuilder Iterator - how to change values and names respectively

I have a table (value.csv) with two fields (Expression, Name) that I would like to iterate through within a model. I want the model to iterate through a series of SQL expressions (e.g. Value > 1, ...
1
vote
1answer
41 views

Iterating through list of fields using field calculator?

import arcpy, sys, itertools arcpy.env.workspace = r'path to geodatabase' fields1 = ['gearqty', 'cnemarea', 'fzone', 'qdsq', 'tensmsq', 'crew', 'nanglers', 'port', 'totalquant', 'trip_days', '...
0
votes
0answers
31 views

Calculate field for each Feature Class in Dataset using Python and different arguments [closed]

I have Dataset with Feature Classes in it. I'm building this in ModelBuilder. I want to calculate new field (SMB_ID) depending on attributes for each feature class. I was trying to make it simple ...
1
vote
0answers
47 views

Loading existing datasets into empty geodatabase (with schema) in ModelBuilder with iterator and append?

I'd like to load existing feature classes within a dataset in one geodatabase into a new, empty geodatabase with schema already set up. Both geodatabases, the one containing the data and the one ...
3
votes
1answer
85 views

Iterating files in ModelBuilder of ArcGIS Desktop 9.3?

I want to use around 100 files as input in a model I created in ArcMap 9.3 Do to so I followed the esri help page (http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=...
2
votes
0answers
86 views

Using attribute table values as input for raster calculation - modelbuilder and iteration

I have multiple years of daily XY point shapefiles that contains multiple attributes. I would like to choose one attribute from my XY point and perform a raster calculation with that value and apply ...
0
votes
1answer
31 views

Sequence of Iterate Field Values in ModelBuilder?

I'm pretty new to ModelBuilder and have been working on a tool that separates an exotic vegetation point feature class by species, then separates each species by treatment action, and then date. ...
1
vote
1answer
41 views

Raster calculator iteration

I have a set of rasters within a file gdb in which are of continuous values (NDVI). I am trying to build an attribute table for each raster in order to reclassify into either 1 or 2 (water or land). I ...