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,180
questions
0
votes
0
answers
15
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
vote
0
answers
16
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 ...
0
votes
0
answers
15
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 ...
2
votes
1
answer
3k
views
How to make sure labels in qgis turn up in layout map?
I am using natural earth for qgis 3.0. I have rule based layers for 10m_admin_0m_maps_unit to show only a certain number of countries in my Caribbean map. That now looks perfect when I am in the qgis, ...
1
vote
1
answer
230
views
Extract Labels (city names, state names) with shapefiles using QGIS
I want to extract shapefiles with labels on it using QGIS but labels cannot be extracted along with shapefiles.
Here's the image:
I want this as my output after extraction:
How to do something like ...
0
votes
0
answers
10
views
Using symbols from style file in ArcGIS Pro [closed]
I have a style file of US Highway Shields.
How do I get these symbols on my roads layer in ArcGIS Pro?
I have imported the style into my project and have added the required fonts to Windows.
4
votes
1
answer
120
views
Basic PyQGIS labelling
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 ...
4
votes
1
answer
782
views
Text formatting tag for bold not working in ArcGIS Pro labeling expression
Someone told me recently that, when they used the text formatting tag for bold text in an ArcGIS Pro labelling expression:
<BOL>Bold</BOL> test
the label appeared as:
Bold test
...
0
votes
2
answers
570
views
Label placement overlapping
Is there a way to prevent labels from 2 different layers (province and city names)? This map of Argentina looks a bit messy as some labels are overlapping and become unreadable.
1
vote
1
answer
19
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
22
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
21
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
21
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
vote
1
answer
53
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='...
1
vote
0
answers
37
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?
3
votes
1
answer
38
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
89
views
QGIS labels rounding error
I wish to use rounded values as labels using QGIS 3.4.4. My field is type "double" and the the data source is a Spatialite table. I notice two odd behaviors linked to this problem. First, ...
0
votes
0
answers
38
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 ...
1
vote
1
answer
36
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 ...
0
votes
0
answers
31
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 (...
9
votes
3
answers
6k
views
Show only one label for multiple points with same value in QGIS
I have a point shapefile which has for a few occasions multiple points with the same ID. Doesn't look nice with the normal label-display.
Is it possible in QGIS to only display one label then? I ...
6
votes
2
answers
4k
views
Disabling polygon Label on vertices in Edit Mode using OpenLayers
I added the style on the polygon layer like so.
var style = $.extend(true, {}, OpenLayers.Feature.Vector.style['default']); // get a copy of the default style
style.label = "1233456 ha"
...
0
votes
2
answers
292
views
Some labels appear in ArcMap while others do not
I am using ArcMap.
I'm using a template from someone who previously created maps.
I am simply applying labels to xy points but for some reason only some of the labels appear whiles others don't.
Why ...
2
votes
1
answer
229
views
Add leading zeros to data frame label
This is in ArcMap 10.0.
When using data frames to label UTM coordinates, I'm sometimes asked to add leading zeros (e.g., 590 would become 00590) to the tick or line labels of the data frame. I'd ...
1
vote
1
answer
71
views
When moving layer labels they stick together
in my qgis project i have a layer with multiple points. I labelled all of these points different and suddenly when i move the layers they "connect" all on the same spot and i cant split them ...
5
votes
1
answer
91
views
Count the number of features joined by shortest_line function conditioned
Using the shortest_line function conditioned to a table attribute to return the shortest line joining features of the same layer as it shows in this expresion:
shortest_line(
$geometry,
...
1
vote
1
answer
40
views
Categorizing labels using same categorization as labeled layer in QGIS
I am using QGIS 3.28.
Use-case: I have a layer named: map_1, which is a map of many regions. The regions are identified with City_id. To distinguish the regions by their ID's, I first categorized them ...
0
votes
1
answer
96
views
Labeling GeoJSON polylines in Leaflet
I have followed Leaflet GeoJSON style and labeling to create labels for my GeoJson
I achieved this using "OnEachFeature" and a "CSS" class. This is a part of the code:
CSS class
...
3
votes
2
answers
128
views
Rotating labels based on custom CRS QGIS 3
I'm trying to rotate labels based on CRS of a Europe map EPSG:3035 ETRS89-extended / LAEA Europe but with Longitude of origin 18° and Latitude origin 49°.
According to the question Parameters of the ...
1
vote
1
answer
115
views
Some labels disappear when exported from QGIS to DXF
I'm using QGIS 3.14.
I have two layers with labels in QGIS, set up to map units. In "rendering" section of label properties I have set up to show all labels for these layers.
I want to ...
0
votes
2
answers
516
views
Setting label settings in PyQGIS 3 to mapUnits?
I am converting several Plugins from QGIS 3 and I am struggling heavily with symbology and labeling. The straightforwart QGIS 2 approach seems to be totally gone. I found some help here:
Reading and ...
1
vote
1
answer
1k
views
Labeling expressions on AGOL with Arcade for certain features
I am working on a web map in AGOL for the indoor office map. I have some issues writing custom expressions with Arcade in order to label the types of rooms (office rooms) based on another attribute ...
5
votes
2
answers
111
views
Show single label for features grouped by identical attributes in QGIS
I have a database with of accidents in an area. I want to show a lable with the type of accident for every occurence. In the database there are multiple entries for the ID in the first column (because ...
4
votes
1
answer
47
views
Displaying only certain labels in QGIS
I'd like to display all of polygons but only label some of them. Case would be: the value in row "TabelleImp" contains the word 'offen'.
I thought these expressions might work, but I they ...
1
vote
0
answers
28
views
QGIS 3.22 Labeling Previews show expected result, but is not shown on canvas
I created a function to label rasters whose boundaries are the same but represent different features. To do so, I have a set of rasters and a point vector layer with one field representing each of ...
5
votes
1
answer
77
views
Avoiding eval() function when using custom function
CONTEXT
I have several raster layers which overlap. I created a point layer with labels that represent different values for each of these raster layers. I created a function that
lists all layer ...
1
vote
1
answer
182
views
Can't create Auxiliary Storage layer in QGIS in order to move labels
When I try to move a label for a point in a layer called 'Places', I am prompted to choose a primary key, but when I select the fid column, I get the error 'Unable to execute 'CREATE TABLE IF NOT ...
5
votes
2
answers
3k
views
Changing default font of labels in QGIS
I've just opened a feature request, but maybe someone knows a temporary solution.
In QGIS 2.2 one can change the default font of the Print Composer (through the Menu Option -> Setttings). But I ...
1
vote
1
answer
2k
views
Removing default map label of places in Mapbox GL JS
I've added MapBox map layer in my HTML page using following script.
mapboxgl.accessToken =
'***********************';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/...
0
votes
1
answer
16
views
Force GeoServer to make use of carriage return from SQL Server
I'm completely new to GeoServer.
In desktop GIS I can use CHAR(13) in views on SQL Server to make GIS interpret a carriage return, when I visualize a label.
Is this possible using GeoServer?
As I ...
2
votes
1
answer
29
views
Showing one label for a split polygon
I have a few polygons representing crop fields.
I have split each one based on an aerial map for ease of area measurements but now when I show labels for each polygon (with block names) it creates a ...
2
votes
0
answers
95
views
Create multiple callout lines from a single label
I would like to label groups of points (clusters) with only one label but several call-out lines. I built on top of the very appealing answer from @eurojam here: How do I give one label to two points?
...
2
votes
2
answers
1k
views
QGIS vector layer labels are not showing from python script
I have a python module, where a QGIS memory vector layer is created, within the same method that creates this layer I have constructed labels using:
text_format = QgsTextFormat()
label = ...
3
votes
1
answer
67
views
QGIS label placement: allow selecting from a range of values for distance instead of fixed distance
Labeling a line layer in QGIS with many features, not all labels can be drawn without overlapping. Best result in the sense to show as many labels as possible without overlap I got using Parallel mode ...
1
vote
1
answer
622
views
Adding labels after meeting a zoom threshold in Leaflet
I'm making a map in Leaflet and I have up to two labels per marker:
var redIcon = new L.Icon({
iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red....
2
votes
2
answers
1k
views
Search for string and only display characters before it in Mapinfo label expressions
So I have a property table that has addresses like below.
12 Andrews CL, Pxxx
1/12 Andrews CL, Pxxx
2/31 Macrossan ST, Pxxx
2/7-11 Barrier ST, Pxxx
I need to only show
12
1/12
2/31
2/7-11
Can ...
1
vote
1
answer
1k
views
Label not showing in QGIS 3
I created a line by importing a delimited CSV file and the line appears fine. I can add a label on the line by using the "begin" or "end" attributes but not the "Name" ...
3
votes
3
answers
1k
views
Show in QGIS the number of overlapping lines in the Label
Is there a way in QGIS to show in linestring's labels the number of overlapping linestrings (with exact same geometries)?
I've got cables that have the same geometry (are in same pipeline) and I need ...
2
votes
1
answer
47
views
How to create a dynamic label for a polygon layer that sums line length and other attributes of another linestring layer
For an agroforestry design in QGIS I am trying to add dynamic labels to an area polygon that displays the number of rows, total length and the total number of trees that are in the design.
So far I ...
0
votes
0
answers
43
views
Labels of same layer overlap each other (QGIS)
I just want the labels of one layer stop overlapping each other, no matter which scale I choose, even if some labels fall outside of my map extend then (only if there A LOT of labels).
Is there still ...