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
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 ...
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
3answers
21k views

How to label GeoJSON polygons?

I'm using Leaflet combined with GeoJSON features. Is there a way to label GeoJSON features (in this case - polygons)? It should get labels from feature.properties.name This is my code where I ...
7
votes
1answer
2k views

How to position callout bubble leader using maplex?

I'm using data driven pages to produce a number of maps. I'm using Maplex to have a callout bubble labeling my features. The problem is that for about 5% of the features, the callout bubble is not ...
6
votes
3answers
5k views

Labels missing after conversion from *.mxd to *.kml?

I've been trying to convert a map from .mxd to .kml for google earth. The map has municipalities labeled as well as train stations. When I save it and open it in Google Earth, only the train station ...
6
votes
1answer
487 views

Is rule-based labelling available for qgis2web plugin?

Does the qgis2web plugin support multi-attribute, rule-based labeling? I'm trying to use the qgis2web plugin to export leaflet maps. The labeling on the map I want to export is rule-based. (eg if x >...
6
votes
5answers
1k views

In QGIS, how do you place horizontal label outside polygon border?

I am attempting to recreate a layout from ArcGIS in QGIS. One of the advanced label options in ArcGIS is to force horizontal labels outside a polygon. You can optionally choose which quadrant the ...
6
votes
1answer
1k views

Python Labeling using dictionary not printing all values

I am labeling manhole inverts using python and ArcMap 10.3. When I use a dictionary to control the label order some manholes don't print all of the inverts while other manholes do. I can post field ...
5
votes
2answers
1k views

Labeling outside polygon using QGIS?

is it possible to place a label automatically outside its polygon?
5
votes
4answers
13k views

Multiple labels for 1 point

I have map points for schools in a district. I want to label the map ID and the name of the school on the map. I have the map ID labeled within the point symbol but I want the school name outside of ...
5
votes
1answer
425 views

Labeling using 'wordwrap' and 'wrap on character' with mutiple fields in QGIS?

I'm having a problem with multi-field labeling both using the 'wordwrap' function and the 'wrap on character' mode. In fact I would need to use the multiline mode only on the second of the two fields ...
5
votes
1answer
102 views

Labels displaying with multiple bounding rectangles

While setting up labeling of a line (road) layer, the labels started displaying with multiple bounding rectangles along with the text. After trying many different labeling configurations without ...
5
votes
1answer
3k views

How to fix label texts when exporting .mxd to pdf?

I have exported an .mxd to pdf but once I open the pdf, most of my text labels are mis-represented (altered in someway). This is the first time I've had this issue. - What I did when creating the map ...
4
votes
2answers
695 views

Multi-line labeling of a shapefile layer with pyQGis

I want to label a shp layer on two lines with pyQGis. I managed to do it with only one field, but with two or more fields (using concat) it does not work anymore. Here is the code I wrote: def ...
4
votes
1answer
790 views

How to get coordinates of label position or make static labels for each feature

How can I get the coordinates of generated labels on Canvas? Or is there a way to make static labels for each feature? I want the labels to not move when the canvas changes scale or moves. My ...
4
votes
2answers
6k views

Customizing label features using arcpy

I have a script that creates symbology for a polyline (contours) and then adds it to a .mxd file. My problem is that it picks the “FontName” as the default field to label on the map (see attached ...
4
votes
1answer
134 views

Displaying vertex coordinates of a polygon on a map in QGIS

I have a polygon shape loaded in QGIS, and I'd like to display every vertex' coordinates on the map in a label or popup next to it, how can I do that?
4
votes
1answer
3k views

Assigning different colors to different parts of text in labels using QGIS?

I'm using QGIS 2.14.3. It is now possible to assign different colors (or fonts) to different parts of text in one label (I have seen How to make a different font and color of text in labels? )? If so,...
4
votes
3answers
6k views

Labelling only certain polygon features in QGIS

The red colored countries in the image are countries i consider highly vulnerable to freshwater shortages. I like to have the name of only these highly vulnerable countries appear on the map, i'd be ...
3
votes
3answers
761 views

QGIS: relations in label expressions

In my project I have a many-to-one relationship. For example I have a vector layer "Towns" and a data layer "TownsInfo". Each town record consists of "Name" and "Id". Each TownsInfo record consist ...
3
votes
2answers
302 views

Label with different fonts and sizes from a field in QGIS 3.8.3

I received a shapefile from Arcmap. It has a column for label representation. Here's an example: 'PP3<FNT name ="SymbolMono BT" size ="11">g</FNT>gc2'. In Armap the codes are replaced and ...
3
votes
3answers
664 views

How do I edit a single label in QGIS 3.4 (Madeira)?

I'm making a map of North Dakota and trying to label the counties, but one of the names (Golden Valley) is extremely long in a very tall county. I don't want to turn the label vertically, but would ...
3
votes
2answers
355 views

Is there an advanced way to label in ArcMap so that the label will not be dropped?

Is there an advanced way to label in ArcMap so that the label will not be dropped?
3
votes
1answer
2k views

How to show labels depending on the zoom scale and save it forever in one project?

I have got a problem in showing labels for a polygon layer : When I select "Show labels" in the layer's properties, then I select that I want to use the scaling to show or not my labels and I ...
2
votes
1answer
1k views

Split label style in GeoServer CSS or SLD

I would like to split the style of my labels, which consist of 2 attributes. I already managed to separate the lines, but I need to style them differently as well, as the second line should be bold. ...
2
votes
1answer
2k views

If-then expression in Mapinfo label expressions

Firstly this is similar to If-Then Label Expression BUT I need this for Mapinfo. So I want to do the following in Mapinfo in the label expression box in ver 12. if RuralAdd='R': address=St_No + " ; ...
2
votes
5answers
1k views

Labeling map logically? [closed]

How would you label this map logically? I will preempt the question, with the statement it is for a fire truck, so we really have to worry about seeing the address numbers at 3 am with one contact ...
2
votes
1answer
3k views

ArcMap Text Annotations Display in Proportion to Map Scale

My question is probably of an 'easy fix' however I've been struggling with it for a while! I'm trying to set up an annotation labels for several feature classess in a map and would like them to ...
1
vote
2answers
6k views

How to change the font size and color of a certain part of label in ArcGIS

I am using Arcmap 10.4. Now I have this label formatted in two lines, as shown below And it's shown in the map like: Now I want the first line of the label, which is the Order# of the roads, to be ...
1
vote
1answer
223 views

Regrouping concat labels with overlapping intersecting geometries in QGIS

All the fields i want to show on the map are in the same layer. All the labels have to be showed on the map. But the concentration is high. So i would like to concat the labels when geometries are ...
1
vote
2answers
1k views

Label moved with Move Label Tool disappear on QGIS v2.6.1

I have done a deep research on previous post about "move label tool", but I have not found the correct answer for my case. I have the version 2.6.1 of QGIS. When I select a particular point of my ...
1
vote
1answer
2k views

How to label adjacent pages in data driven pages

I'm trying to create a mapbook using ArcGIS 10.1 data driven pages. Its quite large and I want to create match lines or labels so that if you are looking at a page, there is text/labels showing you ...
1
vote
4answers
1k views

Changing font size, when using the Easy Custom Labeling plugin?

I’m using the Easy Custom Labeling plugin. Useful plugin, but when I want to change the font size with the Layer Labeling Settings. Nothing changes, I can only change font size manually for each label?...
0
votes
0answers
246 views

Integrate right to left text label expression with fields in ArcGIS 10.3

I try to insert this label expression in ArcGIS 10.3 in the layer properties. The expression has field from the attribute table and some text(right to left orientation) that i added (it isn't in some ...
0
votes
4answers
1k views

How to Remove Multiple Labels for Stacked Points? ArcGIS 10.2.2?

I have a point feature class, in certain areas there are stacked points. These stacked points are accurate. However, when I label the points I am getting a label for each point, which is okay for each ...
0
votes
4answers
457 views

ArcGIS Labeling Expression when truncation needed to fit in some polygons? [closed]

What would be the expression coding for if the address is 14802. But if the whole address cannot fit inside the building dimessions, then it should be truncated to the last two digits - 02. I am ...
-1
votes
1answer
205 views

How to Label Field With Multiple Selected Values?

I have a shape named "Subdistrict" and it shown on Attribut Table like this : No | subd | village 1 | town1 | v1 2 | town1 | v2 3 | town1 | v3 4 | town2 | v4 5 | town2 | v5 6 | town2 | ...
15
votes
1answer
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 ...
7
votes
1answer
2k views

ArcMap 10: How do I escape certain characters when labeling?

I am labeling certain Oil & Gas areas by Operator in ArcMap 10, using this expression: "" & [OPERATOR] & "" & vbNewline & "" & [UNIT_NAME] & "" The only problem is that ...
7
votes
2answers
8k views

Labels cannot be moved although data-defined settings are active

I'm trying to manually move labels but having some trouble. I'm trying to move the labels while in edit mode. I've added fields for x coordinate (all null), y coordinate (all null), rotation (all =0), ...
7
votes
1answer
2k 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 ...
6
votes
2answers
522 views

Label interior of polygon boundary

I'm using QGIS 2.6.1 and would like to label US state polygons such that each border is lined with the label of its two states. Something like this: It appears that the current labeling engine only ...
6
votes
0answers
88 views

Check QGIS label visibility [duplicate]

Is there a way to check the visibility of a label in QGIS by feature? Could the pyqgis library help? I need to search for points where no label is shown:
6
votes
1answer
2k views

Label QGIS diagram sector with percentage etc

I'm working with QGIS 2.14.3, using the diagrams function for vector layers. Is it possible to label each single diagram sector with an attribute / calculated percentage? In the layer properties tab / ...
6
votes
4answers
7k views

Halo use background color

As you see on the attached image, I labelled contour lines on the map (in meters). Which function will allow the "halo" to take the background color of the map? On the image, the halo is greenish ...
5
votes
1answer
3k views

Can ArcGIS automatically round labels for a raster symbolised according to a classification? [duplicate]

I'm looking for a way to automatically adjust the reported precision of the label field for a float raster rendered in ArcGIS according to a classified symbology. Currently, the a classified raster ...
5
votes
1answer
256 views

Creating and populating inset maps for densely-labelled areas using ArcPy?

I would like to know if it is possible to automate the example in the picture below, unlike the picture below i'm using vector data. I would like for a fixed scale generate map, but when labels are ...
5
votes
2answers
5k views

Label font size and scale QGIS 3.0

How can I make it that the font size of the label changes when I zoom in and out? I have a polygon and I want the label get bigger when I zoom in and smaller when I zoom out (just like the polygon ...
5
votes
2answers
20k views

Labeling with two decimal places (rounded) even when second is zero in ArcMap?

I have a benchmark data that need to label. The data where in the field has attribute height like 12.340, 12.400, 13.690. I have to label the height for examples 12.34, 12.40, 13.69.I already used ...
5
votes
3answers
15k views

How to prevent labels from one layer from overlapping features in another layer

I am working ArcMap10.1 software. When I was labeling on point feature automatically label fall on line. Label must not fall on line. I'm not aware how to solve this issues. I have attached an ...