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.

3
votes
1answer
19 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?
0
votes
0answers
16 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
47 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
67 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
48 views

QGIS Label Expressions

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
35 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
1answer
36 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 ...
1
vote
2answers
25 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
137 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
105 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 ...
0
votes
0answers
22 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
29 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
17 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
82 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
19 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
46 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
37 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
12 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
27 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
35 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
62 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
38 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 ...
0
votes
2answers
91 views

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

I'm trying to use a label expression with ArcGIS formatting tags to create a shadow on my text. I've done everything I need except assigning a value of 1 to X offset and a value of -1 to Y offset. ...
2
votes
1answer
280 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
14 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
200 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
37 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
62 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&...
0
votes
1answer
111 views

Creating label with number circle and field “1v” in ArcMap?

How to create a label which combines a circle number and field "1v" in ArcMap? For example: I need, a line the labels. My code label expression is: Function FindLabel ( [TOTAL_VIV] ) FindLabel = "&...
4
votes
2answers
2k views

Quickest method to show/hide labels in QGIS 2.8

In order to show or hide labels in QGIS 2.8, I currently right click a layer, select Properties, then Labels, then click the checkbox to show/hide, then click OK. This seems like quite a long-winded ...
9
votes
2answers
364 views

one label for two-lane roads (osm, qgis, postgis)

I labeled my osm-lines-layer (PostGIS) with symbols for primary roads and motorways. While the symbols for the primary roads are well placed - with enough distance between each - the two-lane motorway ...
1
vote
2answers
5k views

How can I remove all the labels in a KML file but leaving the placemarks

I have around 4000 placemarks on Google Earth and have colored them red or green according to whether they qualify for a particular criterion or not. I have also given names to the placemarks ...
6
votes
2answers
182 views

How to show labels in curved pattern in QGIS?

When I am trying to show label of these roads parallel almost all roads are showing, but in curved type visibility of labels are getting reduced. How I can show all roads names curved to road? Using ...
4
votes
4answers
164 views

Placing data-defined labels both by expression and manually

In my project layers (QGIS 3.6.2) I use data-defined label placement. I am trying to set up the placement as follows: By default, the placement chosen in Label Settings is used (in my case, "around ...
9
votes
1answer
2k views

Prevent labels being cut off / clipped at edge of map

I've read a few other issues about trying to prevent labels from rendering if they run off the edge of the map canvas. This is particularly a problem in Composer, where I get lots of country labels ...
1
vote
2answers
97 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
0answers
19 views

Line to feature from label in ArcGIS Pro?

I want to have a line from each label to the features it labels. I am trying to a label a lot of features in a small space and need it to be clear which label coresponds to which feaure. How can I ...
0
votes
1answer
17 views

Are easements normally marked on county property maps? [closed]

There is a main gas line easement on the edge of our land, but the gas company is concerned about where the garden is. Would the line be marked well enough on a county map to say where the easement is?...
7
votes
2answers
6k views

Move label in QGIS?

I cannot figure it out to move Labels in an QGis-Layer. I added two columns (x,y) and set these columns as Data-defined-Position in the layer-properties as descriped in some (older) threads (e.g. How ...
2
votes
4answers
4k 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?