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.

332 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
137 views

Issues with atlas generator and labelling across maps/images

I have a lot of layers in my project and I am trying to use the atlas generator in the print composer to create a tiled map. Some of the layers have labels which have different configurations with ...
6
votes
2answers
402 views

Multi-field labeling of shapefile with PyQGIS

I wrote the following code in order to draw the line labels with multiple fields. However, the label do not appear automatically in QGIS and I have to switch the "Layer Properties/Labels", ...
5
votes
0answers
118 views

QGIS Geometry Generator not working for some features at some scales

I have a set of layers, one of them is labeled using geometry generator. Thing is, at some scales (1:800 and up) and some features (like 1/30) the geometry generator evalues to null geometry, so the ...
5
votes
0answers
88 views

GEE - Get date of ImageCollection mosaic

I have created mosaics by date from an ImageCollection and now want to label each mosaic with its corresponding date. This is my function to label the ImageCollection: var date_label_pos = ee....
5
votes
0answers
304 views

Change default label font for styling

Where can I change the default labeling font "MS Shell Dlg 2" to a different one? I don't want to change the default layout font (Options --> Generel Settings) Maybe there is a solution to use the ...
5
votes
0answers
420 views

Using attributes for output filenames in QGIS Process Modeler?

How can I use process inputs (eg: Table field) inside an expression for an output file when using Process modeler? I have a process which outputs a raster, whose output filename should be the value ...
5
votes
0answers
325 views

Orientating Contour Labels Uphill in QGIS?

I'm quite new to QGIS and I'm trying to style topographic contours. I have managed to style the lines the way I'd like but I'm having trouble with the line labels - I can't style them so the labels ...
4
votes
0answers
28 views

QGIS: group labels from different lines below each other instead side by side

I have the following problem. I have a Linestring layer in QGIS. There are multiple lines drawn, sometimes overlapping each other. QGIS shows the label of the different lines next to each other. (...
4
votes
0answers
55 views

Do not show the label if it is outside the map canvas #42990

I wrote on the Qgis forum, but they suggested to to write here too. I'm having this problem on Qgis 3.16.6 that in 3.10.8 there wasn't. https://github.com/qgis/QGIS/issues/42990 Can you give me a ...
4
votes
0answers
313 views

Showing labels as they will be printed/exported in my print layout?

I set up a print layout for a map I want to print in QGIS. Some of my layers have labels on them. When I zoom in and out in the screen, without changing anything else on the print layout, some labels ...
4
votes
0answers
333 views

Styling the legend in QGIS with line layer

Working on QGIS 3.4.13. I have a vector line layer, there are rivers. I put a rule based symbology with two categories and different scale max / min for each category. I want to put style for the ...
4
votes
0answers
300 views

Displaying images as part of multiattribute labels using QGIS

I would like to display images referenced in an attribute column as part of a multiattribute label, so that I can eventually print them with the map. I do not want to display geotagged images, since ...
4
votes
0answers
6k views

Labels are not showing in QGIS

The coastline (the data I'm using) is including the small islands (Tarakan and Laut), I wanted to create two labels for these islands. In attribute table itself doesn't have specific name, so for this,...
4
votes
0answers
260 views

Connectors do not appear automatically in easy custom labelling

I'm using the easy custom labelling plugin in QGIS 3. When I move a label away from its associated polygon a connector does not automatically appear as in QGIS 2.18. How do I get connectors to appear ...
4
votes
0answers
471 views

Avoid duplicate labels on river sections and choose placements

I am trying to label rivers's names. The rivers include multiple sections. I have many repeats like "fleuve Loire ". How to avoid labeling repetition? "Merge connected lines to avoid duplicate ...
4
votes
0answers
382 views

Creating labels with table style

Hello I'm trying to create a label in QGIS that is formatted similar to the "table" styled yellow labels in the photo below. The attached image was from a map created in AutoCAD. I would like the ...
4
votes
0answers
306 views

Specify position of curved label in QGIS?

From this answer in 2012 underdark stated: BUT you won't be able to have curved labels anymore if you move/rotate the labels manually, as far as I know. It's now 2016, and I noticed that I can ...
4
votes
0answers
85 views

Center my contour values in QGIS

In QGIS have an issue with my contour value labels being pushed to the edge of my map, instead of lining up at the center where they seem to have more space. Does anyone know why this happens for some ...
4
votes
0answers
383 views

Rule-based labeling and the Data defined placement options are not working together (QGIS 2.12, 2.14)

After setting "Rule-based labeling" to my layer (new feature since QGIS 2.12), my data defined labeling is not working any more (see labeling tools on the right side): Going back to "Show labels for ...
4
votes
0answers
3k views

How to display ONLY local country names in google maps?

I am using google maps in an application where it is important that country labels display the country name in the local language. If you pass in certain language parameters that google maps ...
4
votes
1answer
832 views

How do I limit the number of labels for similar objects in QGIS?

I'd like to reduce the clutter in this map by limiting the spacing or number of times that a particular label can appear. For example, the label 'US 15' should not appear within some set distance ...
3
votes
0answers
41 views

Problem of label positioning when exporting layer in another CRS in QGIS

I use QGIS 3.16 to visualise a layer of the countries of the world. The layer is saved with the WGS84 CRS (EPSG:4326). I have set all my labels through rule-based labeling and saved the coordinates of ...
3
votes
0answers
85 views

Preventing labels from lower layers showing through layers that are on top - QGIS

I am creating a sequence of layers and layer groups - of geological units. Layers and groups higher up the sequence cover - partially or completely - lower layers or groups in the sequence, as they ...
3
votes
0answers
399 views

QGIS expression for label text to display vertex coordinates of polygons

This question is inspired by Displaying vertex coordinates of a polygon or line without creating a new layer and especially by the answer by @JGH: https://gis.stackexchange.com/a/381130/88814 The ...
3
votes
0answers
117 views

Prevent labeling outside of a an inverted styled polygon

I have this situation: All layers are filtered to the region except the layer "bahnstrecken" who is missing that attribute. Instead I use the polygon "bundeslaender" (inverted ...
3
votes
0answers
39 views

Evenly spaced labels for polyline layers

I'm using QGIS 3.8 and am attempting to label roadway segments (OSM) of varying length. By checking the "Merge connected lines" box and hiding features below a certain size, I can generally limit the ...
3
votes
0answers
92 views

Moving individual labels & rule-based labelling in QGIS

I have been playing around with labels and came to a problem. Hopefully someone can pinpoint whether I'm doing something wrong or there is a systemic hurdle in Qgis. Are you allowed to move labels ...
3
votes
0answers
110 views

Reproducing Paper Results for Land Cover Mapping of Satellite Imagery?

I am interested in training a neural network to perform pixel-based classification for land cover mapping of satellite data. In order to learn more about this interesting field I am trying to ...
3
votes
0answers
1k views

Removing duplicate labels in QGIS3

I have a layer (streets) where I want to remove duplicate labels and then set a display interval for the labels. This is relatively easy in ArcMap because removing duplicates is based on the label ...
3
votes
0answers
235 views

LegendGraphic and Label placement

I have to style some Rasters with SLD and get the legend from Geoserver to show it in my webapp. By default, labels are placed right to the Color Ramp. Is there any option, by using SLD or maybe any ...
3
votes
0answers
116 views

Label only features that intersect a specific line

hello I have two lines layers in QGIS line1 and line2 with field my_field(line1) and label(line2). I have a global project variable label_filter=one now I want to create a base label rule,first I ...
3
votes
0answers
328 views

Label QGIS points layer with auto incrementing number count from 1

I have imported a CSV layer to my map and want to label the points with a numeric count from 1 upwards, counting just the visible points. I have almost found a way to do this using the ...
3
votes
0answers
105 views

More than one QgsPalLayerSettings for a layer

Can more than one QgsPalLayerSettings object be defined for a single vector layer? For a line layer, I would like to put some text above the line, then some text below the line, not sure if this is ...
3
votes
0answers
205 views

Line should be invisible under label

I am creating a sea chart. The sea chart has ships lanes in a line layer. In the same layer, the safe depth of the ship lane is found in a column. I want to use this safe depth as a label on the ship ...
3
votes
0answers
160 views

Avoid multiple labeling in qtiles / QGIS

After failing to start the slippy map tiles generator .py module (where to put globalmercator.py...?), i tried this plug-in. How can i set qgis(2.14), to not move labels, as the tile generator moves? ...
3
votes
0answers
265 views

PyQGIS map rendering export shows no map labels?

I'm trying to learn a little bit of Python in QGIS with the following tutorial: QGIS Maprendering. Now the tutorial works, with minor adjustments. In QGIS I have four layers, and one them is showing ...
3
votes
0answers
403 views

Dynamic Label or Annotation in QGIS canvas

I'm creating an animation from several Raster images, and I'd like to add a label or an annotation to the map canvas, not the print composer, that will enable me to show the layer's name, which holds ...
3
votes
0answers
47 views

Which FOSS label engine that supports shrink to fit label in polygon?

I've not found a way to label features using shrink to fit label in polygon, i've tried Qgis, and searched on Geoserver, Mapserver and Mapnik, none of them supports this feature, i'm looking for any ...
3
votes
0answers
2k views

Showing dimensions on polygons in QGIS?

I have a shapefile that contains all of the property parcel lines in King County, WA. We are currently displaying this data through mapbox on our site with no issues. We would like to be able to show (...
3
votes
0answers
76 views

How to display features only if labels are displayed?

In my maps there are several point layers, and each layer has a different labelling rule and priority. Sometime the point density is too high and the labelling engine is not displaying some labels, ...
3
votes
0answers
614 views

Annotation/Label size adjusting to map scale in QGIS

I'm trying to label the street names for a map I'm working on but I do not want the labels to automatically adjust to the map scale when zooming in or out. My question is: In QGIS how do I set a fixed ...
3
votes
0answers
3k views

Arrow flow lines from a contour map

using QGIS (or even GRASS) is it possible to label a contour lines shape with arrows that indicate the flow direction? Briefly: I have a point shape with elevation values. I make an interpolation map ...
3
votes
0answers
297 views

SLD - disable follow line

I have a simple SLD style using in GeoServer v2.3.0 and testing in uDig. I have a interstate symbol that I do not want the label symbol to follow the line. I thought if I set: <sld:VendorOption ...
3
votes
1answer
4k views

How to set google map zoom to fit the screen & position infobox labels depending on the area of polygon

I am using google map's FusionTablesLayer and polygon to set layers of USA states. I am having problem in integrating following 2 things : a) Set zoom property, so map will fit to the screen. I know ...
3
votes
1answer
319 views

Labeling features in given order in QGIS

I want to sort the address numbers where would show only the bigger number and smaller value should be suppressed away. I have used earlier ORDER BY-method when using PostGIS but now it isn't possible ...
2
votes
0answers
36 views

QGIS inconsistent label positions in PNG / PDF layout exports

As part of my QGIS project's Continuous Integration workflow I have a process that generates "before" and "after" images from project Layouts, to visually show what has changed ...
2
votes
0answers
50 views

Can QGIS label buffers have a different vertical size than the horizontal size?

I am producing a map which includes a narrow street with parallel boundaries. Down the centre of the street midway between the street boundaries and parallel to them is a line layer which is a ...
2
votes
0answers
70 views

Replacing labels when overlapping with another line layer

I have a line feature layer with the name of streets. I want to render labels parallel on the line (the line has transparent color). I have another line feature layer often going parallel to the ...
2
votes
0answers
31 views

QGIS use the exact defined color for text labels and get rid of unused color when exporting as png

When I export QGIS layer as PNG images, I notice that the edges of the text labels are not clean. There's always a zig-zag effect on the edge. And this in turn introduces a lot of unused colors that ...
2
votes
0answers
44 views

QGIS place label on both sides of the item

I have assigned multiple of labels for my items. Following the threads here https://dominoc925.blogspot.com/2017/05/create-labels-from-multi-columns-in-qgis.html https://anitagraser.com/2011/06/15/...

1
2 3 4 5
7