Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [iteration]

The tag has no usage guidance.

0
votes
0answers
30 views

Iterate same code [on hold]

I tried to execute code in a specific region. I want to iterate this code to a different region but the result obtained from the previous (layer) one should be combined with the next result. For an ...
0
votes
1answer
33 views

Filtering area through defined time period using Google Earth Engine?

I tried the following code in the Google Earth Engine through the various countries which have different dry season. But I cannot understand how to iterate the code. can anyone generate iteration ...
0
votes
1answer
23 views

In ArcGIS 10.6, how do I build a model to intersect iteratively?

This is my first time building a model from scratch, so let me know if I've omitted anything in describing this question. I have a geodatabase that contains shapefiles (polygons) of watersheds. I ...
5
votes
1answer
64 views

Iterating features and buffering using GeoPandas?

I have a shapefile with many large polygons and would like to process each polygon individually because spatial operations on the entire dataset are too big for memory. For instance, iterate shapefile,...
0
votes
1answer
42 views

Print elevation of different coordinates from .hgt file [closed]

I am trying iterate through the data(elevation) from .hgt file. I have attached the codes which i used to get the elevation from the file. from gmalthgtparser import HgtParser hgt_file='N09E076....
1
vote
0answers
14 views

Iteration for “Selection by Location” in ArcGIS modelBuilder

I have a featuredataset of 50 Features which are supposed to have intersection with some lines and their Buffers which are in different feature classes. I have created a separate GDB for the Buffers ...
1
vote
1answer
22 views

Sampling from all the images in a collection and combining them into one FeatureCollection

I'm trying to collect a set of sample points from all the images in a collection. However instead of outputting a Feature Collection that consists of a group of Features with the training data as ...
0
votes
0answers
15 views

Joining xls file with shapefile attribute through ModelBuilder?

I have folder contains xls files and I need to make join for each file with a shapefile attribute using ModelBuilder. My trial is as follows: and obtained "Precondition" option only. How can I ...
0
votes
0answers
17 views

Performing iterative Mosaic in ArcPy?

I'm attempting to complete a batch mosaic operation in ArcMap 10.4.1 Python window. I need to run the Mosaic tool about 80 times for sets of three rasters. Basically I want the second and third raster ...
1
vote
1answer
59 views

Getting for loop which stops after first one to iterate properly?

I originally asked UpdateCursor can't acquire lock, but can acquire lock in TestSchemaLock and got some help about why my code wasn't acquiring a lock. My new problem is that my code isn't fully ...
0
votes
1answer
38 views

How can I add a featureCollection to another one to export into one sigle .csv file?

Sorry if this is an silly question, as I am starting to work with GEE. I am iterating (mapping) over a Sentinel-2 image collection, using different coordinates and dates in each step. My goal is to ...
0
votes
1answer
25 views

Building model to select values at point from folder of several raster layers?

I am using ModelBuilder to interpolate values with inverse distance weighting, iterated through several rows, resulting in many raster datasets - one raster layer per row. I have this and all the ...
2
votes
1answer
100 views

Using Iterate Feature Selection in ModelBuilder causes entire model to iterate?

I'm creating a fishnet on ModelBuilder, the extent of which is based on an Input raster. The output of "Create Fishnet" is gone through an Intersect tool, and then is fed into an Iterate Feature ...
1
vote
0answers
42 views

Select Feature Based on Iterate Row Value in ModelBuilder

I have a table showing commuting trips from home to work. home_id represents home and work_id represents work. Now I want to step through the trips table using Iterate Row Selection in ModelBuilder, ...
1
vote
0answers
19 views

Extracting field values to Excel by iterating in ArcGIS ModelBuilder?

I have a database with a lot of feature classes containing shapefiles. What I want to do is to use ModelBuilder in order to iterate through all the feature classes and for each feature class go ...
0
votes
1answer
118 views

Iterating folder of shapefiles using ArcPy and exporting mxd to PDF

I'm new to Python and just created a hard coded script for the process I want, and it works. Right now it calls on the one of three shapefile I have in this map document. I want it to do the same ...
0
votes
1answer
126 views

Using %Name% variable dynamically with selection tool in ArcGIS ModelBuilder?

In ArcGIS ModelBuilder is it possible to use a %Name% field value from iterated features in a query and, if so, what syntax should I use?
1
vote
1answer
100 views

RuntimeError: General function failure when running arcpy.da.SearchCursor

I have a script that was previously working but just started throwing an error out of the blue. Here is the traceback: Traceback (most recent call last): File "<ipython-input-68-be384b1c4968>...
3
votes
1answer
98 views

File naming iteration QGIS modeler

I am attempting my first use of the modeler from the Graphical Modeler from the Processing menu in QGIS. I made a simple model for cliping species data by sanctuary.It has two Vector Inputs, uses some ...
0
votes
1answer
70 views

Running iteration at end of another in ModelBuilder?

I would like to run two iterations. One assigning the respective attributes from the polygon file containing the cols and rows. And after that iteration another iteration that selects all of those ...
-1
votes
2answers
84 views

How to iterate through date and time text file, line by line?

I am building a model on ArcGIS and I am now trying to iterate through a text file that contains in each line date and time information. I tried to do that on Model Builder, only I used the get field ...
1
vote
2answers
94 views

How to extract multiple polygons from a layer that overlap with a point?

I would like to get attributes of polygons that overlap with a point. This is to see on which street the lanterns are located, so if they are on a crossing I want to get both streets. Right now I can ...
0
votes
0answers
15 views

Intersect five different points of same layer

In ArcGis Desktop I have the following problem: I have a layer of sites, let them be hotels, for instance, and I want to find each place, where there are less than five hotels within a radius of 30 km....
1
vote
1answer
144 views

How to iterate through a list of polygons' centroids in QGIS

I'm the new one. I try to calculate the azimuth between a row of polygonsheets to print the number of the last and the next sheet inside the sheet in direction of the last and the next sheet. This ...
1
vote
0answers
391 views

Creating FeatureCollection from imported assets in Google Earth Engine? [closed]

I have imported several shapefiles as a Fusion Table in Google EE. My goal is to calculate the amount of forest loss (from Hansen et al) and the MODIS VCF (percentage tree cover) for each shapefile, ...
4
votes
4answers
217 views

Problems with for iteration in arcpy

I want to fill a new field in a shapefile using arcpy. I have differents values so I am using for iterator to run all rows. But when I run the code all rows are filling with the latest row value. The ...
0
votes
0answers
118 views

Interpolate Multiple Data With Kriging In ModelBuilder?

I am having problems building a model for running interpolation on multiple data using the Kriging method. I have followed these steps: Convert multiple data to geodatabase file Used iteration on ...
0
votes
0answers
29 views

Adding median values of several rasters (geotiff) to each fishnet polygon (200x200metres fishnet) using ArcGIS ModelBuilder?

I have a 200x200metres fishnet of my study area, with a few attributes in it, like land use, percentage of each landuse class. Now I need to add the median value of more than 10 rasters to the ...
0
votes
1answer
33 views

Trying to build a model to get all layers(same name, different folders and different geodatabase) into one

I have over 3000 folders, each folders have a geodatabase and each geodatabase consist of a layer name called "lot". I want to merge the all the "lot" layers into one layer shapefile, my gis ...
0
votes
1answer
31 views

Batching field calculations and feature classes in feature dataset using ArcPy?

I'm working on writing a script that will calculate facility ID's for feature classes in a feature dataset. Is there a way to do this without making feature layers and doing select/field calculate ...
2
votes
0answers
20 views

How to take all active layers as input for an iterative algorithm?

I have a whole list of different layers I want to do a iterative clipping algorithm on. (Batch processing is not an option as the 'iterate' button is gone.) This is a follow up on my question here. ...
0
votes
0answers
53 views

replaceDataSource issue when iterating through a loop for multiple map documents

Trying to update data sources across multiple map documents. The first iteration works but fails on the second no mater the order. The input csv is the output from another script that lists unique ...
0
votes
1answer
264 views

Applying batch process with ModelBuilder in ArcMap?

I have done a process in a Model Builder in ArcMap 10.5 version and in order to execute it once over a lot of rasters I have used raster iteration. It works well, but I cannot specify differents ...
0
votes
1answer
64 views

ogr2ogr apply sqlite dialect to multiple feature classes within a fgdb

I have a quite many feature classes in a filegdb and they all have same data schema (same field names and etc). I wanted to apply a single sqlite query and I am having hard time to make a loop ...
1
vote
1answer
46 views

Output extend for raster calculator (setnull set)

We are working on a project to find least cost path for marine shipping based on some criteria. In a phase when iterating raster datasets and using raster calculation to use setnull function to ...
1
vote
2answers
132 views

Spatial join iteration in ArcPy?

I'm pretty sure this is simple. I'm used to just doing a few maps at a time, and manually joining them doesn't take too much time. However, I've now managed to get myself into the situation where I ...
5
votes
1answer
975 views

Mosaicking a Image Collection by Date (day) in Google Earth Engine

I have an image collection of Sentinel-1 data over 3 years filtered by a region of interest that spans 3-4 tiles, and want to know the best way to mosaic all the images (tiles) that were taken on the ...
0
votes
0answers
38 views

Using iterator to merge Excel files into Shapefile with ModelBuilder for ArcGIS Desktop?

Using ModelBuilder in ArcGIS 10.2 I want to iterate through a folder containing .xls-files, convert them to tables, and merge them into one Shapefile. I tried the script Excel To Table, with and ...
2
votes
1answer
83 views

Modelbuilder - iterate consecutive workspaces and select specific rasters from each

This is probably easiest explained with a picture, I'm trying to iteratively perform a calculation using specific rasters from each two consecutive folders in a folder. For example from above picture,...
1
vote
1answer
85 views

Iterator in ModelBuilder does not complete final iteration (last action)?

I am using the ModelBuilder to run an iterative process using the "for" iterator. The entire process is about 7 steps that are iterated several times, depending on the input to the tool (to value, ...
0
votes
1answer
62 views

Creating routes for each feature within feature class in ModelBuilder without coordinate priority?

I´m trying to create a simple model which would select each feature from a FC (streets polylines with vertexes and edges) and transform each of them into a route using the “Create Routes” tool (see ...
2
votes
1answer
619 views

Returning image for each iteration using Google Earth Engine?

I'm trying to map the maximal amount of days without rain using the TRMM dataset in Google Earth Engine. I'm doing this by iterating over the collection and if no rain has fallen, one gets added to ...
6
votes
1answer
816 views

Iterating clip over multiple layers using QGIS?

I have multiple vector layers and a fishnet grid. I would like to clip all the layers based on all features in this fishnet grid. I can use the iterate over layer function in the clip tool, but ...
1
vote
2answers
70 views

Iterating raster pairs using ArcPy? [closed]

I have a problem that must be solved in automatic manner. I am using ArcGIS 10.2. I have a raster files that I have to pair and then make the calculation. I have tried to use ModelBuilder but there ...
2
votes
1answer
198 views

Using ModelBuilder to run clip scenario?

I am using ArcMap 10.5. I have a layer representing suburbs (n=432) over laid with open space data (both gdb files). My objective is to get to get the suburbs to individually clip with the open ...
1
vote
1answer
53 views

Multiplying files from different folders based on similar date in filename using ArcPy?

I am fairly new to Python and ArcPy. I've been trying to get files originating from different directories and multiplying files from directory a only if directory b had files containing exact same ...
0
votes
2answers
108 views

Using ModelBuilder/ArcPy in ArcGIS Pro to Iterate Field Values of Multiple Feature Classes?

I am using ArcGIS Pro 2.01 for this task. I have 114 shapefiles (each represents a session of the US Congress) which include every congressional district since 1790. I have added a short integer ...
2
votes
1answer
52 views

Importing and converting coordinates to ArcMap and calculating distance between them?

I have a table in excel format with the following two columns: Now, I need to import this table to ArcMap and calculate the distance between the two points for each row and write the calculated ...
1
vote
2answers
324 views

Any way to clear selections from features in a map only if they have selected features?

While I know the clear selection tool exists in ArcMap, I am looking to produce a script that would only work if all selections are cleared from the start. I have added lines of code to clear ...
1
vote
1answer
125 views

Iterating/looping through Select by Attributes and Export Data? [duplicate]

In ArcMap 10.5.1, I have 2 feature classes in ModelBuilder; both have a common attribute "Well_Nu." The goal is to loop for each record in the first classes's attribute table and do: 1) Select by ...