Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
1answer
35 views

Creating label coordinates in a virtual columns in QGIS 2.18

I'm working from a database (PostgreSQL/ PostGIS). I created a view in QGIS of joined polylines from one table with the ST_union function. I want to label this polylines in QGIS. So, I created 2 ...
0
votes
0answers
28 views

Export vector layer with labels to Google Earth as kmz

I have a vector file with contours which i am interested to export it as kmz to google earth with labels similar to the ones QGIS labeling function produces. However I read that Google earth does not ...
-1
votes
1answer
39 views

Creating different label styles for different attribute in layer using QGIS?

I would like to create labels with different shapes in the same layer (like ellipse and triangle). Is it possible? I just read Creating different label styles for different polygon classes using ...
0
votes
0answers
49 views

Multi line rule based labels in QGIS [duplicate]

I have created rule based categories for my symbology, and I would like to have multi line labels to go along with these. At the moment, I have written some expressions for specific cases, in which a ...
3
votes
0answers
36 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
49 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 +...
1
vote
0answers
18 views

Labeling single road once per data driven page?

I am working with data driven pages and need to label a long road that spans multiple pages.and convert those labels to annotation. Is there a way for ArcGIS Desktop to treat each page as its own ...
2
votes
1answer
58 views

Strip map with horizontal labels in ArcGIS Pro

I've created a strip index page for my map series in ArcGIS Pro using the Generate Rectangles Along Lines tool. My problem is that the horizontal labels do not rotate with the map frame on the layout. ...
0
votes
0answers
30 views

Which label from different points inside a polygon is the most repeated

I have millions of points, each point with a label. These points are inside of different buffers (polygons). I want to create a new column that puts the value of the label that is repeated more time ...
0
votes
1answer
29 views

QGIS use layout name in styling expression

I have a .qgs file with a number of fairly complex styling rules showing the local Nordic ski trails. It has a single layout for printing on an 11x17 page. Until now the same PDF has been used for ...
3
votes
1answer
145 views

Labeling without intersect geometries in QGIS?

I have a polygon geometry and I have some points that are its vertices. QGIS 2.18 changes randomly the position of labels. When I choose 'outside of symbol' option, labels are showed outside of point ...
0
votes
0answers
19 views

Expression labelling to annotation - ArcMap to CAD

I have point feature layer (more than 100). My task is labelling that point and convert annotation (I use ArcMap) then export that to DWG format I use this script to labelling : mxd = arcpy....
0
votes
1answer
31 views

arcpy - decimal value for labelling

i have field named (depth) in feature class (point) with this spec : float - 5 digits >>> 0.7186 or 0.9695 i create new field named (depth_new) with field calculator : round([depth],1) the ...
0
votes
1answer
25 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
2answers
30 views

How to label features based on categories in the attribute column of ArcMap?

I have the below shown attribute table: I would like to label the features with the name for the points under the category 'AMN' only as shown in the last column of the above figure. Can anyone ...
0
votes
0answers
33 views

label expression eror - arcpy

I want to use arcpy to turn label on, for all of my layers in current mxd with label expression VBscript I use this script with simple label expression and it works mxd = arcpy.mapping.MapDocument("...
2
votes
1answer
35 views

Getting IndexError: list index out of range from arcpy.mapping.ListLayers() in Python Window of ArcMap?

i want to turn on label using arcpy, i use current mxd and my mxd path in my script and my layers also active in the current MXD, but it give me this eror, can somebody help me? here the script i ...
3
votes
2answers
64 views

Label font size and scale QGIS 3.0

How can I make it that the font size of the label changes when I zoom in and out? I have a polygon and I want the label get bigger when I zoom in and smaller when I zoom out (just like the polygon ...
1
vote
1answer
23 views

Toggle labels on/off for a layer with PyQGIS 2?

I try to toggle labels on/off for a layer in QGIS 2.18 with PyQGIS. In PyQGIS 3 a method QgsVectorLayer().setLabelsEnabled() seem to have been added, but as far as I see, such is not available in ...
0
votes
1answer
25 views

Annotation group for data frame grid in ArcGIS

I am working in a project which I should label two types of grids (one is projected and the other is geographic) in the same data frame (layout view). Often there is an overlap of these coordinate ...
0
votes
1answer
28 views

ArcGIS Online vs JS rendering differences

I am experiencing some issues working with ArcGIS JS API v4.9. I created a map on my offline software that I imported into ArcGIS Online. The map contains polygons with labels inside them and some ...
1
vote
1answer
27 views

What's the difference between sample, sampleRegions, and stratifiedSample in Google Earth Engine?

According to the documentation of GEE, ee.Image.sample() samples the pixels of an image and returns them as a FeatureCollection, in which each feature has 1 property per band in the input image. You ...
4
votes
1answer
80 views

Labeling using 'wordwrap' and 'wrap on character' with mutiple fields in QGIS?

I'm having a problem with multi-field labeling both using the 'wordwrap' function and the 'wrap on character' mode. In fact I would need to use the multiline mode only on the second of the two fields ...
0
votes
1answer
24 views

Shapefiles - ability to toggle editing and filtering

I have a shapefile from a county HER which I have successfully loaded. I have catagorised the point so depending on type they show a different symbol. I can filter those points in order to show ...
1
vote
1answer
52 views

Connecting labels and points with arrows

I found a previous thread on this and I am following this option. I am hoping someone can split this into greater steps for me. I am not certain of the detailed steps for creating a Generator ...
2
votes
1answer
82 views

Reverse Engineering Movable Labels in ArcMap?

I have an .mxd where the labels for most features are fully editable and movable. However, they have NOT been converted to notation. They are stored in shapefiles that have no symbology but also have "...
1
vote
1answer
17 views

Modifying text with tags in If Then Else in VBScript Label Expressions

I am having a problem with formatting text in a label expression using VBscript. Here is my label expression: Function FindLabel ([Mean], [Count]) if ([Mean] < 1) then FindLabel = [Count] &...
3
votes
1answer
83 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 ...
2
votes
1answer
81 views

QGIS - label placement in print composer

I have managed to do manual placement of labels in QGIS 2.18 so that they are all showing without overlapping. However, when I create the map in print composer the labels do not stay in their same ...
1
vote
0answers
44 views

Exporting contour labels to DXF

I am very new in QGIS. I imported a DEM in QGIS, I generated contours, then I have added some labels. I have been able to export those contours in DXF but the labels haven't been exported. How can ...
2
votes
1answer
65 views

Adding x and y values while creating a label QGIS

I'm trying to create a label on a map in QGIS. I can open the setting where there are an X and Y button and a few other properties, like opacity and distance. I'm pretty sure the problem is that I ...
0
votes
0answers
23 views

How to keep Leaflet polygon labels visible?

I would like to see the polygon label always as well if I zoom in. This is the starting point. now, when I zoom in I want the lables still to be visible, but they are not. My current code is: var ...
0
votes
0answers
43 views

How to stop labels disappearing in QGIS 3?

I have read numerous questions threads about why labels are not appearing, however they are not applicable for QGIS 3. Is there a bug with labels in QGIS 3? I have mapped some locations. I have then ...
4
votes
0answers
82 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 ...
2
votes
3answers
121 views

Writing label expression with ArcMap and If then Statement?

I am having problems with label expression in ArcMap 10.2.1. I want to show two labels per polygon, but only when there are two labels to show. Every polygon has at least one label (Veg_Dominant), ...
0
votes
2answers
43 views

Random behaviour with rule base labels (v3.4.1)

I have a layer with rule based labelling enabled. There are two label styles: a base style for all labels (no filter) and a highlight style which is intended to apply to features with a particular ...
2
votes
0answers
75 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 ...
3
votes
2answers
52 views

Label features with letters instead of attribute field text

I am creating a map of protected areas/parks and want to display a letter label (A, B, C...) inside the polygons of all the parks in the map. The full names of the parks are too long to fit inside ...
0
votes
0answers
30 views

Want to underline some part of label in QGIS

I try to create lable and underline only the second line. By using this link method. Using Expressions to underline part of a label and the result is but the problem is when I use "Move lable and ...
3
votes
3answers
138 views

Draw line to next feature with distance as label (dynamic)

I would like to dynamically draw the shortest line to the next object (Geometry Generator?). Example: I have a network-layer (streets) and a point-layer. I know the distance from every point to the ...
0
votes
1answer
26 views

How do I edit an individual label in QGIS that has data from two columns on two lines, but also needs a word wrap?

So I have a complex question. Initially I needed to know how to do a word wrap on a single label in QGIS because I have a county name that is too long for the county it belongs to. I was told how to ...
3
votes
1answer
38 views

QGIS Put a label only on selected polygons

I'd like to labelling only some polygons of a layer which are inside another polygon from another layer. Have you an idea how to do this? May be with a label rule?
-1
votes
0answers
40 views

Using VB label expression in ArcMap?

I have an expression for labeling in ArcMap. In this file it has this line; FindLabel = "<FNT name=""Arial Narrow"" size=""10"">"&"<LIN leading='-3'>"& s2 &space(8) & ...
3
votes
3answers
177 views

How do I edit a single label in QGIS 3.4 (Madeira)?

I'm making a map of North Dakota and trying to label the counties, but one of the names (Golden Valley) is extremely long in a very tall county. I don't want to turn the label vertically, but would ...
-1
votes
0answers
15 views

Labeling geocoded locations with location specific information?

I have geocoded a list of over a 100 locations using MMQGIS. However, only the location specific information (address, city, state, country) are allowed in the csv source file. If I add more columns ...
1
vote
0answers
44 views

QGIS vector layer labels are not showing from python script

I have a python module, where a QGIS memory vector layer is created, within the same method that creates this layer I have constructed labels using: text_format = QgsTextFormat() label = ...
3
votes
1answer
72 views

Geometry Generator - make line to polygon perimiter

I would like to improve the way arrows point to polygons when moving labels. I have some fields with unique numbers associated with each one. When the centroid of a polygon is outside the physical ...
2
votes
1answer
84 views

Using Python Dictionary to label subscript formatting ArcMap 10.6

*Question updates at bottom I need to label chemical formulas out of the attribute table but the attribute table doesn't recognize anything but plain text. THEREFORE I have built a dictionary ...
0
votes
1answer
49 views

Setting label settings in PyQGIS 3 to mapUnits?

I am converting several Plugins from QGIS 3 and I am struggling heavily with symbology and labeling. The straightforwart QGIS 2 approach seems to be totally gone. I found some help here: Reading and ...
3
votes
2answers
100 views

Italic fonts in QGIS 3.4

How can I apply italic fonts for labels and print composer in QGIS 3.4? The option seems to be disabled.