Skip to main content

Questions tagged [conditional]

Conditional, also known as Con, is a raster processing tool or expression that evaluates an if/else condition on each cell.

5 votes
1 answer
64 views

Colouring cell or conditional formatting icon based on hexcode value stored in the in QGIS Attribute Table

During some digitisation work, I'll be using the Attribute Form's 'colour picker' widget to extract hex codes for each feature that I draw; these get stored as text. Objective What I'd like to do is ...
Huw Richards's user avatar
0 votes
2 answers
45 views

Mulltiple conditional expressions in a stacked raster layer in R

I have two rasters (SoilDepth_32636_r and SoilTexture_32636_r) that take integer values only, particularly 1,2,3,4. What I want to do is to apply multiple conditions at every grid cell to calculate a ...
2 votes
2 answers
101 views

Conditional merging of vector layers in QGIS with optional input

I need to merge 3 vectors after they have executed a buffer, but 1 of them is optional, and if it is not provided, the merge should simply be done with the remaining two. I have set up the conditional ...
Lorenzo's user avatar
  • 83
1 vote
1 answer
83 views

How to make a conditional branch in QGIS Modeler based on the raster cell size

I want to make a conditional branch in QGIS modeler based on the cell size of the incoming raster. If the cell size is larger than 10m, I would like to resample the raster to 10m before exporting it. ...
saQuist's user avatar
  • 903
0 votes
1 answer
90 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
3 votes
1 answer
156 views

How to apply conditional formatting for independently text labels on a QGIS layout

From a layout in which I use two independent text labels, as you can see in the screenshot: This text labels use the following expressions that make a calculation on two different layers: [%...
Ingrid Ingravida's user avatar
2 votes
2 answers
315 views

Conditional labeling in QGIS

I'd like to create a rule-based label in QGIS and wrote the following expression, but somehow it doesn't work - could someone tell me what's wrong? if( "FLN" > 0, "FLN" || '\n' ...
KodakAsis's user avatar
-1 votes
1 answer
56 views

GEE: List operation and conditioning

I have a list of features containing two Polygons that belong to a MultiPolygon feature: var polygon_lst = ee.Feature(MP_feat).geometry().coordinates(); //MP_feat is a MultiPolygon I want to take ...
Sina NAKHOSTIN's user avatar
1 vote
2 answers
187 views

QGIS Expression CASE WHEN AND AND [closed]

I am failing at making a case with many (3) conditions. I have different contract cases (f.e. Nutzungsvertrag) and i want to create a virtual column where contracts of a certain type are summed up ...
Marek's user avatar
  • 621
1 vote
1 answer
226 views

QGIS conditional formatting in symbology

These data are colored per column in excel using path: Home (tab)--> Conditional Formatting (styles)--> Colour scales--> Blue-White-Red Colour Scale Each id represents a cluster on the ...
Annie S.'s user avatar
  • 317
6 votes
1 answer
790 views

Using Conditional branch algorithm in QGIS Graphical Modeller

I have a question regarding using the Conditional Branch algorithm in the Graphical Model Builder. I am building a rather complicated model with many branches but not every branch needs to be used ...
Andy Baader's user avatar
0 votes
1 answer
61 views

If B1>B2 then B1 else B2 condition

I'm trying to implement OC3 equation to the Landsat 8 dataset. In order to do so I need implement this equation : I need to choose the highest reflectance between B1&B2 at each timestep. I tried ...
Aurélien Lengrand's user avatar
1 vote
1 answer
543 views

QField conditional visibility in forms doesn't work in the mobile

I've been trying to make a field mapping project using QField. I've developed attribute forms with drag and drop designer. I have 5 tabs so far. 1.Meta data 2. Lithology 3. Structure 4. Notes 5. ...
MithiJ's user avatar
  • 86
1 vote
1 answer
111 views

Extract by Expression w/ two conditions stopping when first condition is met in QGIS

I have an output from ST-DBSCAN with the attribute "CLUSTER_SIZE". I'd like to extract only attributes belonging to clusters of size >= 10. If this condition cannot be met, then extract ...
Barbara Perez de Araújo's user avatar
4 votes
2 answers
343 views

Filling several columns based on conditions from column in QGIS

I've got two additional columns that need to be filled with attributes that are based on values created in the field. For example, if column "reproduction" = A2 then the value in the value ...
Eric Walter's user avatar

15 30 50 per page
1
2 3 4 5
10