New answers tagged labeling
6
votes
Setting labels as background labels in QGIS?
You are looking for the Label Z index
To reproduce the background labels effect you need to give your label a lower Z index than of other label (you may also need to tweak other setting to allow ...
- 13.5k
6
votes
Accepted
Translating point geometries and label placement conditioned by data fields values of two different layers
This expression breaks the boundary of the parcel polygons into line segments, then finds the segment whose centroid is closest to the corresponding street in the address of the point. The centroid of ...
- 11.9k
12
votes
Accepted
QGIS - align labels of point layer perpendicular to course of polyline
The solution
Use a data defined override for the label rotation, based on the azimuth of the line at the line segment next to the point. To do so, use this expression in the Label setting's Placement ...
- 54.8k
3
votes
QGIS - align labels of point layer perpendicular to course of polyline
I suggest you split your line into segments (either extract vertices, then split lines at points, or subdivide with 2 vertices per segment), then add the azimuth() to the segments, then join ...
- 14.6k
6
votes
Accepted
How to label features avoiding duplicate attributes and conditioning by two fields
To prevent the duplicated labels, you can try this to render the label only once per PARCEL|STREET group.
case
-- render the label for only the first feature of the group
when $id = array_min(...
- 11.9k
9
votes
Accepted
How to label the percentage of different attributes
It can be achieved by aggregating the various values into arrays (using filters to choose the attribute value), then finding the length of those arrays.
-- this case statement is to ensure the label ...
- 11.9k
4
votes
Label two attributes with more than 2 rows
-- make an array of the dates per ID
with_variable('dates',
array_agg(
"Date",
group_by:="ID"
),
-- make an array of the thicknesses per ID
...
- 11.9k
10
votes
Accepted
QGIS - how to display callouts only for labels offset more than a specified distance?
You can set the minimum length of the callout. Callouts shorter than this length will not be drawn.
- 11.9k
0
votes
Changing font size of all labels in annotated attribute table in ArcGIS Pro to be one size
Select all the annotation you want to change. A list of all those objects will be shown on the right side under Modify Features. Once you have selected all the objects you want to change, click on ...
- 1
1
vote
subscript and superscript labeling in QGIS (v.2.18.2)
According to the attached screenshot, you can see labels and label codes in the attribute table.
Below is a link to help you through the codes.
https://unicode.org/charts/PDF/U2070.pdf
- 91
5
votes
Accepted
Avoiding label identical attributes on duplicate geometries in QGIS
This is not optimal, but I was only able to find this solution. It would be better to call it a workaround. It may display a different result for your data.
array_to_string(
array_distinct(
...
- 69.1k
2
votes
Accepted
rule based labeling of point layer using intersections method on another polygon layer
I think your current expression checks, whether your current geometry intersects with the geometry of the first entry of the landuse layer where fclass is residential.
Use the following instead:
...
- 14.6k
5
votes
Separating layers based on labels
The easiest way is splitting the layer using the function Split vector layer
You then select the attribute field of your choice for classifying the features
- 2,698
3
votes
Separating layers based on labels
Duplicate layer and filter features in it using:
"CLASIFICAC" = 'ALTA'
Screen cast:
https://ibb.co/THrgpJn
- 6,570
6
votes
Accepted
Displaying label if field contains 'X' or 'Y' value in QGIS
I found another solution.
Case
When "Status" like 'Active' or "Status" like 'Week'
Then "Drilled ID"
End
- 193
7
votes
Displaying label if field contains 'X' or 'Y' value in QGIS
Use this:
CASE
WHEN "Status" IN ('Week', 'Active')
THEN "Drilled ID"
END
- 69.1k
8
votes
Accepted
Get name of labeling rule with Python in QGIS
You have to use description method of class QgsRuleBasedLabeling.Rule.
layer = iface.activeLayer()
labeling = layer.labeling()
for rule in labeling.rootRule().children():
print(rule.description())...
- 69.1k
4
votes
Accepted
QGIS: Where are these labels saved?
It looks like they are annotations. Select Modify annotations - indicated by the red square - in the image below to select the labels and delete them, if you want, using the delete button on your ...
- 39k
Top 50 recent answers are included
Related Tags
labeling × 2208qgis × 1032
arcgis-desktop × 518
arcmap × 246
qgis-3 × 132
expression × 124
symbology × 92
python-parser × 89
arcpy × 69
arcgis-10.0 × 69
print-composer × 65
pyqgis × 63
maplex × 62
annotation × 61
arcgis-10.1 × 60
geoserver × 59
arcgis-10.2 × 59
arcgis-pro × 58
python × 57
polygon × 54
vbscript × 54
qgis-2 × 49
style × 48
arcgis-10.3 × 46
line × 43