Questions tagged [iteration]

Repeated execution of some groups of code statements.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

ArcGIS Pro Model Builder: Spatial Join - Dissolve - Aggregate

I am creating a workflow using Model Builder in ArcGIS Pro 2.5.2 that will take updated parcel polygons and create/update the Zoning_Parcel (parcels symbolized at the parcel level) and ...
0
votes
0answers
8 views

NDVI Time Series over Feature Collection of districts

I am very new to google earth engine and I am having trouble creating a time series of NDVI for a feature collection. I am working with the Landsat 8 NDVI Layer "LANDSAT/LC08/C01/T1_32DAY_NDVI&...
1
vote
0answers
29 views

Iterate over a Feature Collection in Google Earth Engine

I am getting the results of segmentation as a raster file that I need to convert into vector. My study area is large and the spatial resolution is high (2.26402m), so Google Earth Engine does not ...
0
votes
0answers
14 views

Extracting the current feature in QGIS modeler iteration

I have a model that stopped working in the last few versions of QGIS 3.x. It worked fine in the past but now there seems to be an issue with the first step. Basically, the model is supposed to be ...
3
votes
1answer
32 views

Iterate through dates and through columns using Model Builder of ArcGIS 10.x

I have a point feature class in a geodatabase (approx 11000 features) with 366 columns. From these, one represents the targeted date and the other 365 represents the temperature of one day of the ...
0
votes
0answers
15 views

Google Earth Engine: Collecting Region Samples through image collection and merge them

I am using S1 Imagecollection to start a temporal supervised classification. Firstly, I added polarimetric indexes and other data as bands in each image. Then, I filtered the image collection and got ...
2
votes
1answer
22 views

ModelBuilder Collect Values output values to a table?

I am working with Build Balanced Zones tool in ArcGIS Pro, which uses a genetic algorithm to find an optimal solution to a spatial problem (such as creating zones with equal population). It uses a ...
0
votes
1answer
27 views

Combining layers and changing fieldnames in Arcgis Pro ModelBuilder

I have layers containing polygons. The difference between the layers are the periods of the year about which the layers have information. So layer 1 is called Lawn_p1 and layer 2 is called Lawn_p2 (p ...
0
votes
0answers
21 views

Processing multiple TIFFs in ModelBuilder of ArcMap gives ERROR 999999

I am trying to process multiple tiff files using ModelBuilder. I am using ArcMap and specifically the Iterate Raster function (see below). Unfortunately, when I run the iteration I get an error ...
1
vote
1answer
28 views

Iteration in GEE (List Error)

I am writing a code that calculates the number of burned patches in a study area. The process is based on iterating over a list of numbers. Code: Link var country = ['ZA']; var geometry = ee....
0
votes
0answers
13 views

Model Builder - Interation adds correct shapefile and adds another shapfile with _1 to name

I have a model I did not make but am trying to fix and I am newbie. The first error I see is the iterator (I assume that is the cause) is creating the shape file needed but then duplicating it with ...
1
vote
1answer
24 views

Nesting iterators using ModelBuilder in ArcMap

I need to iterate all files in one folder/geodatabase, and perform those operations for all files in a different folder/geodatabase i.e. a matrix, of all entries in one, to all entries in another. ...
1
vote
0answers
39 views

Shortest path (point to point) in iteration

I am using Network Analysis-> Shortest path (point to point) to compute the distance between two points, following a network from OSM. It works like magic for single requests, but I do not seem to be ...
0
votes
2answers
47 views

Using iterator on only parts of model in ArcMap ModelBuilder

I have created a model in ModelBuilder using ArcMap 10.7.1 which is using an iterator. Is it possible to exclude parts of my model from being "iterated"?
0
votes
0answers
34 views

Iterate Closest Facility in Network Analyst

I've built a model in ModelBuilder to solve for closest facility. I have 550,000+ input points for both incidents and facilities (same file). This results in an out of memory error. (I used a smaller ...
4
votes
1answer
92 views

arcpy.SelectByAttribute 'Parameters are not valid' error

I am trying to run a python script to select 5 random points in an attribute table and to loop through every 100 points to do this. When I run the function SelectRandomByCOunt within a python shell, ...
-1
votes
3answers
80 views

ArcPy iterative workflow

I may just not know the terminology needed to find the proper google results but I am trying to count the number of feature classes and store that for reference later in the script so that if the ...
1
vote
1answer
47 views

Create a function with many parameters and apply it over a list in R

I have a list which includes 2 data.frames and would like to apply some analysis to each data.frame. I performed my analysis to a single data.frame and I want to do the same steps over my list. I am a ...
2
votes
2answers
40 views

Iterating GRASS function over list

I want to project the shadows from a DSM raster. Is it possible to iterate the grass function r.sunmask.datetime over a list from a csv file composed with interest dates(month/day) and time (hours ...
1
vote
2answers
87 views

Adding feature class name automatically from overlay layer into attribute of clipped layer while iterating clip

I am trying to clip the road layer to district boundary layer in QGIS using clip and enabling 'iterate' option and I get the clipped road layers of individual districts. Later, I need to add the ...
1
vote
0answers
77 views

Iterate raster data error 00964

I'm building a model in arcmap 10.7 model builder to determine zonal statistics for multiple raster in a geodatabase. The model works, but only when i run it through model builder. When I try to run ...
0
votes
1answer
44 views

Iterate through table to do geometric calculation

I've got two tables: tableA holds the objects with it's geometry tableB holds holds pairs of two objects (ids, each in a separate column) from table1 Now I want to calculate the concaveHull for ...
0
votes
0answers
26 views

Iteration between different polygons in one layer

I am trying to create a code that will calculte the mean NDVI value for each polygon,the standard deviation , then std/2 and then will classify the pixels inside each polygon according to the next ...
1
vote
0answers
79 views

To Iterate through all layers and all attributes for each layer

I am working in the Python console in QGIS 3.10. I want to iterate through all layers and for each layer iterate through all attributes and set them all to 'Hidden'. I want to do this in ...
2
votes
0answers
35 views

Model Builder ArcGIS - Export topology errors (Iteration Tool)

I was wondering if there’s any option to iterate export topology errors in ArcGIS model builder. My GDB Topology errors has all topologies within the same Topology dataset but model builder seems not ...
0
votes
1answer
63 views

Collecting and merging Service Analysis Line features using ArcGIS Pro ModelBuilder

I try to collect and merge Service Analysis Line features after iteration. I name my analysis layers with the iteration values, but it doesn't help. The output feature datasets of the analysis named ...
0
votes
1answer
49 views

Export dimensions of NetCDF as individual rasters in ArcMap

I have a NetCDF file in ArcMap that I created using the Make NetCDF Raster Layer tool. The band dimension of interest is the variable "time", which has 316 grids. I need each individual grid as its ...
1
vote
1answer
27 views

Using submodeld in ArcGIS ModelBuilder

I have three geodatabases (176 files each) with raster data. let's call the first one as G, the second one as D and the third one as S. Now I want to perform a raster calculation so that the G1-D1-S1.....
2
votes
2answers
77 views

PyQgis difference iteration

I use Qgis. I have two layers that are two circles with the same center. One larger and one smaller. I want to do the difference between the two circles BUT only if they have the same "objectid" (the ...
0
votes
2answers
46 views

Replacing all <Null> values in the attribute tables of all feature classes in a FGDB with the blank (empty) ones

I need to iterate through a file GDB feature classes to replace values found in all the columns of attribute tables with the blank ones (empty''). Here is my code, that doesn't work. Truth be told I'...
9
votes
2answers
271 views

Using RECURSIVE in Virtual Layer

Preface For a while, I was wondering about applying the looping/iterable functions in QGIS's Virtual Layer. There were several cases when the application of a loop would be beneficial and ...
1
vote
2answers
66 views

ArcPy Iterative Select by Location

I have a very large dataset with line features that represent a utility, and lines that come off of those utility lines showing connections to buildings. (example shown below - utility line in black ...
1
vote
0answers
39 views

Multiplying two iterating rasters in ModelBuilder or Python?

I have several Landsat scenes that I wish to remove clouds from. I can do this by multiplying the Landsat layers by their associated cloud layers in the Raster Calculator. How can I set up iterations ...
1
vote
0answers
33 views

Loop in ModelBuilder in a specific situation

I would like to make a loop in the next model base on a expression, this expression received a code with consecutive numbers in a reference layer call "sector", to summarize, for each "code" do a "...
0
votes
0answers
9 views

Multi-Geodatabase Iteration and Kriging

I have a huge number of databases in a single folder that have point data with z-values. I need to go through and pull out the point features from each geodatabase and create DEMs for each. Through ...
2
votes
1answer
64 views

Iterate a clip over multiple feature classes using Model Builder or ArcPy

I have multiple feature classes (buildings, airport, land, roads etc) that I would like to clip using a Local Authority boundary. I am trying to create a process in model builder or Arcpy that will ...
0
votes
1answer
51 views

Using ArcGIS Field Calculator?

I have a large shapefile with 2,5 million points and I would like to create a new field in the attribute table that groups the features into groups of 65000 features. In other words: Select the first ...
1
vote
1answer
117 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 = ...
2
votes
1answer
317 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
167 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
41 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. ...
1
vote
1answer
577 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
44 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 ...
7
votes
1answer
2k 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
187 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
28 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
42 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
20 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
69 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 ...