Skip to content

Instantly share code, notes, and snippets.

Avatar
😎

Salvatore Fiandaca pigreco

😎
View GitHub Profile
@pigreco
pigreco / get_catg_label.py
Created Jun 2, 2022
Funzione personalizzata per il field calc, estrae i valori delle label dei simboli categorizzati
View get_catg_label.py
from qgis.core import *
from qgis.gui import *
from qgis.utils import iface
@qgsfunction(args='auto', group='Custom')
def get_catg_label(value_in, feature, parent):
"""
Restituisce il testo della legenda dell'elemento categorizzato:
<br>
<p><b>il campo in input e' quello utilizzato per la categorizzazione</b>
@pigreco
pigreco / issue.txt
Created Apr 18, 2022
numero totale di issue aperte e con label
View issue.txt
curl "https://api.github.com/search/issues?q=repo:qgis/QGIS+type:issue+state:open+label:bug&per_page=1" | grep -m 1 "total_count"
View changelog-developed-funded_324.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
nro,version,name,category,description,developed,funded
1,QGIS 3.24,Tisler,User Interface,Easier creation of custom coordinate reference systems,Mathieu Pellerin,-
2,QGIS 3.24,Tisler,Symbology,Marker/hash line: offsets along line by &quot;percent&quot; of line length (and negative offsets!),Nyall Dawson,-
3,QGIS 3.24,Tisler,Symbology,Control whether first/last vertex placements apply to every part of multi-part geometries,Nyall Dawson,"North Road, SLYR "
4,QGIS 3.24,Tisler,Symbology,Marker/hash line &quot;on vertices&quot; placement option replaced by &quot;on inner vertices&quot;,Nyall Dawson,"North Road, SLYR "
5,QGIS 3.24,Tisler,Symbology,Placement options in marker and hash line symbol layers are now checkboxes instead of mutually exclusive buttons,Nyall Dawson,"North Road, SLYR "
6,QGIS 3.24,Tisler,Symbology,Control the color model used when interpolating gradient ramps,Nyall Dawson,"North Road, SLYR "
7,QGIS 3.24,Tisler,Symbology,Resizable thumbnails in the style manager dialog,Nyall Dawson,"North Road,
View changelog_qgis_200to324_data.csv
nro DATE NAME VERSION CATEGORY DESCRIPTION
1 2013-09-08 Dufourt QGIS 2.0.0 User Interface New icon theme
2 2013-09-08 Dufourt QGIS 2.0.0 User Interface Side tabs, collapsable groups
3 2013-09-08 Dufourt QGIS 2.0.0 User Interface Soft notifications
4 2013-09-08 Dufourt QGIS 2.0.0 User Interface Application custom font and Qt stylesheet
5 2013-09-08 Dufourt QGIS 2.0.0 User Interface Live color chooser dialogs and buttons
6 2013-09-08 Dufourt QGIS 2.0.0 User Interface SVG Annotations
7 2013-09-08 Dufourt QGIS 2.0.0 User Interface Drag and drop form builder
8 2013-09-08 Dufourt QGIS 2.0.0 User Interface Default action tool
9 2013-09-08 Dufourt QGIS 2.0.0 Symbology Data defined properties
View gruppi_espressioni_field_calc_qgis.py
# Korto19 2022
# Crea file CSV con i nomi dei Gruppi e delle espressioni
# lanciare nella console di Python di QGIS
from qgis.core import QgsExpression
import csv
#creo due dizionari
gruppi_funzioni = {}
gruppi = {}
#popolo il primo con le coppie funzione, gruppo
#ed il secondo con gruppo e contatore
View numero_funzioni_x_gruppi.py
# 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):
@pigreco
pigreco / .block
Last active Jan 3, 2022 — forked from gbvitrano/.block
COVID-19 | 2021 - Comuni siciliani attualmente in zona rossa By @opendatasicilia
View .block
license: mit
View file.csv
ID PortCluster_ID
1 119
2 119
3 119
4 111
5 111
6 111
7 111
8 119
9 119