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
1answer
2k views

Attribute Query for First/Last record and every nth inbetween

I have a feature class with over 5000 points. There are too many to label so I would like to be able to grab the first, the last and every 30th or 50th in between.
3
votes
2answers
2k views

Creating indexed vector grid in QGIS?

at the moment I am trying to create an indexed vector grid via "vector -> research tools -> vector grid...", in the following format: A1 A2 A3 ... B1 B2 B3 ... C1 C2 C3 ... .. .. .. The creation of ...
2
votes
1answer
4k views

Creating label in QGIS?

I am using QGIS 2.18.16 on Windows 10. What I want is a label to appear within the boundaries of a polygon. I select a layer, then select command Layer>Labelling, and I get: From here, I can ...
1
vote
2answers
637 views

Labeling using chemical formulas in subscripts that contain a mask in ArcMap 10.6

I would like to label points in ArcMap, and the labels contain chemical formulas. These chemical formulas have both subscripts and superscripts (see snip below) I am unable to use labels that both ...
39
votes
7answers
6k 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?
6
votes
2answers
7k views

Label callouts in QGIS

Has anyone been using callout labelling with QGIS, either trunk or stable? Used for clustered points. That means the point stays where it is, the label maybe moved if required and a leader (plain or ...
11
votes
2answers
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 ...
8
votes
3answers
869 views

How to create a label containing values from different layers in QGIS

I have several layers which are stagged on each other. I need to create a label (or text-window / description, doesn't matter) which should contain values from different layers. Creating a regular ...
17
votes
2answers
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 ...
15
votes
14answers
56k 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 ...
8
votes
2answers
10k views

Setting different colors based on value when labeling using QGIS

I want to label my values in a specific color. They are all in the same shapefile which makes it complicated. For example: if value is 10, it should appear in blue if value is 15, it should appear in ...
6
votes
1answer
1k views

Loading labels from Python script in QGIS

Is there a way to add labels of the added layers using python. I've tried these lines of code but no label shows after execution in QGIS 3.0 for layer in QgsProject.instance().mapLayers().values(): ...
4
votes
1answer
1k views

Label display based on cluster size

In QGIS 3.0, I am using the new clustering style. I want to display labels based on cluster size. What I tried in expression field: case when @cluster_size>5 then "label_name" end
3
votes
3answers
2k views

Can not get the connecting line to align with label in desired place in QGIS 3

I have labelled a points layer by defining a line between points and labels, so as I could remove the label to outside the map area (Figure 1). Using additional columns in the points layer attributes ...
10
votes
2answers
10k 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 ...
8
votes
1answer
991 views

Labeling (one-way) streets in QGIS?

I followed instructions in this answer to Creating Directional Flow Arrows for sewer lines? to add directional arrows to the one-way streets on a map I'm creating. I've currently created a marker ...
8
votes
1answer
365 views

Styling substring of label with different style without creating two separate label rules?

This question has been asked in the past but those questions were either not answered or suggested solutions that required multiple labels separated by newlines and placement rules to simulate a ...
8
votes
2answers
4k views

Is there a way to turn off all labels in ArcMap without clicking on every layer?

I rarely bother with labels, but sometimes it would be nice to toggle them on/off. Something like the Pause Drawing button, except that it would only turn off labels (all labels in all layers...not ...
5
votes
1answer
2k views

Reading and setting label settings in PyQGIS 3?

How do I read and set label style settings in QGIS 3.0. For instance, in QGIS 2.18 i had done: props = { "labeling": "pal", "labeling/enabled": "true", "labeling/fontFamily": "Arial", ...
5
votes
2answers
684 views

Automatically generating label lines in QGIS?

I've been experimenting with orthographic projections and I've run into a problem with the labels. I would like to label the countries but I want the labels to run west-east along the country which ...
3
votes
2answers
4k views

How do I get the building housenumber from OSM data?

I've made a map in which buildings in a city are displayed using shapefiles from Geofabrik and unfortunately, none of the shapes contain the housenumber. When I download the .osm files from Geofabrik ...
2
votes
4answers
5k views

Stacking labels in ArcMap without Maplex?

I do not see any obvious setting for stacking labels in ArcMap (ArcView license). Am I missing something or do i have to write a complex expression to stack my labels?
1
vote
1answer
2k views

Aligning labels with line connecting feature to its label in QGIS?

I have labelled a points layer by defining a line between points and labels, because points were overlapping too much. Using additional columns in the points layer attributes table (LABEL_X and ...
1
vote
2answers
530 views

Labeling stacked polygons with different records

I work in Oil and Gas and trying to label leases is a huge pain. In most cases there are multiple polygons of the exact same size and shape stacked on each other with records that represent different ...
1
vote
1answer
3k views

Automate converting labels to annotation in ArcMap at multiple scales? [duplicate]

I need to be able to convert labels to Annotation feature classes at multiple scale levels for both address and street data. Similar in concept to generating tiled layers for a web service, I have 5 ...
13
votes
2answers
13k 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 ...
11
votes
1answer
5k 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 ...
9
votes
3answers
7k views

Turning on labels of layer using ArcPy?

I am unable to turn on the labels within my Python script: import arcpy mxd = arcpy.mapping.MapDocument(r"Mypathhere") #Map document reference layer = arcpy.mapping.ListLayers(mxd, "Layername")[0] #...
8
votes
2answers
19k views

QGIS Multiple CASE WHEN/THEN Statements for Expression Based Labels

I am trying to label a single point with multiple labels, based on the attributes for that point. For example, if one of the attributes is equal to 1, I want to label it with a specific text string; ...
8
votes
1answer
4k views

Is there a way to interactively rotate labels in QGIS using any of the edit tools? [duplicate]

I seem to have put too much detailed information in my previous question, confusing the masses. My apologies. Let me try again from a different angle. I want to rotate labels interactively/visually,...
7
votes
5answers
3k views

How to place labels under a vector layer? [duplicate]

I want to place the labeling under a layer. In QGIS 2.2 apparently the label appears automatically at the top. Can someone help me. (see attachment) example:
5
votes
2answers
2k views

How to accomplish conditional labeling based on map scale and attribute in QGIS 1.7

How can I label with qgis 1.7, based on attribute and scale of map? For example scale>1:1000 then label all those features whose area>100000 at font size 12 and those features whose area<99999 at ...
5
votes
3answers
8k views

Adding leaders to point symbols if they overlap using ArcGIS Desktop?

I've added symbols to one of my point shapefiles, but for several datapoints this has resulted in symbols stacked on top of each other because there are multiple sample types for one sample location (...
5
votes
2answers
3k views

Removing duplicate point labels in QGIS

I am working on a protected areas map. The label layer is from the mapping authority. The one I am using is point based. Unfortunately some of the points carry the same name leading to duplicate ...
4
votes
2answers
603 views

Dashed label underline in QGIS

Is it possible to create a dashed underline for labeling in QGIS? I have one capital city which for used underline for the name of this city. and now I need dashed underline to a name of the province, ...
4
votes
2answers
4k views

How to show two different labels of a particular vector layer with the help of QGIS?

I am working under a government project in Kolkata with QGIS. I want to show two different labels of a particular vector layer. just like we can show two different labels in Arc GIS with the help of ...
3
votes
6answers
1k views

Rule based coloured background for labeling in QGIS

I am a newbie working on QGIS 3.6 / Windows 10. I need to label a polygon layer which is categorised by colour. (pls refer to attached pic as a graphical reference) The labels need to have a ...
3
votes
2answers
524 views

Is it possible to mix italic and normal font in a label?

I have concatenate the values of two field like "BYKV_BTYP" || '/' || "FFH" Is it possible to draw the value of the column "FFH" in italic if it is not empty and the value of "BYKV_BTYP" normal?...
3
votes
2answers
5k views

Labeling points with numbers and adding text label to legend as list in ArcMap?

I am developing a series of maps in ArcGIS 10 and don't have a lot of space to label the features on the map. This is why I thought I would number each feature in the dataframe through and then export ...
3
votes
1answer
3k views

Mapserver: labels and tiles

I'm developing map with Mapserver to be rendered in tiles and testing output with Ka-map. Most of the time labels split on two tiles are matching, but sometimes they're not. I configured Ka-Map like $...
3
votes
1answer
6k views

Label *beside* polygons in ArcMap 10?

I try to add labels to polygons in ArcMap 10 based on a field in the corresponding attribute table. However, the labels always appear inside the polygon, and I can't find an option that lets me put ...
1
vote
1answer
2k views

Creating multiple lines label in QGIS?

I try to create a multiple lines label for this this polygon: I red How to create multiline labels in QGIS? QGIS, Multiple lines and wrap on character? and tried to use the "wordwrap" function ...
8
votes
1answer
1k views

Label placement on rotated map in QGIS

I'm a newbie to GIS and QGIS (please be nice to me). I'm working on a map for a garden/arboretum catalogue using QGIS 2.6.1. The arboretum has been surveyed using GPS, and the specimen trees and ...
8
votes
1answer
1k views

How map unit affects the caption size in the label in QGIS?

I tried to make a the label caption size adjusted relatively to the map scale. It worked, more or less, when I set the size into map unit. I set them to 0.1, and when I zoom out the caption size get ...
6
votes
2answers
6k views

Creating labels based on attribute field in shapefile with Arcpy?

I want to be able to label point features on my map in a python loop. How do I access the ArcGIS label engine with ArcPy?
5
votes
3answers
2k views

How to “Never Remove” labels in Maplex?

The out-of-the-box labeling engine does a fine job with forcing all labels to display despite of overlap. The same cannot be said of Maplex. I have a polygon layer obtained from the Ontario ...
5
votes
1answer
2k views

How to make a different font and color of text in labels? [duplicate]

Is it possible to make a bold or italic, and change the color of individual words Label? Example: the first line is bold in red text, font 12, second row 10 green italic font
4
votes
3answers
3k views

How to create label with variable size in ArcMap?

I'd like to create a circle label in ArcMap in the middle of each Polygon feature in my map document to shows the value of a particular attribute associated with that feature (like number of available ...
4
votes
2answers
20k views

Show text inside polygon on Leaflet map

When I try to label the polygon on my Leaflet map I always get the error: t is undefined I am trying to do it as shown below: <html> <head> <title>Page Title</title> ...
4
votes
1answer
2k views

Setting mask (halo) for labels in Python script?

I currently am writing a python script and using a lot of the arcpy mapping module functionality. I have been using the LabelClass of the arcpy mapping module to automate the display of labels with my ...