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
0
votes
1answer
56 views

Python 2.7 stand alone script for compounded with statement. Errors 'column specified does not exist - but it does

I'm writing a standalone Python script to use for labeling ArcMap 10.7 data. (Want to avoid label expressions for portability, etc). I'm attempting to use ID attribute to label based on ADMIN_ORG ...
6
votes
2answers
5k views

Force all labels visible in GeoServer

How can I force all labels to be visible in GeoServer I have tried with both <VendorOption name="conflictResolution">false</VendorOption> and <VendorOption name="spaceAround">-1&...
3
votes
1answer
78 views

Labelling each single diagram sector with value in QGIS

I'm working with QGIS 3.10, using the diagrams function for vector layers. Is it possible to label each single diagram sector with an attribute / calculated percentage? I read this article: Label QGIS ...
6
votes
2answers
180 views

Removing two letters only if they appear at end of a field in QGIS labels

I am trying to remove the letters 'a' and 'o' only if they appear at the end of the field 'name' while labeling. For example, I'm working with names like: Ontario, Manitoba, Alberta, Quebec, Nova ...
2
votes
0answers
24 views

Labels not rendered at all scales of map composer, QGIS 3.10

Like the title states, my labels aren't rendered at all scales of the map composer. This makes it very difficult to move and position them since I can't always see where they are. Exporting the map ...
1
vote
1answer
49 views

QGIS hide labels in layer panel

I have a line layer with a rule-based symbology. For every rule I use a marker line. Can I hide single labels in my layers window? I don´t want two of the same labels. And I don´t want the markerline ...
2
votes
0answers
79 views

Multi-line and Multi-labels formatting in QGIS

I am trying to apply different text formatting (bold and italics) to multi-line labels in QGIS. I tried HTML tags as seen below, it show what I wanted in the preview below but it deosn't work on the ...
5
votes
2answers
1k views

Rule-based labeling using Atlas

Does anybody know how to only label features of a shapefile that are inside of another shapefile's features used as coverage in Atlas?
7
votes
1answer
144 views

Changing blending of contour label to multiply

I would like to label my maps like these in QGIS (image created using Photoshop): Image of contour label being shown on the contour lines with with white halo and then the colored raster layer above ...
-1
votes
1answer
173 views

Changing label placement (anchor point) using ArcPy?

arcpy let user automatically turn on the label, use label expression to save our time. is there a way how to change the position of the label like we use to do on label properties like screenshot ...
0
votes
0answers
49 views

Placing a label above a feature in 3D/Scene using ArcGIS Pro

Is it possible (using ArcGIS Pro, 2.5.1) to manually or by derived extrusion (i.e. from a DTM) set the height of a label to sit/float above a feature? I see you can use an extrusion but that requires ...
9
votes
3answers
5k 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 ...
2
votes
2answers
792 views

Values on top of each bar of a histogram in QGIS

Is it possible to show the values on top of each bar of a histogram created with QGIS? (I am using QGIS 2.18) I know this post [Is it possible to label bar charts? addressed a similar question years ...
3
votes
1answer
64 views

Labeling only maximum value when zoomed out or print in smaller scale

I would like to prioritise the maximum values to be shown on the map. In other words, when the label collides it should drop out the minimum values. In the shown examples, I would like to have ...
3
votes
2answers
17k 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> ...
1
vote
0answers
24 views

QGIS 3.4.11: Labels disapear from map when exporting as picture from the print composer

My question is basicly how to solve the issue mentioned in the topic. I have a map, where labels (city names) are visible both in the project and in the print composer. But when I export the map as a ...
0
votes
2answers
70 views

Labelling polygon with multiple values from Attribute table

What is a good way to put a list of names in one polygon feature? For example, I'm creating a County Facilities layer. There are cases when you have multiple departments in the same building. I don'...
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 ...
10
votes
2answers
9k 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 ...
1
vote
1answer
22 views

How to combine labelling with limited boundingbox when plotting a geodataframe

I am trying to plot a limited boundingbox of my geodataframe setting up some x and y limits to the ax. Everything works but the labelling. This is my piece of code and current result: fig, ax = plt....
6
votes
2answers
2k views

How to turn on/off all labels of all layers in QGIS

I would like to turn on / turn off all labels of any layer by one klick. Like you can do in ArcGIS according to that post: Is there a way to turn off all labels in ArcMap without clicking on every ...
0
votes
1answer
35 views

Overcoming zoom level problems for layer offsets in QGIS

In this question I was able to align some labels with polylines representing hectometer points along a railroad. I did this using custom expressions in the "data defined" portion of the labelling tab ...
2
votes
4answers
229 views

How to customize polyline label offsets in QGIS?

I have a polyline layer in QGIS representing hectometers along a railroad. I have added labels to this layer representing the hectometer number: However, the project I am currently working on ...
1
vote
2answers
130 views

Manually moving multipart label results in disappearing labels

When I attempt to move a multipart label, all of the labels except for the one I am moving disappear. For example, when I move the lower "2-C" label (Figure 1) the upper two "2-C" labels disappear ...
0
votes
0answers
54 views

Wrongs values returned using the Expression String Builder from the legend items

I want to use the Expression String Builder from the legend items in order to label items with another field. The legend has to be dynamic because I'm using the "Topological coloring" algorithm with a ...
0
votes
0answers
26 views

Force to Display All the Trail Names on a Map in QGIS

I have been testing ways to force all the MTB trail names to be visible on an OSM map I am styling in QGIS. I can see them as red unplaced labels and there is room on the map to display them yet they ...
8
votes
3answers
1k views

Suppress same label from different features QGis

Is there a way to suppress same labels from different features other than merging the features or manually deleting the labels? As you can see in the image below, I have multiple lines with the ...
5
votes
2answers
3k views

How to show labels of overlapping points in the same layer in QGIS?

If there are 2 points on top of each other in QGIS, only one of them will be labeled How to make it so that both (or more) points show a label?
1
vote
2answers
195 views

Connect multipart polygon with lines to one label

I have several one-part and multipart polygons that I want to label. I Set X and Y values to move the label to a certain position and want to connect the label to the polygon using the following ...
0
votes
1answer
60 views

Getting elevation data from DEM

I'm trying to extract elevation data from a DEM file but I can't make it work. I want to extract contour lines from a given area, and label those lines with the proper elevation value. The problem I'...
3
votes
2answers
98 views

Leader lines that only appear when labels is at a particular distance from point

Is it possible to build an expression (or set the style) so that it will not generate a leader line when a label is within x-distance of a feature, but will generate a leader line when a label is ...
-1
votes
1answer
28 views

How to label line features dynamically with its length? [closed]

I need to label a line feature with its length dynamically so the displayed length will be updated as I edit the line geometry. Is this possible in either QGIS or ArcGIS?
0
votes
1answer
22 views

Labeling feature class using ArcMap

I work with ArcGIS Desktop (latest version). I have a feature class called "space" that should be labeled. The label should look like this [room number] + "/ n" + [person] (python). But my problem is ...
4
votes
1answer
191 views

Preventing labels from overlapping in ArcMap?

Im trying to prevent a mxd that has cluster of lables from overlapping these labels. What options do i need to select to ensure this? Labels have a prefered offset with a 500% Max offset. I have set ...
0
votes
2answers
31 views

Labeling just a few specific features within a point dataset [closed]

I have a dataset with 95,000 points/features in and all I want to be able to do is label just a few specific features! I have worked out how to label individual ones using 'Rule-based labeling' and ...
4
votes
1answer
131 views

Group points by expression to create pie charts in QGIS

Is the any way to group multiple points by attribute to make pie charts that shows types by locations? I have a layer with groups of points with two fields (group and type). Every group of points is ...
3
votes
1answer
191 views

Line width and labels based on blended values of features sharing same geometry in QGIS

I want to appropriate line segments that share the same geometry with a particular line width and labels based on the aggregated values of one field "GIS@BUS_5_Min". My attribute table and polyline ...
0
votes
1answer
94 views

Rounding numbers in a Python Label Expression

I'm having trouble rounding a percentage number using a label expression in Python. Just displaying the label as shown below is fine. def FindLabel ( [Deaths], [PercentageDead] ): if ([Deaths]) ==...
24
votes
5answers
11k 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 ...
0
votes
1answer
83 views

Getting field value in Print composer label

I am using QGIS print composer. I have so many images to export with a specific label. The text of the label is existing in a field of a layer. I have tried to use this expression attribute( ...
0
votes
1answer
38 views

Adding delta symbol in field cell for shapefile in QGIS

I'm just trying to add a delta symbol to label a feature for a shapefile in QGIS. I do this by typing the label in the appropriate cell during an editing session. I've tried copying and pasting Δ and ...
1
vote
1answer
34 views

Save MapContent issue with latitude/longitude lines

All labels for longitude lines at bottom and latitude lines on left and right of the map look fine when viewed in JFrame like the one used in https://docs.geotools.org/latest/userguide/tutorial/...
1
vote
1answer
129 views

Latitude labels location on map

Following Label coordinate position of Grid lines explanations I was able to create latitude lines every 10 degrees with labels. The values of the latitudes are drawn following the prime meridian (0 ...
0
votes
2answers
34 views

Turn on labels for an ArcGIS dynamic MapServer layer

While I am generally knowledgeable about using the ArcGIS Server REST API to work with dynamic MapServer layers, this is the first time I have tried to turn on labels. Below is a call for a tile that ...
4
votes
2answers
682 views

Label layer as symbol colors with QGIS 3

Is it possible to label a layer using same colors as the categorized symbology of that layer? It is possible using the Rule-based labeling, but it can be difficult for a layer with many categories ...
0
votes
0answers
9 views

Remove or disabling an item from Places menu within Google Earth

How can an item from the Places menu be removed or disabled while still displayed on the map? For example: Remove the yellow "Simple placemark" from the Places menu while keeping the yellow pin ...
6
votes
2answers
1k views

How to add text on top of symbols for vector layers in QGIS

I read the QGIS 3.2 Changelog and saw a new feature to add text on top of symbols for vector layers. Does anyone knows how to do this?
2
votes
1answer
28 views

Clip text label in GeoServer

How can I auto clip text and append dots on a label if the current text is too long in GeoServer? Like in GoogleMaps: I only used AutoWrap option.
2
votes
2answers
604 views

How to set label font color using data defined property for PyQGIS 3?

Set label font color using data defined property in PyQGIS 2 is well established, e.g. in another thread However, PyQGIS 3 completely changed the way this works with no well documented examples. So, ...
0
votes
0answers
35 views

How to remove duplicate labels using ArcPy in ArcGIS Pro

I have a script that uses AddDataFromPath() to add a layer from ArcGIS Online that is regularly updated to a map in ArcGIS Pro. My script then updates and displays the labels using listLabelClasses(). ...

1 2 3
4
5
37