Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

7
votes
2answers
78 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
20 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
27 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
15 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 ...
0
votes
0answers
16 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
35 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
36 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 ...
4
votes
1answer
79 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(...
1
vote
0answers
50 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/...
2
votes
1answer
27 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....
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
37 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
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 ...
6
votes
3answers
197 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
13 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 ...
1
vote
0answers
28 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 ...
0
votes
0answers
18 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?...
4
votes
4answers
161 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 ...
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
19 views

Difference between Priority in the Positioning dialog and Z-Index in the Rendering dialog in QGIS

I studying the layer labeling options in QGIS and encountered two options which seem to be the same. If I understand the QGIS documentation correctly, the option "priority" within "Positioning" ...
0
votes
1answer
31 views

1:n relations in label expressions & general syntax

I've got a colleague who wants to create a (concatenated) label based on a 1:n relation between some shapes and related tables. They asked me if this was possible in QGIS - and I think it should. I ...
0
votes
1answer
34 views

Capitalizing and changing font/color in Label Expression using Python Parser of ArcGIS Pro?

Currently Using ArcGIS Pro 2.3.2 and Python. I am currently trying to label Road names, which are all uppercase in the database. I'm unable to edit the database but would like to Capitalize the road ...
2
votes
1answer
46 views

Import labels into QGIS

In ArcGIS, when I want to Label my layer, there are a number of label styles I can choose from. I would like to have that Feature in QGIS as well. For example, when I label my layer in a certain ...
1
vote
1answer
14 views

Including rotated label alongside stacked label in ArcMap?

I am trying to replicate the label that I have attached an image of. Is this possible in ArcMap? So far I have stacked 3 labels but am unsure how to: Create 3 individual boxes around the stacked ...
1
vote
2answers
104 views

OpenLayers: Keep text style label in visible polygon area

I have a feature with a polygon and a text attribute. The text attribute is displayed via a text-style above the polygons center. Nothing special and so far so good. The current behavior: I can move ...
0
votes
1answer
27 views

How can I extract the coordinates from one layer and import them in a diferent layer when key field is the same?

I'm working with 2 different layers. First one is a csv file with 3 fields. Name, longitude and latitude. Second is a text file with the field name. I want to assign the longitude and latitude ...
3
votes
1answer
48 views

QGIS 2.18 label by expression concatenate field strings

For a building layer I have an attribute table with several fields for the building type where data was entered with a manually created form using checkboxes. Example: Production: 1 = (yes), 0 = (no) ...
1
vote
0answers
29 views

Aligning font when rotated using QGIS?

I added a label in the print composer of QGIS (3.6). I rotated the label, but then the font is no longer aligned to a common line. I think it is stair-stepping where the letters go, perhaps snapping ...
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 ...
0
votes
0answers
16 views

Using alternate glyphs/stylistic set with label font in QGIS?

I am using a non-standard font for my labeling in QGIS (the font is jost*, modeled on Futura), and would like to use one of the alternate stylistic sets. It's easy to do this in Word. Is there a way ...
0
votes
1answer
21 views

Adjusting symbology in layer file?

I have a layer file for a geology layer containing attributes for "Age", "Rock Type" and "L_Code". The layer has symbology defined using the "L_Code" attribute. But I want the same symbology applied ...
2
votes
0answers
17 views

QGIS globe map - label distortion [duplicate]

I have created an azimuth orthographic projection map (basically a globe, I've used this custom CRS: +proj=ortho +lat_0=51.470129 +lon_0=-0.452751 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs ...
1
vote
1answer
53 views

Automatic sheet size in text label in QGIS

I'm in Print Composer and want to develop a template. In that template, I would like to add a text Label which automatically represents the size of the sheet in the format "Sheet size: 841x1189". ...
1
vote
0answers
62 views

QGIS to .DXF export: labels do not appear

I have been trying to export a shp layer in QGIS 2.18 to dxf with some labels using the export to DXF tool included in QGIS, but somehow, the labels won't appear on the export. I have tried changing ...
2
votes
1answer
63 views

QGIS 3.6 - Label layers turning black

I have a project where I am making a lot of rule based labels from a polygon layer. The layer is saved as a shapefile (like the other label-layers (point and linestrings). All other layers in the ...
6
votes
1answer
74 views

Label callout lines to the closest point on the label

I am trying to improve callout lines on maps I'm making. I'm currently using the method in this link to make my callout lines. That works fine, bu I'd like the lines to always go to the closest point ...
1
vote
1answer
23 views

Maplex label engine

I'm currently going through the GIS 20 essential skills book where I have to fix labels. I have changed the setting from simple to Maplex and now I couldn't figure out how to assign buffers to label ...
0
votes
0answers
53 views

Symbolising with one expression and labelling with another using QGIS?

I'm wondering if it is possible to categorise layers in QGIS using one expression but label it using another? I have several layers based on the same dataset but clipped so they have different areas. ...
4
votes
1answer
67 views

Labeling polygons with the number of related table entries in QGIS

Using QGIS 3.6.1 I have a layer with areas and a table with entries related to the areas: A relation is defined like this: What I would like to achieve is to label the areas with the number of ...
1
vote
0answers
35 views

Labelling layer not from attribute fields QGIS API v2.14?

How to label vector layer with my own values that aren't stored in the attribute fields?
1
vote
0answers
20 views

Convert Large Number of labels to annotations in ArcGIS

I have Parcels counting to approximately 35000 for which I want to create feature linked annotations. But when I am ready with all the symbol and labelling properties and right click the layer to "...
1
vote
2answers
65 views

How to make labels in a fixed position for a road layer in QGIS 3.2 [duplicate]

I am working on a road layer containing hundreds of roads and want to print it out in a A2 size with all labels. I want the labels to be fixed in the original position and not depend on scaling of the ...
0
votes
1answer
178 views

Leaflet: Canvas Text Labels

I have some text labels in Leaflet which I'm building from JSON data using L.divIcon. They're looking like this: lbl_coord = feature.properties.coord; lbl_text = L.divIcon({ className: /*...*...
2
votes
2answers
125 views

Filtering out labels surrounding active feature in Atlas

Let me put it this way, if I’ve tried data-defined rendering and the common featureid expression and it’s still not working - and I think one or both options should - what basic thing could I be ...
0
votes
1answer
24 views

Using dynamic label to give all results in capital letters?

I need this dynamic label to give me all the results in capital letters: [dyn type="page" property="attribute" field="Predio" domainlookup="true"]
1
vote
1answer
53 views

Moving point labels on vertices inside of polygon

What I'm trying to do is to label vertices of a polygon with a number and plot that number inside the polygon. So far I extracted the vertices to a 2nd point layer. Named them correctly and plotted ...
1
vote
1answer
37 views

Rule for labeling ways not being part of OSM relation in QGIS

A brief overview of what I want to achieve: Create a map showing all cross-country ski trails in a specific region with some customizations/styling on them. The data come from OpenStreetMap ...