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
72
votes
5answers
38k 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 ...
37
votes
3answers
40k 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 ...
33
votes
6answers
5k 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?
24
votes
1answer
3k 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 ...
20
votes
5answers
10k 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 ...
18
votes
2answers
3k 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 ...
16
votes
2answers
15k 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.
16
votes
4answers
4k 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 "...
16
votes
4answers
3k 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)
15
votes
2answers
7k 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
15
votes
14answers
51k 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
2answers
1k 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 ...
15
votes
1answer
830 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
1answer
808 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
3answers
1k 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
2answers
32k views

Multiple labels in QGIS [duplicate]

Is it possible to show 2 or more labels for 1 layer? For example - 1 label will show the name of a school and the 2nd label will show the number of students? They should be completely different labels....
14
votes
1answer
490 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
1answer
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", ...
14
votes
4answers
5k 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
3answers
445 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
3answers
2k 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
13
votes
2answers
14k 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
10answers
13k 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
1answer
3k 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 ...
12
votes
4answers
8k 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
12
votes
4answers
7k views

How can I connect label and point with a line/arrow?

Is it somehow 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 ...
12
votes
2answers
1k 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
2answers
2k 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 ...
12
votes
2answers
5k 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/...
11
votes
5answers
4k 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 ...
11
votes
1answer
4k 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 ...
11
votes
4answers
7k 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
1answer
6k 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 ...
11
votes
2answers
2k 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 ...
11
votes
2answers
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
3answers
955 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
3answers
956 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,...
11
votes
1answer
1k views

Is there a way to add a “current user” label to the print composer?

Is there a way to add a current user label to the print composer in QGIS. I thought there might be something similar to the $CURRENT_DATE format available. This would be in a windows environment.
10
votes
2answers
8k views

How does manual Label Placement in QGIS 1.9 work? [duplicate]

There are a bunch of questions here related to labeling in QGIS, but it's not clear which version they are referring to, and I know this is something that has changed recently. Hopefully it makes ...
10
votes
2answers
4k views

How to only show labels for an arbitrary selection of items?

I'm curious how others go about solving this problem: You've created a map for something with a large number of features that are labeled. The customer/client asks that you only show labels for X, Y ...
10
votes
2answers
8k views

Polygon label repeated for each tile

I'm using the standalone GeoWebCache to serve tiles from a remote GeoServer. My problem is that the polygon label is added to each one of the tiles served, instead of only once in the polygon centroid....
10
votes
3answers
672 views

Changing to alternate label if first label does not fit in QGIS?

I'm trying to create a map to print out and the size of my polygons varies greatly. As this will be a reference map I need to label every polygon, but some of the names will not fit in the polygon. In ...
10
votes
2answers
1k views

How to create dynamic leader lines?

I'm trying to create dynamic leader lines by using a PostGIS view in addition to the QGIS „Move Label“ tool. CREATE VIEW leader_line AS SELECT gid, ST_MakeLine(geom, ST_SetSRID(ST_MakePoint(...
10
votes
1answer
2k 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 ...
10
votes
2answers
680 views

How to show labels exactly around a circle in QGIS?

I found an interesting way of proportional symbol mapping and labeling, I think this was made by Adobe Illustrator but I couldn't find out if it can be done in QGIS. What I am interested in the most ...
10
votes
2answers
5k views

How to create curved labels in QGIS

I added an image, that explains my demand (see Schiefelsbach river). How can I do this?
10
votes
1answer
216 views

How to prevent label rendering in bleed space in QGIS composer?

I'm making maps for a book where maps run to the edge of the page. The printer has advised a 3mm bleed space around images, therefore if my page is 127x177 mm, images should be 133x183 mm. This bleed ...
9
votes
2answers
6k views

What are valid values for “data defined” labeling settings?

I'm using QGIS 1.8. I'd like to customize label features on an existing shapefile using the new label engine and it's "data defined settings" option. I'd like to know what the attribute table field ...
9
votes
1answer
2k 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 ...
9
votes
3answers
7k views

Label Expressions to replace null values with text not in feature class

I need to label some hydrants (points) - some of these belong to the fire brigade and have a number assigned to them, some do not and thus do not have a number. I would like to write an expression ...