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
41 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
19 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
37 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 = ...
1
vote
0answers
18 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
101 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
1answer
354 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, ...
0
votes
1answer
211 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
2answers
26 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 ...
0
votes
0answers
37 views

Python script iterator to interpolate accross multiple fields of attribute table

I interpolated precipitation data in ArcMap (ver. 10.2) using a surface-fitting tool [e.g. Global Polynomial Interpolation (GPI)]. I built a GPI model using model builder in ArcGIS 10.2, but the model ...
1
vote
1answer
22 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
27 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
25 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
69 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
94 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
353 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
36 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 ...
2
votes
1answer
235 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
18 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
126 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
6 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
27 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
71 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 ...
0
votes
0answers
73 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
78 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
53 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
149 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
27 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 = ...
2
votes
1answer
154 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
196 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 ...
0
votes
1answer
39 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
40 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
27 views

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

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
33 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
75 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 ...
2
votes
0answers
71 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
27 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
35 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 ...
0
votes
0answers
29 views

How to iterate a raster calculator with a change in the input raster and in the values calculated? Than, how to put the results in a table?

What I do without iteration is the following: Change radiance to reflectance for band 3 with raster calculator Samething as #1 on band 4 (the values in the formula are different from #1) Calculate ...
3
votes
1answer
41 views

Iterate polygon column in ArcGIS model builder

I have a polygon with many columns. I want to convert into raster. I could do it one by one. But I want to iterate for each column of the polygon by model builder or any other way. Here you can see ...
0
votes
0answers
30 views

Using modelbuilder to calculate different areas of overlap over time?

Been looking all over the place for a solution to this and nothing’s turned up, so I thought I’d ask directly. I am looking to build a model that calculates the total area of timber harvest within ...
2
votes
1answer
2k views

How to hold/collect values in an iterated modelbuilder

I'm using modelbuilder to do upstream traces from several points/flags in a feature class. I'm iterating each point in the fc using the feature selection iterator so that I can calculate/transfer the ...
3
votes
1answer
82 views

Iterating rasters in ModelBuilder - wildcard does not seem to work?

I've got some problem with the model below. I want to extract rasters from sde geodatabase, use one parameter from Copy Raster, and then export it to specified folder with preserved names as an ...
1
vote
1answer
110 views

Changing processing extent with each iteration using ArcGIS10 ModelBuilder

I have a very large raster for which I am trying to compute zonal means using a shapefile that covers the same extent but has hundreds of thousands of individual polygons as zones. Trying to just use ...
1
vote
0answers
44 views

How to create separate viewsheds for individual points?

I have a feature class with 3000 points. My goal is to have a viewshed, at each point, clipped to 50m and 500m buffers. I want to be able to look at the percent visible/not visible for each point. I ...
0
votes
0answers
8 views

Using outputs of ITERATE tool as inputs to another tool in ModelBuilder? [duplicate]

How do you feed the outputs of an ITERATE tool (e.g. three buffers) to an INTERSECT tool in ArcGIS ModelBuilder?
0
votes
1answer
298 views

Python: Point in polygon, boundary and vertex check (ray casting)

So I have written some code to check whether a point [(x,y)] lies within a polygon [(x,y), (x,y), (x,y), (x,y)] but the code fails if the point lies on a boundary or a vertex, I need this to be ...
0
votes
0answers
12 views

Using Dataset Iterator in ModelBuilder? [duplicate]

I just want to select a tool that will go through all the counties in the dataset and clip one of three available feature layers(water bodies, stream or city limits). Finally, the tool will create ...