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.

6
votes
0answers
82 views

Show Symbol (e.g. City-Marker) only when an associated label can be displayed

I'm building a map for a certain region with many cities to be displayed. Some of the smaller cities should only be displayed if they don't overlay bigger cities. While the labels of the smaller ...
5
votes
0answers
129 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 ...
5
votes
0answers
103 views

Issues with atlas generator and labelling across maps/images

I have a lot of layers in my project and I am trying to use the atlas generator in the print composer to create a tiled map. Some of the layers have labels which have different configurations with ...
4
votes
0answers
95 views

Reproducing Paper Results for Land Cover Mapping of Satellite Imagery?

I am interested in training a neural network to perform pixel-based classification for land cover mapping of satellite data. In order to learn more about this interesting field I am trying to ...
4
votes
0answers
247 views

Avoid duplicate labels on river sections and choose placements

I am trying to label rivers's names. The rivers include multiple sections. I have many repeats like "fleuve Loire ". How to avoid labeling repetition? "Merge connected lines to avoid duplicate ...
4
votes
0answers
134 views

Creating labels with table style

Hello I'm trying to create a label in QGIS that is formatted similar to the "table" styled yellow labels in the photo below. The attached image was from a map created in AutoCAD. I would like the ...
4
votes
0answers
261 views

How do I limit the number of labels for similar objects in QGIS?

I'd like to reduce the clutter in this map by limiting the spacing or number of times that a particular label can appear. For example, the label 'US 15' should not appear within some set distance ...
4
votes
0answers
75 views

Center my contour values in QGIS

In QGIS have an issue with my contour value labels being pushed to the edge of my map, instead of lining up at the center where they seem to have more space. Does anyone know why this happens for some ...
4
votes
0answers
339 views

Rule-based labeling and the Data defined placement options are not working together (QGIS 2.12, 2.14)

After setting "Rule-based labeling" to my layer (new feature since QGIS 2.12), my data defined labeling is not working any more (see labeling tools on the right side): Going back to "Show labels for ...
3
votes
0answers
165 views

Change default label font for styling

Where can I change the default labeling font "MS Shell Dlg 2" to a different one? I don't want to change the default layout font (Options --> Generel Settings) Maybe there is a solution to use the ...
3
votes
0answers
306 views

Removing duplicate labels in QGIS3

I have a layer (streets) where I want to remove duplicate labels and then set a display interval for the labels. This is relatively easy in ArcMap because removing duplicates is based on the label ...
3
votes
0answers
142 views

Using attributes for output filenames in QGIS Process Modeler?

How can I use process inputs (eg: Table field) inside an expression for an output file when using Process modeler? I have a process which outputs a raster, whose output filename should be the value ...
3
votes
0answers
168 views

Connectors do not appear automatically in easy custom labelling

I'm using the easy custom labelling plugin in QGIS 3. When I move a label away from its associated polygon a connector does not automatically appear as in QGIS 2.18. How do I get connectors to appear ...
3
votes
0answers
78 views

Label only features that intersect a specific line

hello I have two lines layers in QGIS line1 and line2 with field my_field(line1) and label(line2). I have a global project variable label_filter=one now I want to create a base label rule,first I ...
3
votes
0answers
171 views

Orientating Contour Labels Uphill in QGIS?

I'm quite new to QGIS and I'm trying to style topographic contours. I have managed to style the lines the way I'd like but I'm having trouble with the line labels - I can't style them so the labels ...
3
votes
0answers
75 views

More than one QgsPalLayerSettings for a layer

Can more than one QgsPalLayerSettings object be defined for a single vector layer? For a line layer, I would like to put some text above the line, then some text below the line, not sure if this is ...
3
votes
0answers
143 views

Line should be invisible under label

I am creating a sea chart. The sea chart has ships lanes in a line layer. In the same layer, the safe depth of the ship lane is found in a column. I want to use this safe depth as a label on the ship ...
3
votes
0answers
121 views

Avoid multiple labeling in qtiles / QGIS

After failing to start the slippy map tiles generator .py module (where to put globalmercator.py...?), i tried this plug-in. How can i set qgis(2.14), to not move labels, as the tile generator moves? ...
3
votes
0answers
165 views

PyQGIS map rendering export shows no map labels?

I'm trying to learn a little bit of Python in QGIS with the following tutorial: QGIS Maprendering. Now the tutorial works, with minor adjustments. In QGIS I have four layers, and one them is showing ...
3
votes
0answers
39 views

Which FOSS label engine that supports shrink to fit label in polygon?

I've not found a way to label features using shrink to fit label in polygon, i've tried Qgis, and searched on Geoserver, Mapserver and Mapnik, none of them supports this feature, i'm looking for any ...
3
votes
0answers
793 views

Showing dimensions on polygons in QGIS?

I have a shapefile that contains all of the property parcel lines in King County, WA. We are currently displaying this data through mapbox on our site with no issues. We would like to be able to show (...
3
votes
0answers
67 views

How to display features only if labels are displayed?

In my maps there are several point layers, and each layer has a different labelling rule and priority. Sometime the point density is too high and the labelling engine is not displaying some labels, ...
3
votes
0answers
916 views

Is there any way to create a legend from label classes or annotations in ArcGIS 10.2.2?

I have a single "geonames" layer with 56 label classes and another few layers with around 10 label classes. Each class has a different font and colour or graphic. I would like to add most of these ...
3
votes
0answers
507 views

Annotation/Label size adjusting to map scale in QGIS

I'm trying to label the street names for a map I'm working on but I do not want the labels to automatically adjust to the map scale when zooming in or out. My question is: In QGIS how do I set a fixed ...
3
votes
0answers
2k views

How to display ONLY local country names in google maps?

I am using google maps in an application where it is important that country labels display the country name in the local language. If you pass in certain language parameters that google maps ...
3
votes
0answers
2k views

Arrow flow lines from a contour map

using QGIS (or even GRASS) is it possible to label a contour lines shape with arrows that indicate the flow direction? Briefly: I have a point shape with elevation values. I make an interpolation map ...
3
votes
0answers
270 views

SLD - disable follow line

I have a simple SLD style using in GeoServer v2.3.0 and testing in uDig. I have a interstate symbol that I do not want the label symbol to follow the line. I thought if I set: <sld:VendorOption ...
2
votes
0answers
50 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 ...
2
votes
0answers
62 views

Problems with latitude/longitude grid in QGIS 2

I try to produce a thematic map in QGIS, like this one done in MapInfo: I want to do this in QGIS. I work in projection "Albers-Siberia" projection ( PROJ.4: +proj=aea +lat_1=52 +lat_2=64 +lat_0=0 +...
2
votes
0answers
164 views

Changing the label color with the Expression Dialog in QGIS 3.4.1

I want to separate two labels and then coloring each one separately, using QGIS 3.4.1. So, I was trying to color a label within the Expression Dialog. However, I could not figure out how to wright the ...
2
votes
0answers
48 views

Using Python nested if statement for labels in ArcMap?

I am trying to use python to write a label expression that will display a specific set of labels based on nested if statments. The expression should result in a 4 line label if the value is greater ...
2
votes
0answers
63 views

Missing feature labels stored with QGIS auxiliary storage

Using QGIS 3.x, I appended new features to a PostGIS feature table for which I had previously generated and modified labels stored in auxiliary storage. No labels are placed for these new features ...
2
votes
0answers
148 views

LegendGraphic and Label placement

I have to style some Rasters with SLD and get the legend from Geoserver to show it in my webapp. By default, labels are placed right to the Color Ramp. Is there any option, by using SLD or maybe any ...
2
votes
0answers
57 views

QGIS crashed when using labelling function

I am using QGIS 2.18.2 on a MAC OS Sierra. Every time I try to "show labels for this layer" in the layer styling window, my program crashes as soon as I define the layer (by selecting "label with"). ...
2
votes
0answers
262 views

Label only one polygon in canvas/map view per category/value in attribute table

Question: In QGIS (2.18), how do you show only one label per field of view in the map canvas for each visible category (that is displayed in the map view/canvas at any given scale/focus) of a multi-...
2
votes
0answers
329 views

Dynamic Label or Annotation in QGIS canvas

I'm creating an animation from several Raster images, and I'd like to add a label or an annotation to the map canvas, not the print composer, that will enable me to show the layer's name, which holds ...
2
votes
0answers
71 views

Label edits disappear upon saving?

I am trying to label a map I'm creating in QGIS v 2.8.9. I'm using data defined labeling to both manually place and rotate labels. I've created the required fields (X, Y, and Rotate) all as decimal ...
2
votes
0answers
184 views

Specify position of curved label in QGIS?

From this answer in 2012 underdark stated: BUT you won't be able to have curved labels anymore if you move/rotate the labels manually, as far as I know. It's now 2016, and I noticed that I can ...
2
votes
0answers
76 views

Save rule based lables to new attribute in QGIS

Is it possible to save/export rule based lables in QGIS to a new attribute?
2
votes
0answers
196 views

How to get road labels on Stamen Watercolor basemap in Cartodb

basic question here. I want to use the Stamen Watercolor basemap on CartoDB, but want the road and locality labels displayed on it, as at http://openlayers.org/en/latest/examples/stamen.html?q=...
2
votes
0answers
145 views

How to get the name of the layer on a map composer with a single layer?

I tried layer_property( 'layer', 'title') I would like to return the current layer from the map instead of 'layer'. (or list of the layers on the map?) Doesn't seems to works with layer_id or ...
2
votes
0answers
1k views

Forcing labels to not overlap in QGIS?

Is there an expression that can be used to force labels to not overlap specifically when there are more than one label per point. I have a map that has over 1000 school names and I am printing it on a ...
2
votes
0answers
145 views

How to Avoid that Label Covers Icon?

I'm trying to render both house numbers and icons for sirens on a map in QGIS. Now I have added two layers with siren nodes and building outlines, the siren layer being above the buildings. In the ...
2
votes
0answers
216 views

Reflecting expression based label format in QGIS composer legend?

I successfully formatted a label background color based on a CASE expression (linked to the Border color property): CASE WHEN "NextStep" = 'closed' THEN color_rgb(0,0,255) ELSE color_rgb(255,0,...
2
votes
0answers
291 views

Placing a label based on a point's location within a polygon

I have a polygon dataset and a point data set with occupants. I need to label the occupants of the house within the polygon and need the label to show up on the side associated with its polygon. ...
2
votes
0answers
230 views

Placing road labels only at map edges and road intersections in QGIS

I want to place road labels only near the map edges, and where roads intersect - as depicted by the red X's in the image. Background: I've seen the military do that in their topo maps, and I think it'...
2
votes
0answers
243 views

QGIS 2.8.2 - Using spatial expressions in labelling

I'm creating some hard copy map output from QGIS. I want to use an expression to suppress labels for some features on a layer when another feature from another layer intersects with those features. ...
2
votes
0answers
355 views

QGIS, How to label a layer in different font sizes, shrink to fit in polygon or a multiple line label?

I am just trying to figure out how to label a polygon layer to fit its size in QGIS. or if its very long title should break in line and scale, i did some research but couldn't find anything helpful is ...
2
votes
0answers
56 views

In version 2.4 vector layers with labeling switch off caching

I am developing a map display stand alone application using the C++ API. With version 2.6 the caching mechanism is ignored for vector layers with labels. The reason is to avoid conflicting labels. ...
2
votes
0answers
97 views

Labels with buffers creates bloated PDF file in Composer

I know this question has appeared before, but the earlier questions appear to be linked to the old labeling engine. I'm running qgis 2.0, which I thought uses the new-generation labeling engine. In my ...