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

Turning one column to multiple columns in Attribute Table?

This is kind of a two-part question to see which route would be more efficient. I'm trying to display a label in a shortened version, but the info is all in one column: Township 1 South Range 20 ...
2
votes
4answers
15k views

Adding labels in Google Earth Pro?

I am preparing the map of Nepal with 75 districts using the KMZ file downloaded from global admin. I opened the KMZ file (NPL_admin3.kmz) in google earth pro. I produced the map, and also worked ...
3
votes
2answers
51 views

Using print composer name in a label

I want the title (a label) of my map in print composer to automatically contain the name I've given the print composer and also the date that it was created. For example I want it to say 'Really cool ...
0
votes
1answer
415 views

Showing contour line elevation labels in QGIS? [closed]

I have a contour map in DXF imported to QGIS. How do I turn on the elevation labels for each contour so they are visible. I thought I had done it by clicking on the layer and selecting properties > ...
2
votes
1answer
35 views

Rule-based labeling moved and overlapped

When I move my labels with the move label tool my double rule-based label is overlapping. I have tried to change the settings of its position but it is not possible to affect it once its moved. Any ...
0
votes
1answer
34 views

ArcGIS Pro Key Numbering in Legend?

I'm creating a map layout. One of the layers is a point layer of villages, and because of the scale of the map and the clustering of the villages, I think the easiest way to provide the name of the ...
1
vote
1answer
188 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 ...
2
votes
2answers
94 views

Setting X/Y shadow offset values to 1 and -1 in advanced text window using ArcPy?

I am trying to use a label expression with ArcGIS formatting tags to create a shadow on my text. I have done everything I need except assigning a value of 1 to X offset, and a value of -1 to Y offset. ...
0
votes
0answers
20 views

ArcGis Pro Expression in Appearance [on hold]

I want to write an expression in the appearance expression builder but it doesn't work. What is my mistake? if ['Regionen_RheinNeckar_Mieten.M2012'] > 3: value = ((['Regionen_RheinNeckar_Mieten....
0
votes
0answers
40 views

Some labels disappear depending on zoom (scale dependent vis is turned off)

for one layer I have an issue with a very few select labels disappearing depending on zoom level. See label "3" on the right in below screenshots. "Scale dependency" is inactive and "Show all labels" ...
4
votes
1answer
563 views

Making curved labels for polygons in QGIS?

I have been able to find answers on how to do this in older versions of QGIS, but can't seem to come across anything that deals with the latest installment. I need a way to make labels curve to ...
2
votes
1answer
5k views

Spplot labels in R how to change

Can anyone tell me how to change the labels in a legend created by spplot in R? It is a typical vertical ribbon legend automatically generated by spplot. Based on color, it is labelled 1-7 but I ...
0
votes
0answers
18 views

Labeling using ArcGIS for AutoCAD 370? [on hold]

I am trying to label my streets in AutoCAD using the Esri_PickLabel, but no labeling occur. Extension for AutoCAD = ArcGIS for AutoCAD 370.
5
votes
2answers
109 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?
4
votes
3answers
11k views

If-Then Label Expression

I'm trying to create a VB label expression on streets such that streets with an alternate name (ACS_ALIAS) will be labeled with the LABEL name and the alternate name in parentheses; streets with no ...
0
votes
0answers
23 views

Converting Python to Arcade in ArcGIS Online?

The following python expression can trim street addresses for labeling in ArcMap. I need to convert the expression to Arcade so I can retain the same labeling scheme when pushing my feature layer ...
0
votes
2answers
48 views

Specifying Resource Field For Labeling in ArcPy?

How do I specify which field acts as resource for labeling a layer using ArcPy? Following code is some settings that I am doing on a standalone ArcPy snippet and as you can see I added layer....
0
votes
2answers
72 views

Adding labels to a Carto VL visualization?

It was possible to add labels to polygon visualizations in Carto.js 3.x via the CartoCSS; is there a way to add them in Carto VL visualizations? From what I can tell, Carto VL doesn't have the ...
1
vote
1answer
51 views

QGIS Label Expressions [duplicate]

I'm trying to create a label that will show the following: MP 23.6 The "23.6" is a double type column in my table, the "MP" is the text I want to add in front of it of the number (milepost). I am new ...
3
votes
1answer
41 views

Setting a Background Color with RVBT field with python

I'm trying to set the color of a background of a layer. To do this i created an attribute "Color" with the RVBT numbers associate to each feature. As in the picture, i want to set the color with those ...
1
vote
2answers
27 views

Pixelated result using SVG as label background?

I have points that are labelled with a 2-digit numeric attribute, shown by default with a circle background (white fill, coloured outline of 1 map unit, buffer of 1 map unit beyond the label). I have ...
2
votes
0answers
17 views

Moving individual labels & rule-based labelling in QGIS

I have been playing around with labels and came to a problem. Hopefully someone can pinpoint whether I'm doing something wrong or there is a systemic hurdle in Qgis. Are you allowed to move labels ...
5
votes
1answer
142 views

Multi-field labeling of shapefile with PyQGIS?

I wrote the following code in order to draw the line labels with multiple fields. However, the label do not appear automatically in QGIS and I have to switch the "Layer Properties/Labels", and toggle ...
7
votes
2answers
112 views

Positioning multiple attributes separately in a label

I'm using QGIS I've got a basemap with the Texas landgrid for all of the counties in the Permian Basin. There are various attributes associated with the sections in the grid, but I only need 2 to ...
1
vote
0answers
28 views

If Then Statement, Python Label expression, ArcGIS Pro

I'm trying to create a Python label expression in ArcGIS Pro for a parcel layer where I only want to label the parcel when a street number in the Address field is present.If a street number is not ...
2
votes
1answer
32 views

How to set label color with setCustomProperty in QGIS2?

I can set most font properties like this: layer.setCustomProperty("labeling", "pal") layer.setCustomProperty("labeling/enabled", "true") layer.setCustomProperty("labeling/fontFamily", "Noto Sans") ...
1
vote
1answer
19 views

Label Boundary Placement in ArcGIS

I am using ArcMap 10.5.1, and I am having trouble getting my labels to draw somewhere besides the center of the map in layout view. I am using Maplex. The problem is that I have a polygon from a ...
1
vote
0answers
14 views

label-style preview in QGIS

When I want to load a layer style, I can open the layer properties and in symbology I get a list of styles I can choose from. On the left of each style I get a small picture that shows me a preview on ...
3
votes
1answer
1k views

Displaying trailing zeros to right of decimal in label using QGIS?

is there a way I can get zeros to show up in my label when they come to the right of a decimal in a number such a s 270.00? I'm trying to display two decimals in all my numerical labels, but QGIS ...
4
votes
1answer
87 views

Getting label feature with PyQGIS?

I need get the label text for each feature in a points layer. I can read feature attribute using: layer = QgsProject.instance().mapLayersByName('layer_name')[0] features = layer.getFeatures(...
0
votes
0answers
26 views

Changing date format for labels in ArcGis Pro with label expression?

I am trying to use an expression to convert my date field to a simple %d,%b,%Y format. Right now it is in "%Y%m%d %H:%M:%S %z" How do I do it properly using Python to do this in ArcGIS Pro? Q&...
1
vote
1answer
54 views

Setting placement labels on “Offset From Point” with OffsetX,Y parameters in PyQGIS?

I'm trying to set properties of QgsVectorLayer using QGIS 3. I want to put labels with "Offset from point" and define "Offset X" and Offset Y". I saw on the documentary that there is a class "...
1
vote
2answers
41 views

How to not show labels that are under polygons of another layer in QGIS 3.6.1

I am editing the polygon layer by adding new polygons and moving them to new locations. When I place a polygon in a new location I would like any labels from the two point shapefiles that happen to be ...
1
vote
0answers
51 views

Showing labels of feature on the edge of screen

My QGIS only shows labels on the center area. How to show labels of feature on the edge?
0
votes
1answer
13 views

QGIS 3.4 Saving Label Text Size, Placement, Wrapping, As Template

Is it possible to export & save formatted labels as a template in a file that can be opened in future projects? Ideally, it would save my manual label placement, text size, wrapped characters/...
0
votes
1answer
28 views

Labeling Ortolines with GeoTools

I want to add labels with geocoordinates on the grid of the map. I have previously asked you this question and you have shared some code with me (How can I label the coordinate position of the grid ...
2
votes
1answer
43 views

Getting label quadrant using PyQGIS?

How can I get the specified quadrant of a label using PyQGIS? The print statements below return 1 and 0 no matter which option I pick in the dialog. palyr = labeling.settings() print(palyr....
0
votes
1answer
72 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 ...
16
votes
2answers
14k views

How to create 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. How can I do it? please help me. My QGIS version is 1.8
2
votes
1answer
37 views

Using multiple colors for labelling that depend on values in QGIS?

I would like to do labelling like this (3 rows): Location_name Time People My csv has 5 features Location_name Time AM/PM People A/K Based on the value of "AM/PM", I want the ...
1
vote
0answers
50 views

Show/Hide labels of Vector Tile layers on button click

I have displayed vector tiles layers with "application/vnd.mapbox-vector-tile" format in Open Layers 3.While creating vector tile I have applied only image style. I want to display labels for existing ...
2
votes
1answer
281 views

Handling QGIS Data Defined Label Position on PostGIS Layer Null Defaulting to 0?

I just upgraded to qgis 2.2 from 2.0. In 2.2 there was a minor change to data defined label positioning at least when used with postgis layers. In Version 2.2 the labeling engine appears to be ...
2
votes
0answers
31 views

Labels location on print view way off IN QGIS

I'm having a weird issue with labels. I have two point layer files showing cities. They are both labelled using the same parameters (Around Point, 2mm from centre, etc.). They both show up fine in ...
0
votes
1answer
36 views

Preventing ArcMap from labeling when creating grids?

I am using the Create Polygon Grid Wizard to make a large number of grids. Is there anyway I can stop ArcMap from drawing the grid labels as they are created? It seems to take much much longer to ...
0
votes
1answer
16 views

Geonetwork overlapping labels

the labels in GeoNetwork are defined as: <element name="gmd:codeSpace" context="gmd:RD_Identifier"> <label>Namespace</label> </element> but the problem is we also have a ...
6
votes
3answers
214 views

Creating second map without labels using QGIS?

I want to remove the labels in the second, smaller map. So far when I switch off all the labels and refresh only the smaller map, of course, the labels are not shown. But it seems like QGIS updates ...
0
votes
1answer
40 views

Labeling Graduated Symbols in ArcMap?

I am looking to place labels showing the exact number associated with a graduated symbol. I have the labels, and the symbols, but cannot seem to get them placed in the same location. Can someone shed ...
1
vote
0answers
30 views

Why are the labels not showing when I load a .qml file in a standalone pyqgis script?

The first image is the final output that I have when I run my standalone script. The second Image shows the grid that I made and the sample labels that I want to put on my final output. I saved the ...
2
votes
1answer
63 views

Labelling contours within polygon using QGIS?

I have two layers, one which contains a polygon, and one which contains contours. Unfortunately, they have different projections. I want to label the contours with their elevations BUT I only want ...
6
votes
3answers
4k 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&...