Questions tagged [iteration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
32 views

Google Earth Engine -Iterated image of NDWI

I computed the NDWI of the whole image collection and I expect to output an image that shows water body whenever it has been flooded , even once , throughout the filtered date. Somehow the output ...
1
vote
1answer
32 views

Iterating through 2 different Geodatabases at same time using ArcPy?

I have 2 gdb's; one that contains a polygon feature class of census blocks(cb), and one that contains centroids that may lie within those census blocks. They are organized by state. Ex: FL_cb = ...
1
vote
0answers
35 views

Extract time series from ImageCollection for multiple points - Google Earth Engine

I have the Sentinel 2 (COPERNICUS/S2) ImageCollection and a FeatureCollection of points. I want to extract a time series for each of the points from the band information in the ImageCollection. So ...
4
votes
1answer
72 views

Selecting neighbours in an iteration using Select by Location

In the 'Select by location' tool, there is an option for Selected features only. When it's ticked, the resulting code for selecting touching polygons of a selected feature looks something like this: ...
0
votes
1answer
19 views

Iteration of AddJoin to join CSV files and a geodatabase feature class file

I have a geodatabase feature class file and I want to join the feature class file to CSV files respectively. For example: Join the geodatabase feature class and CSV 1 => save as CSV 1 in gdb. ...
0
votes
1answer
48 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
29 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
150 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
72 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
17 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
17 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
22 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
74 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
55 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
26 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
134 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
47 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
21 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
130 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
214 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
124 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
131 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
84 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
86 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
105 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
16 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
159 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
540 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
224 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
135 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
34 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
32 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
21 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
55 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
336 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
66 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
51 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
176 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 ...
6
votes
1answer
1k 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
39 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
92 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
704 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
912 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
83 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
225 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
54 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 ...