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
83
votes
5
answers
44k
views
Displaying coordinates and inputs as LatLon or LonLat?
I'm trying to get a sense if this is an issue for others or every input/output should be labeled so user is not confused and just go with it?
I think almost everyone pronounces it as "LatLon".
Who ...
45
votes
3
answers
57k
views
Manually placing labels in QGIS?
Is there a way to manually place labels in QGIS?
I have a map which has almost-duplicate labels in some places (e.g. E 1st St and 1st St) and I'd like to remove some of them.
Also, I'd like to ...
41
votes
7
answers
7k
views
Interrupting contour lines beneath elevation labels (instead of using label buffers) using QGIS?
Is there a way to interrupt a contour line beneath an elevation label using QGIS?
30
votes
2
answers
5k
views
Creating sector lights in QGIS?
I'm using QGIS 2.18. I need to create sector lights for navigational purposes on a map.
I have the light sector data as fields giving becon_id, start degree, end degree and color in a shapefile with ...
26
votes
6
answers
13k
views
Placing elevation numbers on contours with uphill orientation and position in QGIS?
I want to orient my elevation labels uphill.
Is that possible?
I'm currently using the labeling tool from QGIS (not that one in layer settings). I want the labels curved and uphill oriented (and I ...
20
votes
5
answers
7k
views
How to create a label combining different font sizes or types?
I would like to place the elevation-number of a point in a different front size and centred under its name:
Is that possible?
(That is my actual labeling: label || '\n' || elevation)
19
votes
2
answers
15k
views
How to add a halo to a text in the composer?
I would like to add texts with halo, in the composer (not in the map). Do you know a way to do it?
I'm using QGIS 2.0.1
19
votes
2
answers
26k
views
Creating multiline labels in QGIS
How can I apply Multiline label option in the label property?
Name field contains a lengthy name. I want to wrap it.
My QGIS version is 1.8.
19
votes
2
answers
4k
views
Creating leader lines for moved labels
With a lot of help from gis.stackexchange.com I've created leader lines for point symbols. The lines are based on a geometry generator symbology:
Shortening line geometry using expression dialog in ...
18
votes
2
answers
59k
views
Multiple labels for one layer in QGIS [duplicate]
Is it possible to show two or more labels for one layer?
For example - one label will show the name of a school and the 2nd label will show the number of students? They should be completely different ...
18
votes
4
answers
7k
views
Avoiding labeling features if overlapped by another layer in QGIS?
With QGIS 2.12.2, how can I set up layer labeling to avoid placing labels where features from another layer already exist?
For example, if I have a stream/river polyline layer that contains lake "...
17
votes
2
answers
2k
views
Is it possible to write a label expression in qgis that displays the label at a given coordinate?
I am using the QGIS expression builder for the label properties of my data.
Is it possible to put different parts of the label in different coordinates on the map?
For instance I have a linestring ...
16
votes
14
answers
63k
views
Labels not appearing on any layer in ArcMap?
Not sure what the issue is, but I'm unable to get labels to display in ArcMap 10. The obvious things are accounted for (as far as I know). Labels are set in Properties, layers are checked to label in ...
15
votes
3
answers
3k
views
How to create vertical labels in QGIS?
How to create vertical labels (each label in new line) like:
1998
150
pipe name
and not horizontal:
1998 150 pipe name
15
votes
2
answers
9k
views
Displaying multiple fields as labels if one field is null in QGIS?
I am having some issues trying to show multiple fields for a single label in QGIS. In QGIS2.6, attempting to display labels for a feature consisting of multiple fields results in an empty label if one ...
15
votes
1
answer
1k
views
Showing only uppercase text as labels in QGIS?
Using QGIS 2.14 and see there is now rule based labelling. I wish to show labels of towns that have capital letters (eg CRAWLEY) and not show the labels of towns with lowercase letters (eg Faygate)
...
15
votes
1
answer
1k
views
Filling shape with labels or attributes in QGIS?
In QGIS, I would like to set the fill of a shape to be a pattern repetition of label values (i.e. an attribute of the item).
Is this possible, looking a little like the sketch below (for shapes with ...
15
votes
1
answer
9k
views
How to add labels outside of features?
I'm trying to achieve this kind of labeling using QGIS. Apparently, it doesn't seem to be easily supported. Would you have an idea for a workaround ?
I managed to have circled text using "Diagrams", ...
15
votes
3
answers
3k
views
Controlling rule-based labelling using PyQGIS?
Following on from this question: How to turn on/off all labels of all layers in QGIS, OP mentioned in his comment that he uses rule-based labels. I tried searching online as to how these types of ...
14
votes
1
answer
636
views
Aligning road names in a row in QGIS
I am trying to align road names in a row, or column as much as possible in QGIS. I know it can be done in Adobe Illustrator with a mapping plugin, but I don't have the $$ for that.
I tried something ...
14
votes
1
answer
9k
views
Interactive and dynamic map with wind data in R leaflet?
I have some data like this :
longitude latitude speed direction
1 6.10722222 46.23639 4 360
2 6.95416667 43.54694 4 360
3 7....
14
votes
4
answers
6k
views
Preventing text labels from overlapping other markers in QGIS?
Is there a way within QGIS to prevent text labels from overlapping icons used to label a point layer?
In the example map shown below, there are two layers:
Roads layer which is labeled using the new ...
14
votes
2
answers
15k
views
Is there a way in qgis 2.0 to prevent overlapping labels?
Is there a way in qgis 2.0 to prevent overlapping labels?
I have a layer with a large geographical extent, which means a hell of a lot of labels. Many of them collide and it looks really bad. Is ...
14
votes
1
answer
5k
views
How to create text labels with background boxes?
I'm trying to create some custom labels for point features in a QGIS point vector layer, and I want to write a python plugin to do it. We need our labels to be presented with color tinted rectangles ...
14
votes
3
answers
840
views
Iterating over conflicting labels
The way I see it, if two features to be labeled are too close to one another, then there are essentially three options. By default QGIS will omit one of the labels. If I enable the “show all labels” ...
13
votes
3
answers
7k
views
Labeling each individual side of polygon in QGIS
Using native QGIS layer property definitions, I have successfully labelled each polygon in my layer with its area and perimeter.
Never satisfied, I now wish to label each side of each polygon with its ...
13
votes
4
answers
11k
views
Choosing only one contour line to label in QGIS?
Is it possible to select only one contour line for labelling?
I have numerous labels for each line and I'll prefer to label only the main ones, such as 1000 m and 1500 m
13
votes
4
answers
9k
views
Connecting label and point with line/arrow using QGIS
Is it possible in QGIS to connect labels and points with a line/arrow or something?
In my map it is not clear which label goes with its point. I can't bring it closer because there are many more ...
13
votes
2
answers
16k
views
Altering font size using label expression?
I have two label classes displaying dynamically over my parcel polygons. The owner info is the major label with larger font size and bellow it I am displaying some property type info in smaller font.
...
13
votes
10
answers
16k
views
Algorithm for finding irrregular polygon centroid (label point)
I need to find a centroid (or label point) for irregularly shaped polygons in Google Maps. I'm showing InfoWindows for parcels and need a place to anchor the the InfoWindow that is guaranteed to be on ...
13
votes
2
answers
3k
views
Reducing size of labels automatically to fit within polygons
I want to make labels automatically smaller so they fit within the polygons. The biggest font-size is 12 and I want to decrease the font-size to be restricted to the boundary of the polygons.
There is ...
13
votes
2
answers
6k
views
Is there a method to have the colour of a label automatically match the colour of the polygon indicated in the symbology tab?
My job requires that I produce several print maps every day, for a variety of different users. It is usually pretty straight-forward, but sometimes I have to make a map that uses rather confusing/...
12
votes
3
answers
11k
views
Subscript labels in QGIS legends
Is it possible to include subscript and superscript text in the title of a legend item in QGIS ? I have tried using <sub>some text</sub> but this just appears in the title with no change ...
12
votes
2
answers
7k
views
How to format labels with leading zeroes?
I'm trying to display a number next to a symbol in QGIS 2.0.1 - The numbers are from an integer-field in a PostgreSQL database.
The goal is that single digit numbers get a leading 0 (zeros). Examples:
...
12
votes
2
answers
4k
views
Symbols above labels in map QGIS
I didn't find any answer to this question. In this post it is said that labels are by default on top of everything else: How to place labels under a vector layer?. But it was for 2.2, and years went ...
12
votes
1
answer
7k
views
Changing thousands separators from comma to space in measured grids of ArcMap?
In ArcMap it is easy to include commas as thousands separators on a measured grid, as can be seen in the screenshot below, but I have not been able to find a way to change the separator used from ...
12
votes
5
answers
5k
views
Measuring straightness of a curve segment (represented as a polyline)
I'm working on an automatic elevation contour labeling algorithm and one of the factors that I want to take into account when deciding the positions of labels is how "straight" a particular segment of ...
12
votes
1
answer
3k
views
Prevent labels being cut off / clipped at edge of map
I've read a few other issues about trying to prevent labels from rendering if they run off the edge of the map canvas. This is particularly a problem in Composer, where I get lots of country labels ...
12
votes
2
answers
3k
views
Straight Lines from Label to Feature in QGIS?
What I’m trying to do is label a series of point features but due to the density of point features I’m going to have to move the labels away from the point features. I then want to use a simple ...
12
votes
2
answers
2k
views
Can labels for overlapping points be combined/merged into one label?
I have points representing sample locations. Often, multiple samples will be taken in the same location: multiple points with the same location but different sample IDs and other attributes. I'd like ...
12
votes
2
answers
13k
views
Altering label styles (font, color, size, etc.) using ArcPy?
I am trying to write a python macro for ArcGIS 10.2 that will automate the process of labeling points in a layer based on different types of apartments. For example, one style of apartments would ...
12
votes
2
answers
4k
views
Is there a way to label a layer using its file name or layer name?
Is there a way to label a layer using its file name or layer name (if I'd change it in Layers window TOC)?
I tried some functions but I'm not good on that.
I have lots of shapes (lines) and it would ...
12
votes
2
answers
3k
views
Label Blocking in QGIS?
Does anyone know how the 'Blocking' label style in QGIS 2.16 works? I've got a polygon boundary layer and would like to keep any labels from overlapping the outline. I've turned blocking on for the ...
11
votes
4
answers
8k
views
Are there any cartography "rules" you should follow when labeling maps?
We've all seen poorly labeled maps before. In these maps, the wording is either illegible or unpleasant to view due to positioning, color choice or size, or the labels take up so much map space that ...
11
votes
2
answers
747
views
Applying labelling with obstacles in QGIS
I'm working with QGIS 3.16 Hannover and I'm quite confused with the option Features act as obstacles.
According to QGIS documentation (13. The Style Library » 13.3. Setting a label » 13.3.2.3.4.4. ...
11
votes
2
answers
14k
views
How to create a zoomed in portion of a map in print composer?
I posted a question yesterday about troubles I was having with labeling (which are still plaguing me), but it hit me today that it would probably be easier for me to just create zoomed in sections of ...
11
votes
2
answers
8k
views
How to use label classes, expressions, and annotations?
I've always found that when it comes to python, vector analysis, QGIS gives ArcGIS a run for its money, hell some of the qgis plugins exceed ArcGIS's performance by a few hours; however, I always have ...
11
votes
1
answer
4k
views
What is the difference between sample, sampleRegions, and stratifiedSample in Google Earth Engine?
According to the documentation of GEE
ee.Image.sample() samples the pixels of an image and returns them as a FeatureCollection, in which each feature has 1 property per band in the input image. You ...
11
votes
3
answers
1k
views
What's the convention for "upside down" labels?
I have line features that are to be used for labels. These lines are correctly oriented(rotated) and positioned such that text placed on them should give a good cartographic output.
Compare the below ...
11
votes
3
answers
1k
views
Using Label classes vs Definition queries - which performs the best?
Which would provide the best performance for working within ArcMap with very large datasets stored in an ArcSDE geodatabase? Multiple label classes using complex SQL queries to label specific features,...