6
votes
How to remove rectangle around label
These rectangle are probably "candidate position" (ie. emplacement the labelling engine consider while placing label, the placement engine choose the best candidate relative to your setting ...
2
votes
Accepted
Get coordinates on click without using QgsMapToolEmitPoint
One way to get the coordinates regardless of the selected tool is using an Event Filter to intercept the mouse events of the QgsMapCanvas object.
Within the event filter function there is a check for ...
2
votes
Accepted
MapServer : background buffer around labels ( GEOMTRANSFORM 'labelpoly' )
I fear that fine tuning the labelpoly option is not possible without touching the source code.
The size of the rectangle is fixed to 1 pixel padding
https://mapserver.org/mapfile/label.html?#label-...
2
votes
QGIS misidentifying fields attribute type
Single quotes ' are for strings, double " for fields. So you are trying to sum the strings 'MTO heat map_total' and 'MTO heat map grouping'. Change ' to " so QGIS understand you are ...
1
vote
Accepted
Labels in QGIS 3.22.4 are not showing up for two polygons
As stated in the comment some of the fields are null.
In order to deal with this we need to use the concat() function:
concat( "field1" , '\n' , "field2" )
Using the user fields, ...
1
vote
QGIS contour layer
To hide contours, in the layer panel bring the contours layer below the layer representing the land mass.
To show only labels for contours <=0, use this expression for labeling: if ("...
1
vote
Accepted
Forcing label text into one line using ArcGIS Pro
Go to fitting strategy and untick Stack labels.
1
vote
Accepted
Using many label colours in ArcGIS Pro
Yes, this can be done - changing the colour of labels can be achieved like so:
import random
def FindLabel([ATTRIBUTE_TO_USE]):
r = random.randint(0, 255)
g = random.randint(0, 255)
b = ...
1
vote
Accepted
When moving layer labels the labels connect
You need to choose a unique key. The window for this pops up the first time you move a label:
You cannot use an expression here. So in case you do not have one, you need to add it to the layer first. ...
1
vote
Is it possible to overline labels / text / strings in QGIS 3.x?
Can you share how you've configured your rule-based labels to appear in those exact positions relative to each other? (did you use specific offsets?) Since you want these to be separate labels with ...
1
vote
QGIS Print Layout expression for selected features in project
If you use is_selected as part of an if statement, it might do what you need.
If you want to see the other labels also - have a 2nd layer with labels, no symbols. Set the main (is selected test) ...
1
vote
Categorizing field and summing attributes for label in QGIS
Use QGIS expressions with the aggregate function sum(), grouping it by the common part of the "CFSAUID" attribute. For this, define an expression that returns this common part, here ...
1
vote
MapServer : background buffer around labels ( GEOMTRANSFORM 'labelpoly' )
As suggested by @user30184 it is possible to add some OUTLINECOLOR AND WIDTH to the generated labelpoly
CLASS
NAME "Chantiers forestiers"
TEXT "[type_travaux]$[situation]$ Du ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
labeling × 2088qgis × 961
arcgis-desktop × 516
arcmap × 238
qgis-3 × 115
expression × 112
python-parser × 87
symbology × 81
arcgis-10.0 × 69
arcpy × 67
print-composer × 62
maplex × 62
arcgis-10.1 × 60
arcgis-10.2 × 60
pyqgis × 59
annotation × 59
geoserver × 58
python × 53
vbscript × 53
arcgis-pro × 49
qgis-2 × 49
polygon × 48
arcgis-10.3 × 46
style × 44
sld × 40