New answers tagged labeling
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
votes
ArcGIS Pro Key Numbering in Legend?
refer to this answer, through [unique value many fields] in [Symbology] to realize key and name relate
https://community.esri.com/t5/arcgis-pro-questions/displaying-an-attribute-table-in-a-legend/td-p/...
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. ...
0
votes
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 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 ("...
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, ...
0
votes
Convert labels to annotations is messing up the label format
It looks like you have a long multiline field from the screenshot, which may be confusing people. I now see the other fields.
Not every Maplex option comes through to annotation. You may be able to ...
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 ...
0
votes
Orienting line labels to graticules in QGIS
!! This only works if the point layer is in a unprojected CRS, because only then will QGIS reproject the created straight line on-the-fly into the curve on the map that follows the graticules of the ...
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
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) ...
0
votes
Getting text to center in a label expression
I had the same issue and figured it out. Make sure you are using the Maplex Labeling engine. Open the properties for the layer and click on the Labels tab:
Placement Properties -> Fitting Strategy -...
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 ...
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
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 ...
0
votes
Round and truncate numeric label in ArcGIS Pro
You would need to divide the value by 100,000, then round it, and then divide by 10. The arcade expression would be Round($feature.sales / 100000) / 10.
Top 50 recent answers are included
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