Skip to content

Instantly share code, notes, and snippets.

@pigreco
Last active February 25, 2026 08:54
Show Gist options
  • Select an option

  • Save pigreco/2b2ad2eb12d17c4370b09635ae1470b4 to your computer and use it in GitHub Desktop.

Select an option

Save pigreco/2b2ad2eb12d17c4370b09635ae1470b4 to your computer and use it in GitHub Desktop.
# Korto19 2022
from qgis.core import QgsExpression
#numero totale espressioni
nro_tot = len(QgsExpression.Functions())
#creo due dizionari
gruppi_funzioni = {}
gruppi = {}
#popolo il primo con le coppie funzione, gruppo
#ed il secondo con gruppo e contatore
for i in range(0, nro_tot):
gruppi[QgsExpression.Functions()[i].group()] = 1
gruppi_funzioni[QgsExpression.Functions()[i].name()] = QgsExpression.Functions()[i].group()
#uso il secondo gruppo per classificare il primo e conto
for key, value in gruppi_funzioni.items():
#print(key, ' : ', value)
gruppi[value] = gruppi[value] + 1
#stampo il risultato
print(gruppi)
print ('nro totale espressioni: ',nro_tot)
@pigreco
Copy link
Copy Markdown
Author

pigreco commented Feb 2, 2022

output dev 3.23

{'Math': 27, 'GeometryGroup': 143, 'Conversions': 16, 'Conditionals': 6, 'Aggregates': 24, 'Arrays': 36, 'Date and Time': 17, 'String': 22, 'Fuzzy Matching': 5, 'Color': 18, 'Files and Paths': 10, 'deprecated': 2, 'Record and Attributes': 15, 'Map Layers': 3, 'General': 8, 'Rasters': 3, 'Maps': 15, 'Layout': 3, 'Processing': 2, 'Form': 3, 'Custom': 23, 'Lat Lon Tools': 21, 'Atlas': 2, 'Time': 4}
nro totale espressioni: 404

@pigreco
Copy link
Copy Markdown
Author

pigreco commented Jan 23, 2023

output dev 3.29

{'Math': 27, 'GeometryGroup': 150, 'Conversions': 16, 'Conditionals': 6, 'Aggregates': 24, 'Arrays': 37, 'Date and Time': 17, 'String': 22, 'Fuzzy Matching': 5, 'Color': 18, 'Files and Paths': 10, 'deprecated': 2, 'Record and Attributes': 18, 'Map Layers': 4, 'General': 8, 'Rasters': 4, 'Maps': 17, 'Layout': 3, 'Processing': 2, 'Form': 3, 'HfcQGIS': 23, 'Custom': 12, 'DataPlotly': 2, 'Lat Lon Tools': 21}
nro totale espressioni: 427

@pigreco
Copy link
Copy Markdown
Author

pigreco commented Dec 23, 2025

output 3.44.6-Solothurn

{'Math': 28, 'GeometryGroup': 152, 'Conversions': 17, 'Conditionals': 6, 'Aggregates': 24, 'Arrays': 37, 'Date and Time': 17, 'String': 26, 'Fuzzy Matching': 5, 'Color': 25, 'Files and Paths': 10, 'deprecated': 2, 'Record and Attributes': 18, 'CRS': 3, 'Map Layers': 4, 'General': 8, 'Rasters': 4, 'Maps': 17, 'Sensors': 2, 'Layout': 3, 'Processing': 2, 'Form': 3, 'Catasto': 3, 'HfcQGIS': 26, 'Custom': 16}
nro totale espressioni: 433

Categoria N° Espressioni
GeometryGroup 151
Arrays 36
Math 27
String 25
HfcQGIS 25
Color 24
Aggregates 23
Record and Attributes 17
Conversions 16
Date and Time 16
Maps 16
Custom 15
Files and Paths 9
General 7
Conditionals 5
Fuzzy Matching 4
Map Layers 3
Rasters 3
CRS 2
Layout 2
Form 2
Catasto 2
deprecated 1
Sensors 1
Processing 1
TOTALE 433

@pigreco
Copy link
Copy Markdown
Author

pigreco commented Feb 25, 2026

output QGIS 4.0

{'Math': 28, 'GeometryGroup': 153, 'Conversions': 20, 'Conditionals': 6, 'Aggregates': 24, 'Arrays': 37, 'Date and Time': 22, 'String': 28, 'Fuzzy Matching': 5, 'Color': 25, 'Files and Paths': 10, 'MagneticModels': 5, 'deprecated': 2, 'Record and Attributes': 18, 'CRS': 3, 'Map Layers': 4, 'General': 8, 'Rasters': 4, 'Maps': 17, 'Sensors': 2, 'Layout': 3, 'Processing': 2, 'Form': 3, 'Catasto': 3, 'HfcQGIS': 25, 'Custom': 15}
nro totale espressioni: 446

Categoria Conteggio
GeometryGroup 153
Arrays 37
Math 28
String 28
Color 25
HfcQGIS 25
Aggregates 24
Date and Time 22
Conversions 20
Record and Attributes 18
Maps 17
Custom 15
Files and Paths 10
General 8
Conditionals 6
Fuzzy Matching 5
MagneticModels 5
Map Layers 4
Rasters 4
CRS 3
Layout 3
Form 3
Catasto 3
deprecated 2
Sensors 2
Processing 2
--- ---
TOTALE 446

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment