Skip to main content
20 votes

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

'View > Decorations > Grid'. The Grid properties allows you to set line type and interval, as well as any annotations (such as lat/lon). This is purely an overlay that you can't interact with and ...
Knightshound's user avatar
  • 4,480
12 votes
Accepted

Adding graticules to Folium map

You can add graticules as polylines. First, set intervals of latitude and longitude. import folium m = folium.Map() lat_interval = 10 lon_interval = 10 grid = [] for lat in range(-90, 91, ...
Kadir Şahbaz's user avatar
11 votes
Accepted

Match map's borders to graticule in QGIS Layout

If you set a fixed scale for the map using "Map Properties > Scale > Data defined override button > Edit", you can adjust the map borders to match the grid.
Kadir Şahbaz's user avatar
10 votes

Creating custom coordinate grid using QGIS

In the print composer, create three grids on your map item: one for the actual grid lines one for X values (to disable grid lines, set them to "No pen") one for Y values (idem) For Y coordinates, ...
thibautg's user avatar
  • 2,097
10 votes
Accepted

Adding lon/lat grid on map in QGIS 3.0?

You need to scroll down just a little bit more to find Grids options. Then the difference from the linked tutorial are: Click on Modify grid... to call up Appearance properties. Set CRS for the Grid ...
Kazuhito's user avatar
  • 31k
10 votes

Creating grid in QGIS 'anchored' to specific point

You can use GRASS v.mkgrid tool in Processing Toolbox > GRASS > Vector.
Kadir Şahbaz's user avatar
8 votes

Setting the coordinates in a QGIS layout right

You have asked for the format of your grid to be Degrees, Minutes and Seconds which is not appropriate for a grid in metres (EPSG:3035) - if you set it to decimal you will get the expected output in ...
Ian Turton's user avatar
  • 82.2k
8 votes

Measured grid in Mapbox

If MapBox uses EPSG:3857 any grid will become distorted as you move away from the equator. If you want an undistorted lat/lon grid try using EPSG:4326 (Plate Carree) - technically the grid is still ...
Ian Turton's user avatar
  • 82.2k
8 votes
Accepted

How to show pixel boundaries of a given raster in QGIS?

Go to View - Decorations - Grid "Update intervals / Offsets from" click "Active Raster Layer" Then click the Line symbol and adjust the symbol. I made the lines 0.06 wide
Bera's user avatar
  • 74.9k
7 votes

Adding MGRS grid in QGIS

MGRS is based entirely on UTM (Universal Transverse Mercator) projected Coordinate Reference Systems. The first two numbers of an 8-digit grid, for instance, are the same as the UTM zone (these ...
AlecZ's user avatar
  • 2,633
7 votes
Accepted

Making grids in QGIS

The grid creator makes very simple lines with vertices only on each end. You'll need to 'densify' the geometry (adding extra vertices) so that intermediate points can be projected and define the shape ...
Simbamangu's user avatar
  • 14.8k
7 votes

Excess decimal points showing on QGIS layout grid

You can use the round() function to make sure no decimal shows: Modify your expression like this: CASE WHEN @grid_axis = 'y' THEN substr('ONMLKJIHGFEDCBA', (@grid_number + 0.6 ) / 1.2 , 1) ...
Gabriel's user avatar
  • 3,165
7 votes
Accepted

Creating grid annotations (reference grid) using QGIS

A lot of tourist maps use this kind of annotation scheme with a reference list at the bottom stating which places of interest are located in which grids (Examples here and here). To add sequential ...
PKG's user avatar
  • 610
7 votes
Accepted

QGIS Grid not displaying correctly

What you are telling the program to do is to draw gridlines every 5 units. The units for the grid projection you are using (Pseudomercator) are meters. So you are asking for a gridline every five ...
Andres's user avatar
  • 596
6 votes

Achieving Super or Subscript graticule labels in QGIS Composer windows?

If you have grid coordinates and want the first two figures to be large and the rest to be superscripts you can do it without python functions. The trick is to use string processing to split the ...
Spacedman's user avatar
  • 65.1k
6 votes
Accepted

Dynamic oriented grid using QGIS 3 layout view (grid borders parallel to paper borders)

To perform dynamic North Pole grid orintation paste the code (see below) in Map rotation box parameter of your map item. Here is a comparison with a static oriented grid: Code block (in a line): -...
Comrade Che's user avatar
  • 7,271
6 votes

Adding meridians and parallels on world map in QGIS

You could just use <QGIS>|Vector|Research Tools|Create Grid... where you chose your Grid type (likely Line) set the Grid CRS (i.e. to EPSG:4326 - WGS 84) set the spacing you want in degree ...
geozelot's user avatar
  • 30.4k
6 votes

Calculating average data of neighbour grids based on location and returning data to grid in QGIS

Create a new field using field calculator with this expressions, replacing value (twice!) with the name of the field that contains the values you want to calculate the mean from. Be aware that ...
Babel's user avatar
  • 73.2k
5 votes

Creating artificial coordinate system to plot garden experiment?

It is feasible, don't worry about coordinate systems though. It can be in no coordinate system or it can be in any coordinate system. You could use your local coordinate system and plop the grid on ...
Barrett's user avatar
  • 3,079
5 votes

Points equally spaced in polygon, allowing for slope using ArcGIS Desktop?

I need to create a grid of points within a given area so that each point is 75m across the ground from any other point There are cases where this may be impossible mathematically. For illustration ...
til's user avatar
  • 894
5 votes
Accepted

Creating a Grid on a polygon and find number of points in each grid

So, Derek, let's try to swim together in the children's pool PostgreSQL / PostGIS and QGIS. If I understood your question correctly, then you sailed with me. Initial data: These are the polygons of ...
Cyril Mikhalchenko's user avatar
5 votes
Accepted

Custom format for a grid with degrees, minutes, seconds with suffix using letter from another language

Transforming decimal degrees to degrees-minutes-seconds requires some intermediate variables, so you would need to create a custom function to achieve what you want. The way to do the conversion is ...
JGH's user avatar
  • 42.3k
5 votes

Flow accumulation on grid in R

Short answer: whitebox::wbt_d8_flow_accumulation() calculates a flow accumulation grid. Long answer: I was trying to find a method for doing this in R, for stream network and hydrology analysis. It ...
hugh-allan's user avatar
5 votes
Accepted

Setting proj parameters for Second World War military grid systems

According to Mugnier ( https://www.asprs.org/wp-content/uploads/2018/03/09-16-GD-Turkey.pdf) the projection of the original Turkish maps is Bonne with the following proj4 definition: +proj=bonne +...
Hans Erren's user avatar
  • 1,170
5 votes
Accepted

QGIS not providing accurate grid lines on exported map

The interval units should be set to map unit, i.e. in degrees. I believe the CRS is not used unless map unit is selected.
JGH's user avatar
  • 42.3k
5 votes

Divide grid in smaller grid QGIS 3.16

There are at least two options - to create the new grid correctly (1) or to shift the grid that does not fit (2). Be sure to select the same CRS and to set the same extent: best use the grid-layer ...
Babel's user avatar
  • 73.2k
5 votes
Accepted

"No feature was found..." when making custom grid coordinate format

Change your double quotes of "," into single quotes ',', since it is not related to a fieldname but is meant to represent a string value: concat(substr(@grid_number, -5, 2), ',', ...
MrXsquared's user avatar
  • 34.9k
5 votes

QGIS Map Composer frame to show numbers and letters

I didn't test with Qgis 3.10 which is pretty old. I will take the assumption that the grid interval is 100 meters. In the map grid properties, check "Draw coordinates", set "Format"...
Pierma's user avatar
  • 901
5 votes
Accepted

Setting decimal places in coordinate-grid in QGIS Print Layout

You can set the precision: "Map Grid Properties" in the "Draw Coordinates" section at the bottom.
eurojam's user avatar
  • 11.2k
4 votes

Ordnance Survey grids - download or generate?

From 29 January 2021, you can download a GeoPackage containing these grids at a number of resolutions (1, 5, 10, 20, 50, and 100 km) from Ordnance Survey's GitHub: https://github.com/OrdnanceSurvey/OS-...
nms's user avatar
  • 51

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