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

learn more… | top users | synonyms (1)

-3
votes
0answers
22 views

Naming output file as the absolute path name [on hold]

I have a model for a class that outputs files with an iterator to get all files in directories and sub-directories and output them to a File geodatabase. The professor wants me to have the model ...
2
votes
2answers
22 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
29 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
17 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
24 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
23 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, ...
4
votes
2answers
76 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 ...
0
votes
1answer
48 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 ...
0
votes
2answers
28 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
0answers
17 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 ...
0
votes
0answers
5 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
66 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 ...
1
vote
1answer
102 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
25 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
105 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 ...
0
votes
1answer
36 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
39 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 ...
3
votes
1answer
68 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 ...
1
vote
0answers
32 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 ...
2
votes
1answer
68 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 ...
8
votes
1answer
174 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 ...
2
votes
0answers
65 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 ...
3
votes
0answers
88 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 ...
1
vote
1answer
32 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
28 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 ...
0
votes
1answer
25 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. ...
3
votes
1answer
40 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
28 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 ...
3
votes
1answer
80 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
96 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
43 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
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 ...
0
votes
1answer
245 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
63 views

Combining iterators and lists in ModelBuilder?

I have a Model tool that is not behaving. I suspect this is due to me wanting to (somewhat indirectly) combine iteration and lists. I'm hoping there's a way around this. Basically, I have a model ...
-1
votes
2answers
135 views

Select adjacent polygons using ArcGIS modelbuilder

I made a model which exports polygons to a new layer within a loop (FOR iterator: from value 1614 to 1654, by value 10). Nr. 1 is the first shape file, Nr. 2 is the second shape file. I only want ...
0
votes
1answer
50 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 ...
2
votes
0answers
50 views

File iterator in ModelBuilder does not work correctly when passing variable input folder? [closed]

In ArcGIS ModelBuilder, I am trying to iterate over some ascii files (my_ascii.asc) in a folder (c:\my_folder) and converting them from ascii to raster. This works fine if I do it as shown below. ...
4
votes
1answer
89 views

Iterating polygon creation in ArcGIS ModelBuilder?

I have contour lines in a feature class. I covert the closed lines into polygons using the 'Feature to Polygon' tool. With this method I get concentric stripes, but I need the area of each area ...
2
votes
1answer
67 views

Iterate - Raster Calculator - 8 Day MODIS LST to Monthly Avg

I have 8-day MODIS Land Surface Temperature data from 2009-2013. I have used Model Builder to extract the LST_day and LST_Night Subdatasets (in different model runs). What I am attempting to do next ...
0
votes
1answer
42 views

Looping output as new input many times (50+) in ModelBuilder?

I want to run focal statistics on a raster, then run focal statistics (same configuration/setup as the first focal stat.) again on the output, and again on the new output, and again, and again. ...
4
votes
1answer
317 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 ...
1
vote
2answers
73 views

Extracting a Feature Class' Name, and Adding It to a Field

I'm building a bike network dataset based on an existing street network. Each bike lane/route/path has a unique ID number (assigned by our engineering deparment) that must be included in a separate ID ...
1
vote
1answer
89 views

Build ArcGIS Model to Select by Location (Within a Distance) and Export to KML with an Iteration

I have a parcel shapefile and point data. I need to select parcels within 0.5 miles of each point and export that data to KML then repeat the set of each point (Iteration). The KML also needs to be ...
0
votes
0answers
68 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 ...
2
votes
0answers
39 views

Excluding Specific Feature classes from ModelBuilder iteration?

I am creating a model the will iterate through the feature classes in the dataset. It will select attributes from each feature class, the only issue is, two of the feature classes will cause a break ...
0
votes
0answers
38 views

Clipping only overlapping datasets using Iterator function in ArcGIS ModelBuilder?

I've create a geodatabase with about 100 feature classes for my home province. I want to be able to specify a project extent and clip the feature classes to that extent and save into a new ...