New answers tagged

1 vote
Accepted

Forcing label text into one line using ArcGIS Pro

Go to fitting strategy and untick Stack labels.
user avatar
  • 38.5k
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 = ...
user avatar
-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/...
user avatar
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. ...
user avatar
  • 24.9k
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 ...
user avatar
  • 7,329
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 ("...
user avatar
  • 40.1k
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 ...
user avatar
  • 51.3k
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, ...
user avatar
  • 1,603
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 ...
user avatar
  • 824
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 ...
user avatar
  • 11.8k
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 ...
user avatar
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 ...
user avatar
  • 40.1k
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) ...
user avatar
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 -...
user avatar
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 ...
user avatar
  • 443
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-...
user avatar
  • 51.5k
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 ...
user avatar
  • 1,454
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.
user avatar
  • 4,164

Top 50 recent answers are included