Skip to main content

New answers tagged

2 votes
Accepted

Performance-limits of QGIS expressions

This answer is written in the context of the use-case of computational use of expressions, i.e. rather than in symbol display or geometry generator, as per the updated question. First, any use of an ...
Houska's user avatar
  • 8,196
0 votes

Limit the number of features rendered in a map

Given answer just limits displaying features based on the features value (e.g $id<51 & "population">x). Question was about rendering only 50 features with any values (e.g. 50 ...
Tadej Kovač's user avatar
1 vote

QGIS - Filter value relation by crossing 2 arrays

I think this code is working well. I forgot about array_intersect array_intersect( array_distinct( string_to_array("IDC", ',') ), array_distinct( string_to_array( ...
Giene's user avatar
  • 753
1 vote

QGIS - Extract with expression - one occurrence each - if ID IS NULL

Thank you for the answer. This is it exactly ! To make it work on the "extract with expression algorithm" I adapted your code this way : ID_IMPCT is NOT NULL OR array_min(array_agg( @id, ...
Giene's user avatar
  • 753
3 votes
Accepted

QGIS - Extract with expression - one occurrence each - if ID IS NULL

Use the expression below: case when ID_IMPCT is NOT NULL then 1 else if ( array_min( array_agg( @id, group_by:=LIB_PHYSIO) ) = @id, 1, 0 ) end
Babel's user avatar
  • 73.1k

Top 50 recent answers are included