Questions tagged [labeling]
Rendering values from attribute tables as text on maps near their feature. For questions about legend labels use the [legend] tag instead.
2,371
questions
1
vote
0
answers
27
views
Labels defined with QGIS Expression and custom function not rendering in QGIS
In QGIS 3.34.5 I have a vector layer in QGIS with a large amount of attributes.
I want to generate labels that only show relevant attributes. To do that, I define a PyQGIS function that takes a ...
3
votes
1
answer
81
views
Setting labels to be the "Blocking" type using PyQGIS
I'm trying to apply the Blocking label on a layer using PyQGIS but with no success. I also would like to be able to set the obstacle weight as well.
Here is my code so far:
from qgis.core import ...
0
votes
0
answers
33
views
QGIS - Convert labels to annotation
I have the following question:
In QGIS 3.26, is there an option to convert labels to annotations, just like ArcMap does?
I have searched and have not found an answer to my question. What I found was ...
4
votes
1
answer
101
views
Preventing labels from being placed too close to other features in the same layer in QGIS
I am working on a QGIS project where I need to prevent labels from being placed too close to features within the same layer. My aim is not just to avoid label overlaps, but to ensure that labels are ...
1
vote
0
answers
28
views
QGIS Label Placement Engine Ignoring Straight Lines
I've been digging into the label placement engine in the new QGIS version (3.38.2-Grenoble) and it's doing something odd: It doesn't seem to even suggest candidates on certain parts of line strings, ...
0
votes
1
answer
28
views
In ArcGIS Pro I wish to bold numeric values in my label based on if they are above a certain number [closed]
I wish to bold numeric values in my label based on if they are above a certain number in an ArcGIS Pro feature class. I am currently using vbscript for my labeling expression but am open to Arcade, ...
0
votes
0
answers
45
views
QGIS : "Labels settings" vs "text font" symbol libraries : how to use them distinctively?
Using the QGIS symbol manager, I defined a green text font :
I defined as well a red buffer label settings :
And now, i want to use them in my project :
I used the red buffer label settings. All is ...
2
votes
1
answer
85
views
Position labels dynamically based on their point feature values
In QGIS I go to the layer properties and in the labels/positioning section in the 'Offset X, Y' field I click on 'Defined data overwrite' and enter the following expression:
'array("...
0
votes
0
answers
24
views
Sequential numbering with a prefix by grouped attributes [duplicate]
I need to label different groups of attributes sequentially. So for example I may have attributes with IDs A,B and C and I need to be able to pick out the 'A' group and number them with the same ...
2
votes
1
answer
64
views
Using the "tab distance" feature in QGIS labels
I want to define the distance between two fields in a label. It seems like "Tab distance" would be helpful for this but I don't know how to call the tab value in the label.
Screenshot of ...
0
votes
0
answers
27
views
Extent Indicators and labels using ArcGIS Pro
I am looking for a way to show labels without extent indicators cutting through them in layout view. My current workaround is to transform to text and move manually.
Is there another way?
3
votes
1
answer
94
views
Drawing line defined by start and end points within attribute table in QGIS
I am creating a map with multiple labels. For these, I am using Points with Symbols because I have to be able to control the placement very strictly.
I would like to add attribute fields to the Point ...
5
votes
4
answers
481
views
When labeling, "Wrap on character" drops the wrap character
At 3.34.8, I have a polygon layer field containing the names of numerous Wilderness Areas, such as:
Sierra de las Uvas Wilderness
Broad Canyon Wilderness
I would like to label these polygons so that ...
0
votes
1
answer
42
views
QGIS crashes when I set the labels
I'm writing a script for QGIS, using the Python console. I noticed that when the script processes the rows about the label settings, when I delete the layer "terrFiltrati", QGIS crashes and ...
1
vote
1
answer
48
views
Show settlement labels on a map based on population and settlement density in different areas
Is it possible to show settlement labels based on population and settlement density in QGIS 3.36?
I have two layers of settlements:
Biggest Cities Layer: This layer contains the largest cities, which ...
0
votes
1
answer
29
views
Arcade labels not drawing in ArcGIS Online
I have a hosted feature service view that I would like to customize a label expression for.
I want to concatenate an abbreviation of one field with another field. I'm doing this in the Visualization ...
3
votes
1
answer
75
views
QGIS Labeling expression to format a values list in a series of 2 columns of 2 records
From a layer of overlapping points (identical coordinates) containing the field "RC", I'm using the following expression to make the label of unique values:
array_to_string(array_distinct(...
1
vote
0
answers
46
views
Adding data-driven command in PyQGIS
I want add to my code line which add option placed label based to data. I would use string in_mask(0) as string, because i want hide labels under the mask.
layer = QgsProject().instance()....
1
vote
2
answers
87
views
Labeling a multiline layer in QGIS
is there any methode to create a line next to my multiline feature indicating where it starts and ends and display the length (available as one of my fields) on it at the same time? Since my line is ...
1
vote
0
answers
39
views
Place labels as close to centroid as possible without collision in QGIS
In QGIS, I want to print a map to a PDF and use labels for my polygons with the following criteria:
Show all labels
The labels do not collide
The labels are placed as close to the centroid of the ...
1
vote
1
answer
50
views
Change labeling font color for different unique values in the same label class using ArcGIS Pro
First of all I am very new to ArcGIS Pro and it's my first GIS software.
I'm aware you can change the symbol for unique values in a label class, but can you change the color of the labeling so that it'...
0
votes
0
answers
29
views
Can't set different font sizes for labels in QGIS
I use the Easy Custom Labeling plugin to draw lines along which inscriptions are placed (curves).
The font size is set by itself, although I set certain parameters, and the size is displayed as it ...
2
votes
1
answer
165
views
Truncating seconds on label
I am trying to label points with hh:mm but the default for Q-GIS just lets me hh:mm:ss.sss, with a string of 5 useless digits. How can I truncate the last 5 digits?
3
votes
1
answer
140
views
How to make annotations follow the latitude lines in QGIS?
If my map is in EPSG:4326, the text annotation is normal.
However, if the projection is transformed, such as EPSG:102017, the text label does not change.
I want the text label information to be ...
3
votes
1
answer
89
views
QGIS count and list address codes for every house
I have a point geometry layer called 'PORTA' that representing the entrances of the houses.
On the other hand, I have a attribute table called 'NUCLEUS' that represent the addresses that are inside ...
0
votes
0
answers
33
views
How to export labels with callout/leader from ArcGIS to CAD (Microstation)?
I need to export labels with leader/callout from ArcGIS Pro to CAD (Microstation).
First I Convert Labels To Annotations and then use Export To CAD and attach the CAD file in Microstation. This works, ...
2
votes
2
answers
85
views
Curved labeling of rivers in QGIS doesn't always work
I need to label some rivers using curved placement. Sometimes the labels appear, sometimes they do not. I'm sure part of my problem comes from the rivers being divided up into short sections as ...
5
votes
1
answer
108
views
Labeling each sub-part of multi-part geometry with its part number using QGIS
I want to label each sub-part of a multi-part geometry with its part number shown using Identify -> Derived.
In Layer Styling there is the variable geometry_part_num available as used like in this ...
0
votes
1
answer
33
views
Display point labels alternatively to left and right
I am working in QGIS and I have a point layer whose labels are to be displayed left or right of the point. The formula I tried to make it work is, in label placement, selected Offset from Point mode, ...
2
votes
1
answer
82
views
Formatted labels' multiline text will not align left
Using ArcGIS Pro 3.2.2, I'm unable to get a particular feature class to have its multiline labels' text aligned left. They only come out centre-aligned.
I have found that the horizontal alignment ...
2
votes
2
answers
84
views
Retrieving label boundaries within QGIS Layout maps
Some time ago, I created a custom Python expression function to retrieve the boundaries of manually placed labels in QGIS:
from qgis.core import *
from qgis.gui import *
from qgis.utils import iface
@...
1
vote
1
answer
53
views
Adding underscores to specific letters in attribute-driven label using ArcGIS Pro
I need to make labels that contain different formatting for specific characters to represent pronunciation. Specifically, I need to underscore some letters in a label but not all.
The attribute ...
1
vote
0
answers
40
views
qgis label straight line
For a map, I would like to align the labels on a single line.
I've changed the label co-ordinate settings to X = $x and Y to a fixed value.
The only problem is that I'm using LAMBERT coordinates and I ...
3
votes
1
answer
79
views
Mid_point label placement using Geometry Generator in QGIS
I've tried to place a label at the start, end, and middle of my lines in QGIS using the Geometry Generator.
This post, place-label-along-line-near-start-and-end-of-line-in-qgis, got me the start and ...
0
votes
2
answers
104
views
How to offset labels in Leaflet using field-based rotation & offset?
I have a small dataset displayed as points in Leaflet. Each point has 3 arrows (right, left, head) coming out of it and they are rotated based on 3 separate fields (rhead, lhead, head). i want the ...
0
votes
0
answers
43
views
Get or set layer display parameters using Python (reading documentation general question)
I'm having issues with finding data in QGIS Documentation so I wanted to ask how to access display parameters of layer (get existing values and change/update them).
I know that layer symbol can be ...
0
votes
0
answers
41
views
QGIS Labels: Accessing Values that were created in the Geometry Generator as MultPointM
I have a LineStringM layer, and needed to create a kind of river mileage.
Therefore I was using the geometry generator in the Label-Tab.
So far I was able to get the MultiPointM, but can not access ...
0
votes
0
answers
26
views
Faulty Show/hide Labels and diagrams
I am attempting to clean up some road name labels manually in a map I am creating. There are too many of the same ones along the roads. I have been through everything in label properties: Rendering, ...
1
vote
2
answers
63
views
Label anchoring and placement settings (geometry generator label placement by plugin)
I'm trying to set up a plugin applying custom labels for lines created by Geometry Generator. I want the labels to be "on line", something that's easily set manually:
Based on documentation ...
0
votes
0
answers
57
views
QGIS 3.28.11 Layout-View extremely slow and laggy when text is in the center of view and when moving label elements
When I'm working out a layout in QGIS i normally don't use the built in legend function as I don't like it. I create label elements and place them as i want them. When these are quite big and I'm ...
0
votes
0
answers
43
views
QGIS: Labeling text out side of map?
I have some grid lines which have attributes (map 1). Those attribute need to show outside of map area in layout section where arrow is (map 2). How to do that?
0
votes
0
answers
51
views
Dimensions with QAD
i would like to use QAD plugin to make polygons with dimensions in QGIS, i came across a problem (that's what i think it is).
When i set the text layer for dimension style i can't make it to align ...
2
votes
1
answer
65
views
Aggregate/group points by value, and label aggregated point with aggregate expression (QGIS)
Problem Statement
I have a layer of multiple points, and I am trying to:
Aggregate/group the points by their attribute values, so that one point is drawn for each group of points with matching ...
1
vote
1
answer
31
views
Repeating label of line shapefile does not work
In QGIS, I have a river which I want to label multiple times. When changing the settings in the placement section of the label setting, it does not make a difference. It still displays the label once.
...
0
votes
1
answer
55
views
Ignore labeling when field has specific word - ArcMap 10.8
Looking to add a function of my labeling expression to not label feature with the word 'TO". For example, some roads are named '5th TO I-10'. I am using Python as the parser with advanced checked....
0
votes
1
answer
61
views
Display symbols only when labels are displayed
On the map I have symbols (points) and labels for all municipalities with more than 10.000 inhabitants. Due to the fact that some parts of the desired area don't have municipalities with more than 10....
0
votes
0
answers
36
views
Expression Builder/Data Defined Labels Equally Spaced along Y Axis
I want to create a series of labels that are organized vertically but equally spaced so they do not overlap.
I am using some data defined expressions to organize them along the X axis just fine. ...
2
votes
1
answer
71
views
QGIS: Displaying labels outside polygons for line features inside using field values
How can I display labels for line features in a QGIS line layer, where the label should appear outside a polygon if the line feature is inside the polygon, and otherwise appear as it is? I have ...
1
vote
1
answer
207
views
How do I insert labels or annotate the points in a plot with multiple things?
I'm trying to make a simple study area map which consists of basin boundary shapefile, sampling points and river shapefile.
Here's the dataframe of the sampling points:
And here's the code to plot ...
4
votes
2
answers
116
views
Why QGIS expression display double at concave sections?
I am trying to display the vertices of a polygon with vertex number. In symbology, I have used the Marker line and font marker.
.
When the Line offset is -5 positive the text 'P7' is displayed far ...