Last active
February 25, 2026 08:54
-
-
Save pigreco/2b2ad2eb12d17c4370b09635ae1470b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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