Skip to main content

All Questions

Filter by
Sorted by
Tagged with
12 votes
2 answers
3k views

Straight Lines from Label to Feature in QGIS?

What I’m trying to do is label a series of point features but due to the density of point features I’m going to have to move the labels away from the point features. I then want to use a simple ...
QGIS_Noob's user avatar
  • 123
12 votes
2 answers
14k views

Altering label styles (font, color, size, etc.) using ArcPy?

I am trying to write a python macro for ArcGIS 10.2 that will automate the process of labeling points in a layer based on different types of apartments. For example, one style of apartments would ...
Tyler Spears's user avatar
12 votes
1 answer
6k views

What is 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 ...
Michael's user avatar
  • 1,196
12 votes
3 answers
30k views

How to label GeoJSON polygons?

I'm using Leaflet combined with GeoJSON features. Is there a way to label GeoJSON features (in this case - polygons)? It should get labels from feature.properties.name This is my code where I ...
againstflow's user avatar
  • 5,054
12 votes
2 answers
3k views

Label Blocking in QGIS?

Does anyone know how the 'Blocking' label style in QGIS 2.16 works? I've got a polygon boundary layer and would like to keep any labels from overlapping the outline. I've turned blocking on for the ...
Galen's user avatar
  • 171
11 votes
2 answers
26k views

Base map with no labels in QGIS

I am struggling to find or import a base map without street labels in QGIS. I am using QuickMapServices Plugin and also looked for maps that I can add using XYZ Tiles.
Jayce's user avatar
  • 149
11 votes
2 answers
2k views

Applying labelling with obstacles in QGIS

I'm working with QGIS 3.16 Hannover and I'm quite confused with the option Features act as obstacles. According to QGIS documentation (13. The Style Library » 13.3. Setting a label » 13.3.2.3.4.4. ...
jpinilla's user avatar
  • 3,240
11 votes
5 answers
6k views

Measuring straightness of curve segment (represented as polyline)

I'm working on an automatic elevation contour labeling algorithm and one of the factors that I want to take into account when deciding the positions of labels is how "straight" a particular ...
Igor Brejc's user avatar
  • 3,697
11 votes
2 answers
12k views

Polygon label repeated for each tile

I'm using the standalone GeoWebCache to serve tiles from a remote GeoServer. My problem is that the polygon label is added to each one of the tiles served, instead of only once in the polygon centroid....
Ambran's user avatar
  • 223
11 votes
2 answers
1k views

Show single label for features grouped by identical attributes in QGIS

I have a database with of accidents in an area. I want to show a lable with the type of accident for every occurence. In the database there are multiple entries for the ID in the first column (because ...
Anton Lang's user avatar
11 votes
1 answer
11k views

Is there any other option to display DMS grid and graticule in QGIS Print Composer?

Is there any other option to display DMS grid and graticule in QGIS Print Composer, since there is no plugins available yet?
Danny Palomo's user avatar
11 votes
3 answers
1k views

Changing to alternate label if first label does not fit in QGIS?

I'm trying to create a map to print out and the size of my polygons varies greatly. As this will be a reference map I need to label every polygon, but some of the names will not fit in the polygon. In ...
Ian Turton's user avatar
  • 83.2k
11 votes
2 answers
8k views

How to use label classes, expressions, and annotations?

I've always found that when it comes to python, vector analysis, QGIS gives ArcGIS a run for its money, hell some of the qgis plugins exceed ArcGIS's performance by a few hours; however, I always have ...
dassouki's user avatar
  • 8,563
11 votes
3 answers
1k views

What's the convention for "upside down" labels?

I have line features that are to be used for labels. These lines are correctly oriented(rotated) and positioned such that text placed on them should give a good cartographic output. Compare the below ...
GIS-Jonathan's user avatar
  • 6,785
11 votes
3 answers
1k views

Using Label classes vs Definition queries - which performs the best?

Which would provide the best performance for working within ArcMap with very large datasets stored in an ArcSDE geodatabase? Multiple label classes using complex SQL queries to label specific features,...
ianbroad's user avatar
  • 9,141
11 votes
1 answer
2k views

Is there a way to add a "current user" label to the print composer?

Is there a way to add a current user label to the print composer in QGIS. I thought there might be something similar to the $CURRENT_DATE format available. This would be in a windows environment.
Matt T's user avatar
  • 708
11 votes
2 answers
403 views

How to prevent label rendering in bleed space in QGIS composer?

I'm making maps for a book where maps run to the edge of the page. The printer has advised a 3mm bleed space around images, therefore if my page is 127x177 mm, images should be 133x183 mm. This bleed ...
Mir Rodriguez's user avatar
10 votes
3 answers
861 views

Rendering single label for multiple parts

I have a map of Canada and the United States that's broken down by electoral districts. At near zoom levels, I have labels for the electoral districts. Closer zoom reveals more information (the names ...
Matthew's user avatar
  • 111
10 votes
2 answers
9k views

How does manual Label Placement in QGIS 1.9 work? [duplicate]

There are a bunch of questions here related to labeling in QGIS, but it's not clear which version they are referring to, and I know this is something that has changed recently. Hopefully it makes ...
Darren Cope's user avatar
  • 6,666
10 votes
1 answer
4k views

Reading and setting label settings in PyQGIS

In QGIS 2.18 I read and set label style settings like this: props = { "labeling": "pal", "labeling/enabled": "true", "labeling/fontFamily":...
Kezah's user avatar
  • 866
10 votes
1 answer
13k views

How can I display a coordinate grid in the map canvas?

I want a live renderizing grid on the map canvas in QGIS, during processing, not on the map composer. Does anyone know how to do that?
rodrikev's user avatar
  • 520
10 votes
2 answers
4k views

How to only show labels for an arbitrary selection of items?

I'm curious how others go about solving this problem: You've created a map for something with a large number of features that are labeled. The customer/client asks that you only show labels for X, Y ...
Lost Mapper's user avatar
  • 1,971
10 votes
2 answers
7k views

What are valid values for "data defined" labeling settings?

I'm using QGIS 1.8. I'd like to customize label features on an existing shapefile using the new label engine and it's "data defined settings" option. I'd like to know what the attribute table field ...
Jan's user avatar
  • 535
10 votes
2 answers
39k views

QGIS Multiple CASE WHEN/THEN Statements for Expression Based Labels

I am trying to label a single point with multiple labels, based on the attributes for that point. For example, if one of the attributes is equal to 1, I want to label it with a specific text string; ...
Wes Kent's user avatar
  • 201
10 votes
1 answer
7k views

Copy/pasting layer's label style only between layers using QGIS GUI

Is it possible in the QGIS GUI to copy/paste a layer's label style properties only between layers? In QGIS (2.18.1, win7), while it is possible to copy a layer's entire style (symbology + label ...
guestagain's user avatar
10 votes
3 answers
9k views

Turning on labels of layer using ArcPy?

I am unable to turn on the labels within my Python script: import arcpy mxd = arcpy.mapping.MapDocument(r"Mypathhere") #Map document reference layer = arcpy.mapping.ListLayers(mxd, "Layername")[0] #...
Tim's user avatar
  • 575
10 votes
2 answers
2k views

Data defined label position for more than one scale in one layer

I'm looking for a better labeling-solution for my projects. It seems to be difficult - but maybe I'm just blind? My projects: I build printed bike-hike-books. The main scale is 1:75k and there are ...
MartinMap's user avatar
  • 8,396
10 votes
2 answers
2k views

How to create dynamic leader lines?

I'm trying to create dynamic leader lines by using a PostGIS view in addition to the QGIS „Move Label“ tool. CREATE VIEW leader_line AS SELECT gid, ST_MakeLine(geom, ST_SetSRID(ST_MakePoint(...
Lunar Sea's user avatar
  • 2,016
10 votes
1 answer
923 views

Labelling column plot with unit on top in QGIS?

I made a column representation in QGIS, which shows the effects on different points around point 24. Is it possible to label the columns on top with the unit as you are used to from excel? QGIS-...
Philipp B.'s user avatar
10 votes
2 answers
2k views

How to show labels exactly around a circle in QGIS?

I found an interesting way of proportional symbol mapping and labeling, I think this was made by Adobe Illustrator but I couldn't find out if it can be done in QGIS. What I am interested in the most ...
Skye's user avatar
  • 1,053
10 votes
2 answers
10k views

Creating curved labels in QGIS

I added an image, that explains my demand (see Schiefelsbach river). How can I do this?
Shepherdjo's user avatar
  • 2,286
9 votes
3 answers
2k views

Labelling features by multiple attributes in QGIS

I am a fairly competent QGIS (3.14) user but really struggling with a particular labelling issue. I want to create attribute-based symbols/labels based on multiple attributes for a single point, but ...
Dan Watkins's user avatar
9 votes
1 answer
966 views

Labeling polygons along their boundaries using QGIS?

When labeling polygons (not polylines!) in QGIS, is it possible to label them along their borders rather than their area? I know I could convert polygons to polylines and then label them, but I am ...
Marjan Moderc's user avatar
9 votes
3 answers
2k views

How to create a label containing values from different layers in QGIS

I have several layers which are stagged on each other. I need to create a label (or text-window / description, doesn't matter) which should contain values from different layers. Creating a regular ...
KReisser's user avatar
  • 121
9 votes
3 answers
8k views

Label Expressions to replace null values with text not in feature class

I need to label some hydrants (points) - some of these belong to the fire brigade and have a number assigned to them, some do not and thus do not have a number. I would like to write an expression ...
jorp's user avatar
  • 91
9 votes
2 answers
2k views

Preventing labels from overlapping certain features using QGIS

I have two layers in my QGIS Project (QGIS 3.4.8). One in the foreground, which contains surfaces, and one in the background, which contains a point with labels, see image below: The problem is that ...
Dawid DLLISt's user avatar
9 votes
3 answers
4k views

Suppress same label from different features QGis

Is there a way to suppress same labels from different features other than merging the features or manually deleting the labels? As you can see in the image below, I have multiple lines with the ...
K_Man's user avatar
  • 316
9 votes
1 answer
298 views

Setting constant labels positions in QGIS

I've been trying to figure out how to stop the labels from moving when dragging the map with the cursor. Is it possible to prevent this from happening? I am new to QGIS and don't really know what to ...
Maria's user avatar
  • 93
9 votes
4 answers
7k views

Mask Labels in QGIS 3.12

New feature in QGIS 3.12 does not seem to work. And it looks different from shown in changelog https://qgis.org/en/site/forusers/visualchangelog312/#feature-selective-masking This is how it actually ...
Bartosz Czarnecki's user avatar
9 votes
1 answer
900 views

Pause Labeling in QGIS?

Is it possible to pause/stop labeling temporarily in QGIS like in Arcmap for all layers at once? The label toolbar offers no solution.
RolandG's user avatar
  • 448
9 votes
1 answer
248 views

Match map's borders to graticule in QGIS Layout

I'm using QGIS v.3.22.0. I've been going crazy trying to adjust a map size to match a graticule in the Print Layout. I don't want to have any squares cut in the middle. I don't want to adjust the grid ...
David Martins's user avatar
9 votes
1 answer
582 views

Creating grid in QGIS 'anchored' to specific point

I need to create grids using QGIS with specific intervals 'anchored' to, or beginning at, a specific UTM coordinate. This is for a survey sampling procedure. For example: a point was determined - UTM ...
Chloe's user avatar
  • 91
9 votes
1 answer
13k views

Exporting shapefile to KML with labels

In QGIS, When exporting my point shapefile to KML, points label are not visible in Google Earth Pro. I follow these steps: In QGIS, my point shapefile has a name attribute Right click on the shape ...
Olivier Cristol's user avatar
9 votes
1 answer
2k views

How map unit affects the caption size in the label in QGIS?

I tried to make a the label caption size adjusted relatively to the map scale. It worked, more or less, when I set the size into map unit. I set them to 0.1, and when I zoom out the caption size get ...
Nitzan Matan's user avatar
  • 2,867
9 votes
2 answers
5k views

Formatting Dates in QGIS labels

I would like to display a date field as a label. The data is from a shapefile. The field in question is a date field. When I use the date field for the label, it displays in the yyyy/mm/dd format. I ...
James S's user avatar
  • 4,304
9 votes
3 answers
5k views

Restoring labels to the default position?

I've been moving point labels around in qgis3, and I wonder if there are some way to back all them to their default position. And beyond: Can I switch between label ubications? Lest's imagine I want ...
Eduardo Agustín Rosselot's user avatar
9 votes
4 answers
3k views

Label only the largest polygon of a multi-part polygon layer in QGIS

I am exploring the new Label engine of QGIS 2.12.2 and I found it a great improvement. However, I discover it is not yet up to ArcGIS "standard" when dealing with multipart polygons. As a workaround (...
fabio2111's user avatar
  • 189
9 votes
2 answers
950 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 ...
MartinMap's user avatar
  • 8,396
9 votes
3 answers
6k views

Label points at regular intervals using ArcMap

I'm working with lines on roads represented by a large number of sequential points. Since labeling all of them would make the points impossible to identify, I'd like to know if there is a way to label ...
diegomatias's user avatar
9 votes
6 answers
1k views

How are labels dynamically placed on a line or polygon?

I was wondering if anyone knew the math involved, or resources for learning the math involved, in finding the ideal position, scale, and rotation of a label for a line or polygon on a map? The most I'...
Bob's user avatar
  • 191

1
2
3 4 5
56