Categorie
qgis

Etichette

Concatenazione etichette
Uso il simbolo ||
“NOMCOM” || ‘\n’ || “PROVINCIA”
Legnago
VR

“NOMCOM” || ‘ (‘ || “PROVINCIA” || ‘)’
Legnago (VR)

Posso usare anche la funzione Concat
concat (“VIA”,’-‘,” CIVICO “,’-‘,”PAESE”)
Mazzini-125-Legnago

ESEMPI
# label based on two fields ‘name’ and ‘place’ with a
“name” || ‘, ‘ || “place”

-> John Smith, Paris

# label based on two fields ‘name’ and ‘place’ with a descriptive text
‘My name is ‘ || “name” || ‘and I live in ‘ || “place”

-> My name is John Smith and I live in Paris

# label based on two fields ‘name’ and ‘place’ with a descriptive text
# and a line break (\n)
‘My name is ‘ || “name” || ‘\nI live in ‘ || “place”

-> My name is John Smith
I live in Paris

# create a multi-line label based on a field and the $area function
# to show the place name and its area size based on unit meter.
‘The area of ‘ || “place” || ‘has a size of ‘ || $area || ‘m²’

-> The area of Paris has a size of 105000000 m²

# create a CASE ELSE condition. If the population value in field
# population is <= 50000 it is a town, otherwise a city.
‘This place is a ‘ || CASE WHEN “population <= 50000” THEN ‘town’ ELSE ‘city’ END

-> This place is a town

Sposta etichette
Come spostare etichette e creare un segmento che rappresenti lo spostamento