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
1
vote
1answer
22 views

QGIS Label Buffer/Mask Issue

I have tried this with different QGIS versions (3.14 & 3.16) on both Mac and PC, but am not able to resolve the following problem. I derived vector contours from a DEM and made labels every 250 m ...
0
votes
0answers
30 views

ArcMap polygon labelings

I have a challenge with advanced labels of polygons in ArcMap 10.1. I wish to make the label take the longest direction(either curved, horizontal, vertical or diagonal) inside the polygon. The python ...
4
votes
1answer
596 views

Changing label anchor point in QGIS 3

Based on my previous question, answered here Can not get the connecting line to align with label in desired place in QGIS 3. Now I have a new issue. As can be seen in the image included, I have manged ...
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 ...
3
votes
1answer
36 views

Repeating labels even if I set to “No repeat” in Placement

In QGIS, I'm working on a map with the contours of a certain location. For the contour labels I used a fixed position with the "Label Toolbar". In the settings of the labels, in "...
1
vote
1answer
46 views

How do I limit label placement based on the distance to neighboring features' labels in QGIS?

I'm attempting to label population centers in a map of a state which has a vast disparity between the population density in the west versus the east: I'd like to reduce the clutter in the western ...
3
votes
0answers
35 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 ...
-3
votes
0answers
38 views

Exporting labels from QGIS to DXF without losing format?

I want to check if there is an export method or plugin that allows exporting QGIS labels to DXF, CAD, without losing the label design.
1
vote
0answers
11 views

Text cutting off when exporting map using ArcMap

For some reason my labels keep cutting off; the same happens with my legend when converting to pdf or jpeg. I am using ArcMap 10.8 and have never experienced this issued until my ArcMap was ...
13
votes
2answers
2k 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 ...
0
votes
1answer
2k views

Setting a scale range for labels in KML files

Is there a way for labels to be displayed in KML only when zoomed in (or out) beyond a certain scale range, just as it is possible in ArcGIS? If exporting to KML from ArcGIS, I guess the first step ...
2
votes
1answer
36 views

Setting Halo property of label using ArcPy and CIM

I don't know how to set halo property in Python. I try it by CIM (code below) but I don't know, what line "lc.textSymbol.symbol.haloSymbol" should contain. Can you advise me how to achieve ...
0
votes
2answers
35 views

Conditional labeling in ArcMap using Python Parser

I am using ArcMap 10.8. I have 2 attributes: Toponym and Type. Toponym gives the name Type indicates if it is a city, town, church, etc. In English, I would like if Type = town, then capitalize ...
0
votes
0answers
12 views

Exporting a polyline as KML from AutoCAD and already renamed to its corresponding attribute name

I have multiple closed polylines in AutoCAD with corresponding lot names. How would I go about exporting these polylines and convert them to KML with their names edited to their correct lot names? For ...
1
vote
1answer
21 views

Showing label if greater than percentage using Arcade with ArcGIS Pro

I have a text field called PerVax1 that has percentages. I want to create an expression that labels the features when the field has a percentage greater than 30%. Here's some things I've tried so far:...
12
votes
1answer
7k 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....
6
votes
6answers
1k views

How to place labels in the top left corner of every polygon?

I'm trying to label the polygon boundaries instead of an anchor point. Not sure if this is possible. For this example I wish to label these numbers in the top left corner of every polygon.
2
votes
3answers
3k views

Trim symbology label decimal places when using Arcade in ArcGIS Pro?

I have an issue trying to symbolise a layer with graduated symbols using a custom expression: I am limited to using arcade/there are no other languages in the drop down which I don't believe should ...
5
votes
7answers
7k views

How to get rid of double labels on ArcGIS 10

I'm displaying several point shapefiles. I want them all labeled with the field "ident" which is a 3 digit number starting at 001. Two of the three shapefiles show the labels correctly but the 3rd ...
2
votes
0answers
40 views

Getting label geometry using PyQGIS 3

We need to get LabelGeometry from a feature. There is such a class QgsLabelPosition, it sets parameters. I need to get the parameters of the bounding box label. Version QGIS 3.16.4
0
votes
1answer
474 views

“No module named numpy” Python Error in ArcGIS Label Expression?

I have developed code to label points that pull formatting from a dictionary. I developed this code and it was working fine two weeks ago, today I try to open my map and I am now met with an error ...
1
vote
0answers
104 views

Doing Tabular Labels (Chemboxes) [closed]

I have a project manager who really wants "chemboxes", basically labels/callouts with tabular data. I've been using an older vbscript labeling expression, but they want something that is ...
8
votes
3answers
212 views

Labelling features by multiple attributes in QGIS

I am a fairly competent QGIS (3.14) user but really struggling with a particular labelling issue. I want to create attribute-based symbols/labels based on multiple attributes for a single point, but ...
1
vote
1answer
35 views

Why are the labels not displaying the correct (virtual) attribute values?

I have a polygon and I create a new field area_ha using this expression in the field calculator: round( $area /10000,1) When I use that field for my labels, everything is fine and works as it should ...
0
votes
0answers
19 views

Changing label color when printing by each line using ArcGIS Desktop

I am using ArcGIS Desktop. When I print the map, I want to show more than one feature of the element under its dimension, but in different colors. For example, the first line should appear in blue and ...
3
votes
1answer
85 views

Why do I lose label positions in QGIS?

I like to work with the label toolbar in qgis, because it is intuitive and I can place labels manually. However, I lose the position and rotation of labels very often in my cartography workflow. That ...
0
votes
0answers
23 views

Fixed Decimal Places

Zurich 3.81 Imported photo with metafile into project. Set display label to show Attributes Lat and Lon coordinates. Set the decimal places to 8. All worked fine except some of the Lat/Lon fields when ...
7
votes
3answers
328 views

Remove leading zero from a string in QGIS

How can I in QGIS through expression calculator remove the 0 leadings from a string? 09 -> 9 0150 -> 150 09850 -> 9850 054a23 -> 54a23 5837 -> 5837 Something like the example above.
2
votes
1answer
23 views

Arcade Expression for Label Halo Color

I am trying to label Census Block Groups and Tract ID for the block group feature layer. I would like to label them using different color halos. Is there an arcade expression that will allow me to ...
4
votes
1answer
48 views

Label neighbouring features in QGIS

In QGIS I'm trying to label the neighbouring features of a certain polygon but not getting much success. All the features are inside the same layer named MG_Municipios_2020. I'm using the Rule-Based ...
2
votes
2answers
33 views

QGIS length & scale dependent curved label visibility

I have my labels set on curved. Unfortunately quite often happens, that the curved label remains not visible because my line is too short on the map. I can't make my map larger, because I need some ...
1
vote
2answers
48 views

Showing marker symbol even when no value in field using QGIS

In QGIS, I have been learning a few expressions to style my trail maps but still know little and am stumped on what to use to filter my symbol data. I am showing Parking locations on my map. I use a ...
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", ...
1
vote
1answer
188 views

Add leading zeros to data frame label

This is in ArcMap 10.0. When using data frames to label UTM coordinates, I'm sometimes asked to add leading zeros (e.g., 590 would become 00590) to the tick or line labels of the data frame. I'd ...
1
vote
1answer
462 views

Labels overlapping annotations in ArcMap 10.6

I came across this issue regarding labels overlapping annotations in ArcMap 10.6 (picture left) where they don't overlap in 10.5 (picture right)... What am I missing? I simply opened the mxd in the ...
1
vote
1answer
52 views

Adding labels after meeting a zoom threshold in Leaflet

I'm making a map in Leaflet and I have up to two labels per marker: var redIcon = new L.Icon({ iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red....
1
vote
1answer
52 views

Iterating through QgsFeatures in active layer and adding label using PyQGIS

I am trying to plot contours that are stored in a shapefile (linestrings) with labels that have their value. I know how to get the feature attribute I want in Python via: name = "MSLP" ...
2
votes
0answers
34 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
vote
1answer
215 views

Label not showing in QGIS 3

I created a line by importing a delimited CSV file and the line appears fine. I can add a label on the line by using the "begin" or "end" attributes but not the "Name" ...
0
votes
0answers
21 views

Changing stacked labels new line character to other than comma using ArcMap

Trying to execute some stacked labels with little bit of Python from the examples given here: https://desktop.arcgis.com/en/arcmap/10.3/map/working-with-text/about-building-label-expressions.htm The ...
7
votes
3answers
450 views

Vertical text direction in QGIS

I have some Chinese labels to display on a map and I want them to be vertical, as the picture shows. In another word, I want to rotate the label while keeping each character upright. How could I ...
4
votes
4answers
86 views

Multi Labelling with missing values in QGIS [duplicate]

The code for multi labels eg.: Field1 || '\n' || Field2 works fine, unless you have a missing value (NULL) in one of your fields, in which case QGIS doesn't show any labels at all (for the specific ...
0
votes
0answers
43 views

Changing labels from external CSV in QGIS

I got my hands on a TopoJSON map that unfortunately uses a mix of names for the polygons, sometimes the official name, sometimes not (English). I do, however, have the ISO3 code, which is great. I ...
1
vote
1answer
887 views

Labeling expressions on AGOL with Arcade for certain features

I am working on a web map in AGOL for the indoor office map. I have some issues writing custom expressions with Arcade in order to label the types of rooms (office rooms) based on another attribute ...
5
votes
2answers
89 views

QGIS Excluding One Variable from Labels

I am currently labelling a roads map and need help removing the labels for a specific "type" of road. I apologies for my terminology but I am new to the program. In my attributes table I ...
5
votes
0answers
48 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 ...
0
votes
0answers
14 views

How to show labels for dynamicLayerInfo in ArcGISDynamicMapServiceLayer

Does anyone know how to show labels for dynamic layers I have used below code for show dynamic layers which is working fine and now I have to display labels for that dynamic layers. var dataSource ...
0
votes
0answers
14 views

Automatically labeling layers according to raster characteristics

The question is oriented more towards end user and came up during the preparation of field maps, which have to show previously mapped biotopes and their ID on an aerial image. The map is used to ...
3
votes
1answer
2k views

Using Label Expression with Text Formatting Tags and Ampersand

I am using a Label Expression to label a parcel layer. The expression is: "<FNT name=""Arial"" size=""12"">" & [Owners_Nam] & "</FNT>" This works correctly for some labels, but ...
0
votes
1answer
58 views

Label appears completely different in Layout-view than in exported image in QGIS using maptiler plugin

I'm using the maptiler vector tiles plugin in QGIS to have a base map that I can style a bit. There is a problem however. I'm seeing this in the layout-view: I don't like that the line to the ...

1
2 3 4 5
38