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.

Filter by
Sorted by
Tagged with
3 votes
2 answers
31 views

Set the background of a label such that it fits to a wrapped line in QGIS

In QGIS, is there a way to change the background setting on a label such that the background "fits" to the text. Here, there is a lot of white space after the second line that I don't want ...
  • 31
0 votes
1 answer
21 views

Label class for only one value based on Symbology Levels using ArcGIS Pro

I am using ArcGIS Pro. I am trying to label some point features that I have three levels for in symbology but I want to display the value on the label for only one of the three symbology levels at a ...
0 votes
0 answers
19 views

PyQGIS - adding label format [closed]

I am trying to automize some QGIS task using the Python Console but I have tried with different methods using QpalLayer but I am unable to get it though. I want to set a label format to one of the ...
5 votes
2 answers
70 views

QGIS - how to label values of two different polygons in one polygon setting

I'd like to display the values of two different polygons in one. I have a polygon with the border of different states, then in a separate polygon I have the borders of districts dividing the states... ...
  • 571
0 votes
0 answers
11 views

Automatically pin labels with PyQGIS?

How to automatically pin labels on canvas? I see two possible ways. The first way: I'm trying to do it with the pinning tool . I turn on this tool. But then I need to automatically select all the ...
1 vote
0 answers
18 views

1400 grids in a shapefile that I want grid labels to display in trimble

So I have a grid boundary shapefile where I want to upload into TerraSync so I can collect data and know which grid I am currently in. Is there a way to do that in ArcMap or in TerraSync? I found this ...
0 votes
0 answers
20 views

Excluding some attributes from being labeled in ArcMap [closed]

I am using ArcGIS 10.8.1 and would like to exclude some attributes from being labeled by using the Label Expression. How would I get an expression to select ALL the attributes EXCEPT some attributes?
0 votes
1 answer
36 views

Setting labels as background labels in QGIS?

Is it possible to set labels as background labels in QGIS ? See this page to see what i mean.
  • 45
3 votes
1 answer
56 views

Translating point geometries and label placement conditioned by data fields values of two different layers

As you can see in the screenshot, I have a HOUSENUM point geometry layer with the following data fields ID_HOUSENUM (corresponding to the portal text), ID_STREET (corresponding to the street code it ...
7 votes
2 answers
191 views

QGIS - align labels of point layer perpendicular to course of polyline

Is it possible to align the lable text of point layers perpendicular to the course of a polyline?
  • 571
3 votes
1 answer
71 views

How to label features avoiding duplicate attributes and conditioning by two fields

In a layer with point geometry, I have the house number label. Each geometry has the HOUSENUM, PARCEL and STREET fields. In some cases the geometry is duplicated (equal geometry), in some cases the ...
3 votes
1 answer
106 views

How to label the percentage of different attributes

Using QGIS version: 3.28 LTR, in a layer with point geometry containing the field named "TYPE" and the attributes 'Normal' and 'Special', I am trying to develop an expression that allows me ...
1 vote
1 answer
50 views

Label two attributes with more than 2 rows

I have the following dataset ID Date Thickness A 01-2022 0,02 A 04-2022 0,04 B 01-2022 0,01 B 04-2022 0,02 B 06-2022 0,02 B 08-2022 0,05 C 01-2022 0,00 I want to label Date+Thickness. I'm ...
5 votes
1 answer
122 views

QGIS - how to display callouts only for labels offset more than a specified distance?

I'd like to achieve the following: Offset all labels for a point layer by a specified amount in general settings (I already know how to do this). Only show callouts for the labels that I move ...
  • 53
3 votes
1 answer
36 views

Avoiding label identical attributes on duplicate geometries in QGIS

The following expression is used to label duplicate geometries avoiding text overlap: array_to_string( array_prepend( overlay_equals('POINT_LABEL',VALUETEXT), "VALUETEXT" ...
3 votes
1 answer
21 views

rule based labeling of point layer using intersections method on another polygon layer

I try to make a rule based labeling for my locations point layer which should be displayed, if a point intersects with the value residential in a (osm) layer called landuse. So I tried to do: ...
  • 33
4 votes
2 answers
155 views

Separating layers based on labels

I have the following data set Data. There are 3 different kinds of labels: "Baja", "Media", "Alta". Each label is assigned to a polygon. Is there any way to separate the ...
4 votes
2 answers
194 views

Displaying label if field contains 'X' or 'Y' value in QGIS

Trying to create an expression to display labels from a field called "Drilled ID", but only if the field named "Status" contains 'Week' or 'Active' but to no avail. If the "...
  • 203
5 votes
1 answer
66 views

Get name of labeling rule with Python in QGIS

I want to access the name of a rule in the rule-based labeling of a layer in QGIS via Python. Getting all the attributes works for me, also the preview text. But I didn't find the property to get the ...
0 votes
0 answers
13 views

Format gradient legend with thousands separator

Is it possible to format the gradient legend with the thousands separator ? I'm using QgsClassificationMethod.setLabelFormat but it doesn't accept expressions, only basic formatting. If ...
  • 1,023
3 votes
1 answer
82 views

QGIS: Where are these labels saved?

In my QGIS project are 3 labels ("Text", "Turkey", "Syria") displayed (see screenshot) which I can't change or select with the label tools. As you can see on the ...
0 votes
0 answers
41 views

Making labels not overlap with other features

I'm trying to generate a label for distances in a Layout i'm making. For this I am using a line feature and making a label with it's distance (a calculated field) I know that the simple solution would ...
1 vote
0 answers
27 views

Placing labels for points outside of separate polygon layer's boundary

Is there a way to place all labels from three different point based vector layers outside of a boundaries of a separate polygon? I have three layers of projects sites and want to have them all display ...
1 vote
0 answers
31 views

Controlling label placement with the point displacement renderer in QGIS

I work with geological map symbols that involve symbol rotation and the placement of labels relative to the orientation. A simple example is placing a label at the tip of an arrow symbol regardless of ...
0 votes
1 answer
53 views

Label showing extra decimal places

Based on the map below how can I set the labels to show values with only 2 decimal places? As you can see the field (float) is already set to 2 decimal points but for some reason, label values have ...
2 votes
2 answers
98 views

QGIS: Labelling with parts of an attribute consisting of two or more words

Working in QGIS, I have an attribute consisting of scientific names of species. I would like to label the points on the map with the first 3 left letters of both parts of the binominal scientific name....
1 vote
1 answer
38 views

QGIS 3.28.3 Firenze - How to show info in a GeoJSON file imported as a raster next to the concerned points

I'm having problems with GeoJSON files from the renass.unistra.fr/ site. Those contains seismic data build this way: {"features":[ {"geometry":{"coordinates":[0....
0 votes
1 answer
28 views

Displaying second label class in ArcMap with ArcPy

I am trying to automate MXD templates and want to bring layers in and label them based on attribute value without ever opening them in ArcMap. This means I cannot first open the layer symbology ...
0 votes
1 answer
38 views

Adapt label box size to text length in layout composer

In the layout composer I want to add a title in black text with a white background. My title will be dynamic and I want the text box ("label" in the composer) to automatically adapt its size ...
4 votes
1 answer
104 views

Offsetting horizontal line labels in QGIS

In QGIS 3.22.8 I have 100s of linear features on a map. I want to label them horizontally, but don't want the label sitting over the line. I can find the Horizontal placement setting, but no offset ...
  • 1,677
0 votes
1 answer
26 views

Superscript ordinals for street labels in ArcGIS Pro

I'm using ArcGIS Pro 3.0. I have a Streets feature class that includes the ordinal for numeric streets in the street name field. For example, for "13th Street", the name field is "13th&...
4 votes
1 answer
86 views

QGIS Print Composer only label with visible features

I am curious if there is a way to get all features from a certain layer that are visible in the current map. I am aware that this could be done using the checkbox in the attribute table object but I ...
1 vote
1 answer
69 views

How to label duplicate geometric features avoiding text overlap for more than 16 duplicates?

It seems that the strategy of using the increase the distance of the label placement together with use callout lines to connect the labels to the features, only works with less than 17 duplicate ...
2 votes
1 answer
68 views

How to label duplicate geometry features avoiding text overlapping?

As shown in the screenshot, a point layer contains identical overlapping geometries. When labeling these points, the texts appear on the map in two rows. If there are more than two points, the texts ...
0 votes
0 answers
19 views

Labels of one layer below other symbols layers

There is any chance in Qgis to find a way for make the labels of one layer go on the background of other layers? I mean a layer of streets names with labels are shown above lines and points, and I ...
  • 1
1 vote
0 answers
63 views

Label shapefile by attribute in Google Earth Engine

I have imported a shapefile of points into Google Earth Engine but am unable to find information on how to label them by their assigned number in the attribute table. I saw a related thread but the ...
6 votes
1 answer
308 views

When moving label other labels disappear in QGIS

I have a set of points with labels set to lat and long generated using the "Lat Lon Tools" plugin. I want to move the labels using the move label tool. When I move a label, the other labels ...
8 votes
1 answer
134 views

Setting constant labels positions in QGIS

I've been trying to figure out how to stop the labels from moving when dragging the map with the cursor. Is it possible to prevent this from happening? I am new to QGIS and don't really know what to ...
  • 83
0 votes
0 answers
19 views

Toggle labels on a vectortile connection

I have a vectortile server connection (e. g. to basemap.de, see example below) styled with a lot of labels. I see no way to quickly toggle the labels on/off without deleting them all and adding them ...
  • 507
6 votes
1 answer
152 views

Performing basic labelling with PyQGIS

I'm trying to display labels using PyQGIS. In this case, I create the layers manually, so I guess you need to add a "Label" attribute to the feature as well. Therefore, I've written a little ...
2 votes
1 answer
23 views

Cluster_size function is not available

I'm using the version 3.28.2. I combined the points in a cluster, and now I'd like to define the size of the cluster depending on the number of the points in cluster. However, the function ...
1 vote
1 answer
23 views

How to automatically update field creator orders

I'm new to QGIS and want to visualize two attributes of a Layer: a) name (name of a hilltop) b) fotoid (referring to a photo of that hill) Therefore I created a new field: "combined" with ...
0 votes
0 answers
22 views

Display Raster Cell Values instead of Colours

Im trying to display a raster's values as text within each cell since the spatial resolution is so low. [![As seen here the values for each cell are displayed while the symbology is either transparent,...
0 votes
0 answers
31 views

Different Labels if Field Contains Specific Text (VBScript)

I have a NAME field for multiple assets: Tanks, Reservoirs, Pump Stations, etc. Currently, I have everything labeled using the following script: [NAME] & vbNewLine & [Vol_Mgal] + " " ...
  • 1
3 votes
1 answer
50 views

Numeric issue with labels (QGIS adding decimals)

I am encountering numeric issues, possible related to this problem: QGIS labels rounding error I have a field value of 0.55 (type double NULL) that I want to display in a label as a percentage. The ...
1 vote
0 answers
174 views

Convert labels to annotations in QGIS

When using ArcMap it's possible to convert labels to annotations. How does this work in QGIS without a plugin or Python?
  • 41
1 vote
1 answer
261 views

Plot two legends in same map with GeoPandas

I'm trying to plot two shape files: shape_geo and shape_dam, but the legend for the second map doesn't show up. This is the code I'm trying: fig, ax = plt.subplots() shape_geo.plot(ax=ax, column='...
  • 139
1 vote
1 answer
46 views

Concatenating Attributes from Differing Features (Grouped By Value) Into Single Label

I have been using QGIS 3.28.0 and want to be able to concatenate the attribute values from differing features into the same label with each concatenated value on a separate line. I would group the ...
  • 19
0 votes
0 answers
34 views

Multiple elevation labels on contours

I extracted contours from a DTM generated by Pix4dSurvey from a drone mapping mission. However, when I try to label the contours in QGIS with the derived elevations, some of them have multiple labels (...
0 votes
0 answers
40 views

Vertical free angled labels hugging left side of polygon

I am trying to fit some labels (civic addresses) within their respective land plots (polygon), the free (angled) option generally looks best but for some instances where the label is hugging the left ...
  • 63

1
2 3 4 5
45