Skip to main content
18 votes

Rendering dashed lines between adjacent polygons correctly in QGIS

To this kind of interesting but recurring cartographic question, there is different approaches (some suggested in the comments): The classic approachs is to use dashed lines with a white solid line ...
gisnside's user avatar
  • 7,858
17 votes
Accepted

Using dynamic text to display layer credits

As mentioned in my comment above, there isn't a way to do this using dynamic text. However, you could write a script to do this and attach it to a python addin button or to run when you save the MXD ...
Fezter's user avatar
  • 21.9k
17 votes
Accepted

Is it appropriate to create vertical scale bars?

The only reasons I can see why it would not be appropriate to use a vertical scale bar would be: The audience does not want it or does not understand it The audience associates the vertical scale ...
jbalk's user avatar
  • 7,583
15 votes

Is it appropriate to create vertical scale bars?

One reason would be (I think it is mentioned in one of the comments) is that the vertical scale bar may not accurately represent the distance of the railway track. This would be due to the likelyhood ...
Joseph's user avatar
  • 76k
13 votes

Interactive and dynamic map with wind data in R leaflet?

I missed some information in your dataset such as the CRS and timestamp; so I created my own dataset to provide a reproducible example. Here is one suggestion for creating interactive wind maps: one ...
Andre Silva's user avatar
  • 10.3k
13 votes
Accepted

Relating text buffer to text size in QGIS?

Create a data defined field (Font_size) and set the font size in the label properties to be dependent on this field. Create a virtual field (VRT_Buffer) with the following formula : to_real( "...
gisnside's user avatar
  • 7,858
13 votes

Designing Borders with QGIS

Option 1 - Quickest way There is actually a quite immediate way to obtain that effect: double click on the layer you want to style (in your case the border layer) under Symbology select Hashed line ...
RafDouglas C. Tommasi's user avatar
11 votes

How to convert a spatialpolygon to a SpatialPolygonsDataFrame and add a column to the attribute table

Try: #Code taken from the question: s_po <- SpatialPolygonsDataFrame(bc, buf_df, match.ID = F) match.ID avoids the requirement of rownames for match polygons ID
Fabián's user avatar
  • 111
11 votes
Accepted

Labeling (one-way) streets in QGIS?

You don't need to dissolve lines by name, as you can use the Merge connected lines to avoid duplicate labels option in the Rendering tab of Labels' options. This will reduce the number of labels, and ...
Alexandre Neto's user avatar
11 votes

Generating urban footprint polygons from building clusters in QGIS?

I was able to get some quite good results, with thanks to Michael Stimson for the suggestion. I had forgotten about the "buffer out, buffer back in" trick (this can also help reduce the number of ...
Steven Kay's user avatar
  • 20.5k
11 votes

Producing Space-Time Cube in QGIS

One option to do this would be by modifying your data and visualizing it with the excellent qgis2threejs plugin. The idea is to turn your your time to Z coordinates. I tried it out with two GPX tracks ...
tjukanov's user avatar
  • 623
11 votes
Accepted

Representing five categories of data in one symbol using QGIS

Using "Data defined override > Edit...", use the following expressions. (Edit field names) For "Size": CASE WHEN "Light"='Dark' THEN 4 WHEN "Light"='...
Kadir Şahbaz's user avatar
10 votes

Is there a way of labeling the number of points with the same coordinates?

If I understand, you want aggregate a layer by location. You will need SQL for that, so create a virtual layer (Qgis >= 2.14) with a query like : SELECT geometry, count(*) AS count FROM your_layer ...
Pierma's user avatar
  • 901
10 votes
Accepted

Group legend in ArcMap basing on field value

Here is one solution on top my head: Create a new string field and use field calculator to compute as the concatenation of other fields. Here is the python snippet: !abbrev! + ' ' + !fullname1! +'...
Farid Cheraghi's user avatar
9 votes

How to style points in QGIS based on multiple attributes

Thee other option is to use a size assistant that is available for each of the data layer style. Say you categorized your point data based on color using a certain attribute. Simply right click each ...
sherpas's user avatar
  • 421
9 votes
Accepted

Is there a way of labeling the number of points with the same coordinates?

Nice question! PyQGIS to the rescue! Follow these steps to get a new field (in your original layer) called label with the number of points that lie in the same location: Active (select) your layer ...
Germán Carrillo's user avatar
9 votes
Accepted

Should Legend entries be singular or plural?

I asked Dr. Aileen Buckley, Esri Cartographer for her advice. She wrote a blog post that explains when you should use singular and plural for legend items. I asked, ”Is there a cartographic convention ...
Mattropolis's user avatar
  • 1,674
9 votes
Accepted

Curved arrows in QGIS using geometry generator

You are changing the line width of the wrong component (the 'fill' texture of the arrow). You need to go to the Arrow section (Flèche) and change the arrow width, etc. there. Have a close look at ...
she_weeds's user avatar
  • 12.6k
8 votes
Accepted

How to keep polygons detailed when exporting in QGIS?

Try setting the thickness of the borders of the polygons a bit smaller, in millimeter and maybe change the join style. If you set it too high and on bevel or rounded, the rounded factor you can set in ...
gisnside's user avatar
  • 7,858
8 votes
Accepted

Masking layers by a vector polygon layer in QGIS

You can put the colored polygons on top, with a layer blending mode set to darken Below, have the building layer with the polygon fill in white. At the bottom, add a new layer containing one large ...
JGH's user avatar
  • 42.3k
8 votes
Accepted

Blending features in QGIS: Approximating road edges for map render

You need to use Symbol levels to have nicely rendered crossing lines. Using symbol levels you can sort the symbol levels and thereby control the order in which the different symbol layers are rendered....
ahmadhanb's user avatar
  • 41.1k
8 votes
Accepted

Creating nested hex grids in QGIS

Step 1. Create a grid with the "Create grid" geoalgorithm Step 2. Use the "Geometry by expression" from the Processing Toolbox (Ctrl+Alt+T). With the following expression: ...
Taras's user avatar
  • 33.3k
8 votes
Accepted

Force label to be along the lower perimeter of a polygon in QGIS

This might be overkill, and I would certainly be interested in a simpler solution, but nevertheless. This expression finds the segment of the polygon that has the lowest Hausdorff Distance from the ...
Matt's user avatar
  • 17.4k
7 votes
Accepted

Put points on a projected world map

You need to make a spatial points object and then reproject that: library(sp) library(maptools) data(wrld_simpl) wrld_simpl.trans <- spTransform(wrld_simpl, CRS = ("+proj=moll +lon_0=0 +x_0=0 +y_0=...
Simbamangu's user avatar
  • 14.8k
7 votes
Accepted

Adding heatmap legend to print composer in QGIS

What you can do is create a proxy layer to act as the legend styling. Being a little creative what you can do is create a new polygon layer with a couple of random shapes. Create the shapes away ...
Knightshound's user avatar
  • 4,470
7 votes
Accepted

Overlap map and frame in QGIS print composer

There is a way to do so, not very elegant, but useful. In your print composer, add another map and choose the same scale as your main map. Move the second map to fit it in the correct position: Then, ...
Andreu Amoros's user avatar
7 votes
Accepted

How much of these USGS topographical contour maps are artistic license?

That image looks like a 1:250,000-scale USGS topographic map. Yes, USGS surveyors did in fact "scour the entire United States measuring elevation at this insanely fine level of detail to produce these ...
cmrRose's user avatar
  • 1,150
7 votes
Accepted

Creating Bivariate choropleth map a.k.a. Relationship map in QGIS

What you're looking to seem to be more generally called "Bivariate choropleth map" looking for these term will get you some answer. For example this one by Joshua Stevens It's to long to fully ...
J.R's user avatar
  • 16.6k
7 votes
Accepted

QGIS: Style polygon outline as a dashed line with an inner gradient

If you use pure white over your shapefill then you can use "Multiply" to blend the layers which makes the white parts transparent. Adjusting widths gets me this: Here's the style properties ...
Spacedman's user avatar
  • 65k
7 votes
Accepted

Creating graduated classes for election swing map in QGIS

You have a range from -200 to 150 and you want the white color to be at 0. In your color ramp, white is at 50%, thus exactly in the middle - thus for your range of values at -25 (mean of -200 and 150)....
Babel's user avatar
  • 73.1k

Only top scored, non community-wiki answers of a minimum length are eligible