6

How do I make grid annotations like shown below in QGIS (v3.x)?

Sequential alphanumeric characters in the centre of grid lines. These are widely used in tourist maps and are sometimes refered to as reference grids.

enter image description here

0

1 Answer 1

7

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 alphabets or numbers as annotations at the centre of the grid lines, 3 grids need to be added to QGIS Map Item Properties

  1. For the grid lines
  2. For the annotations on latitudes
  3. For the annotations on longitudes

For example, I am taking an area around Dehradun, India (approximately 30°19'N 78°02'E) and projecting the grids in CRS UTM 44N WGS84 i.e., EPSG:32644. The grid lines will be placed at an interval of 5000m (5km) and the annotations at exactly half of that distance i.e, 2500m. The screenshots are from QGIS 3.14.15-1 on Windows 64 bit.

The first grid should be set to the following options. This will add the grid lines. Ensure that the line style is thin / grey.

enter image description here

The second grid will add the annotations at the centre of the latitudes. The options are as shown. The idea of the custom script is to convert the @grid_number variable to an alphabet. The numbers will change for a different area.

enter image description here

Applying the same logic for annotations at the centre of the longitudes. Here the custom script will convert the @grid_number variable to a number. The numbers will change for a different area.

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.