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

learn more… | top users | synonyms (1)

1
vote
1answer
16 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
17 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.
2
votes
0answers
37 views

Iteration from a text file

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 = ...
1
vote
1answer
14 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
26 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
33 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
22 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
53 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
24 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
45 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
144 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
45 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
63 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
28 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
20 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
22 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
38 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
20 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
62 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
55 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
34 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
7 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
10 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
143 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
52 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
84 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
45 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
44 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
76 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
51 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
39 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
195 views

Raster Calculator Iteration

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
60 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
63 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
49 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 Any links to examples would be appreciated. For my specific ...
2
votes
0answers
30 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
32 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 ...
1
vote
1answer
126 views

Using Iterate Feature Selection export features to new feature class with unique names

I'm trying to use ModelBuilder in ArcMap 10.2 to select features from a large data set (>30,000 features) based on a value in the field "Route" and have those selected features export to a file ...
0
votes
0answers
10 views

Error while running the model for join Iteration

I am trying to run a model which iterates joining multiple tables to a shapefile and export the resultant shapefile after each iteration. The model runs successfully but after each run, only the ...
2
votes
1answer
82 views

Iterate Row Selection Using Current Selection ArcMap 10.2 ModelBuilder

I am trying to make a model using Iterate Row Selection. I have a buffer shapefile and a line shapefile. Ideally I would like for the model to loop through the buffer shapefile and select each row one ...
1
vote
0answers
31 views

Linking Statistics Type with Calculate Field after Table Join using ModelBuilder?

I am attempting to build a model using ModelBuilder in which there is a zone statistics tool being run iteratively for a set of rasters. The input is a blank template table that contains the number ...
2
votes
2answers
60 views

How to change output folders when iterating a geoprocessing model?

I have digital elevation models clipped to watershed boundaries and I have to run a set of tools to hydrologically condition each one, and I want to use the iterator tool to automate this process. ...
2
votes
1answer
148 views

Loop through columns Python arcpy.ListFields

I am trying to run a Python script that loops through all fields in my input feature attribute table. I have searched extensively and tried to use arcpy.ListField to work but it seems all people got ...
0
votes
1answer
51 views

Creating coded values with iteration from a field

I'd like to find a way to add coded values to a Text domain using values from a table field, if such a thing is even possible. I'm using the Add Coded Value to Domain tool connected to two variables: ...
1
vote
0answers
30 views

Iteratively Change Object's Instance Attributes PyQGIS

I am trying to create new instance attributes (NOT feature attributes) for a collection of features in a vector layer in PyQGIS. I'm getting some weird results and am wondering if this is even ...
1
vote
1answer
70 views

Iterating Table Fields to Create Individual Shapefiles

I am trying to create individual shape files from a single table that contains the following: Weather Station Names Station XY Cordinates 31 individual field columns of daily data for each weather ...
1
vote
0answers
50 views

Using ModelBuilder or Python parser of Field Calculator to check values between two datasets?

I have a *.dbf that I need to check values against for a shapefile. I need to report whether the values match the dbf in the shapefile and, if not, what the value should have been (in two new ...
1
vote
2answers
110 views

Using Value from Iterate Feature Selection to create new files per feature value

I am attempting to use Model Builder to export a file per value in a feature. The intent is to create a file per school, listing the students that attend. We currently have a single large file with ...
1
vote
0answers
62 views

Why the iterator never ends?

I set a iterator to create two categories of feature class, and then join and dissolve them. The calculation works fine. However, the running result never shows completion even when the calculation ...
0
votes
0answers
54 views

Skip an iteration in ModelBuilder?

I am trying to iterate through some feature classes, named "Hos_AllPatients2014", and select the certain data and name it "Hos_IP", then export it to the corresponding folder "Hos". I have already ...