Coordinate reference systems

Reprojecting vector and raster layers

Transform a layer's coordinates to another CRS with Reproject layer, Reproject raster or the CRS Assistant, choose a suitable projection and reproject many layers at once.

Intermediate3 min read

You will learn

  • Reproject vector layers and rasters.
  • Choose a projection with the CRS Assistant.
  • Reproject several layers in one go.

Prerequisites

Data for this tutorial

Survey points (CSV, synthetic) Download survey_points.csv

Format
CSV with latitude and longitude columns
Geometry
Point (from columns)
CRS
EPSG:4326 (WGS 84 latitude, longitude)
Content
320 rows
In Orbis
Browser panel ▸ Tutorial sample data (synthetic) ▸ Survey points, or Load complete tutorial pack.
Fields used in the tutorials
FieldTypeDescription
point_idtextSP001 to SP320.
latituderealDecimal degrees.
longituderealDecimal degrees.
observed_classtextLand-cover class seen in the field.
soil_phrealTopsoil pH (empty on water).

DEM 30 m (synthetic) Download dem.tif

Format
GeoTIFF, 1 band, Float32
Geometry
Raster, 560 × 480 cells of 30 m
CRS
EPSG:32643 (WGS 84 / UTM zone 43N)
Content
Elevations 450.01 to 678.95 m; NoData -9999 in the south-west corner
In Orbis
Browser panel ▸ Tutorial sample data (synthetic) ▸ DEM 30 m, or Load complete tutorial pack.

Licence: CC0 1.0. All tutorial data is synthetic and generated by Orbis. About the datasets

The task

The survey points are stored in longitude and latitude (EPSG:4326). You want them in WGS 84 / UTM zone 43N (EPSG:32643), the CRS of the other tutorial layers, so that their coordinates are in metres.

Steps

Choose a projection

  1. Add Survey points from Browser ▸ Tutorial sample data (synthetic).
  1. Open the CRS Assistant, choose Survey points (synthetic) as Layer and open Recommend. For General mapping, the first card is WGS 84 / UTM zone 43N (EPSG:32643) with a score of 100 and a maximum scale error below 0.03 % over the district. Change Intended analysis to see how the ranking changes for area or distance measurement.

Reproject a vector layer

  1. In the Toolbox, open Reproject layer. Choose Survey points (synthetic) as Input layer, and in Target CRS type 32643 and pick WGS 84 / UTM zone 43N. Click Run.

    The Reproject layer tool with EPSG:32643 as target CRS and the reprojected survey points on the map
    Reprojecting the survey points to UTM zone 43N.
  1. A new layer Survey points (synthetic) (EPSG:32643) is added. It lies exactly on top of the original: same places, new coordinates. Identify a point to see its coordinates in metres.

Assign a label without moving coordinates

4a. Assign CRS and Assign raster CRS, in the toolbox under coordinate reference systems, copy every vertex or pixel and write a new CRS label. They do not resample and they do not transform. Use them only when the stored numbers are already in that system and the label is missing or wrong. If the numbers look like degrees and the label is projected, the tool says so and still leaves the numbers unchanged.

Reproject a raster

  1. For rasters, use Reproject raster (warp). Choose the Resampling method: nearest neighbour for classes (land cover), bilinear or cubic for continuous values (elevation). Leave the cell size empty to let Orbis estimate it.

Many layers

  1. In the CRS Assistant, Reproject & assign reprojects several layers to one CRS after showing a plan. Batch Processing offers Reproject vector layers and Reproject rasters (warp).

Expected result

A copy of the survey points in EPSG:32643 with the same attributes and position. The original layer is unchanged.

Common mistakes

  • Reprojecting instead of assigning. If a layer is in the wrong place because its CRS label is wrong, reprojecting moves it further. Assign the correct CRS instead; see Fixing CRS problems.
  • Reprojecting rasters again and again. Every warp resamples cell values. Reproject once from the original.
  • Using bilinear resampling on classes. It creates class codes that do not exist; use nearest neighbour.

Troubleshooting

  • Features without geometry after reprojection. Their coordinates lie outside the valid area of the target CRS. Orbis keeps the attributes, drops the geometry and counts them in a warning.
  • A shift of a few metres. Some datum transformations need a grid file (NTv2 .gsb or NADCON .las and .los). Load it in the CRS Assistant under Datum grids, then set Datum grid on Reproject layer or Reproject raster, or put +nadgrids in the definition. Until that file is loaded, the shift is not applied and the CRS Assistant warns.