Skip to main content

Questions tagged [iteration]

Repeated execution of some groups of code statements.

0 votes
0 answers
17 views

Issue with Iteration/Unique Naming in QGIS Model Building

this is probably a straightforward problem, but I am a beginner at QGIS and having trouble fixing it. The Task I am trying to use a vector of polygons as masks to individually cut out snips of a ...
lGISmor's user avatar
0 votes
1 answer
57 views

Creating QGIS projects with iteration using PyQGIS - Problem with the location of layers added

In the following PyQGIS script, I iterate through each shapefile in input_directory, where each file represents an individual prefecture. To manage project isolation and ensure clean operations, I ...
Ilias Machairas's user avatar
0 votes
1 answer
70 views

Iteration of daily Fire Weather Index (FWI) calculations for the region of interest in Google Earth Engine

I decided to find out how the FWI index works for operational monitoring of the fire situation in the region. This is my first project on Google Engine and my programming knowledge leaves much to be ...
Mikita Rahouski's user avatar
0 votes
0 answers
44 views

Iterating over .getFeatures()

I've selected some polygons and created bounding boxes for them, then generated buffers. Now, I need to export each buffer to a separate .gpkg file. However, this loop saves all buffers multiple times ...
Jaguarundi's user avatar
0 votes
1 answer
46 views

Using PyQGIS to iterate through layers with custom layout

How do I select the layer and apply a layout for export to .PNG? I use: QGIS 3.34 and the Python Console. So the manual process is: select layer => go to Layout Manager => Select Layout => ...
Cerveser's user avatar
  • 101
0 votes
1 answer
55 views

Mapping, Iteration and conditional selection on featureCollection in GEE

I want to make a function (possibly using Currying method) in GEE to do a modification of my featureCollection. In the code bellow I wrote a function_infunction to add a new property "label" ...
Sina NAKHOSTIN's user avatar
0 votes
0 answers
53 views

Adding iterative group of algorithms to QGIS model

In a QGIS model, I have a section in the workflow where a certain group of algorithms (let's say: do A, then B, then C, then D: see below for details) has to be re-run until a condition is met. So ...
Babel's user avatar
  • 73.1k
0 votes
0 answers
46 views

QGIS Shortest Path Iteration

I have a large QGIS Fiber to the Home (FTTH) design with 727 address, my focus here is on the Lateral sections from the homes to the Handholes (shown in green). The design roughly breaks up to four ...
Joe G's user avatar
  • 191
3 votes
0 answers
64 views

Change to unique layer name when Iterating over a set of layers

I am using the Clip algorithm with the 'Iterate over layers' option, which works great, but the output names are just 0 - 17, which isn't terribly helpful, as I don't know which shapefile is ...
Joe G's user avatar
  • 191
3 votes
2 answers
253 views

Loop through fields in QGIS calculator with condition: count fields with values >0

I have a dataset, a polygon, with several columns, let's say: Site Species1 Species2 Species3 1 85 23 90 2 73 20 0 3 0 0 0 4 0 0 70 5 0 75 60 I have different sites and data about several ...
Oriol Baena Crespo's user avatar
0 votes
1 answer
72 views

Using "Subdivide Polygon" in ModelBuilder with an iteration via the split angle (value from input feature class) to split polygons in their centres

I have a lot of polygons that I would like to split automatically in the centre/into two equal parts in ModelBuilder. My idea was to first determine the orientation of the polygons using the Minimum ...
Valerie's user avatar
1 vote
0 answers
67 views

Setting output layer names in processing algorithm with stepwise parameter increment in QGIS

I run a processing algorithm in QGIS in an iteration with a stepwise parameter increment from numeric model input A (minimum) to numeric model input B (maximum) by a fixed step size. Here's what the ...
winnewoerp's user avatar
  • 1,504
1 vote
1 answer
143 views

ArcGIS Pro ModelBuilder Rename invalid characters

I want to take all shapefiles within a folder, import to a new gdb, and iterate several processes. Including rename, add and calculate fields, then define the projection. I keep running into issues ...
CarteCraft's user avatar
1 vote
1 answer
69 views

Iterate feature classes then clip, but skip if output is empty

I want to make a ModelBuilder tool that takes shapefiles from a specific folder and clips them. The shapefiles cover an entire country and I have to clip them to project areas when we have new ...
David's user avatar
  • 55
0 votes
1 answer
47 views

Model Builder - Iterate user selected KML files as input - NOT a folder as input

I am trying to create an iterative KML to layer geoprocessing model. The goal: I want to prompt the user to select specific .kml files in a directory to process as well as prompt for the output folder....
AGOOFYMO's user avatar

15 30 50 per page
1
2 3 4 5
16