Coordinate reference systems

Fixing CRS problems: missing, wrong and mixed CRSs

Recognise a layer with a missing or wrong CRS, assign the correct one without moving coordinates, fix swapped axes, and work with layers in different CRSs.

Intermediate2 min read

You will learn

  • Tell a wrong label from wrong coordinates.
  • Assign a CRS to a layer.
  • Read the CRS Assistant checks.

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).

Wards (synthetic) Download wards.geojson

Format
GeoJSON
Geometry
Polygon
CRS
EPSG:32643 (WGS 84 / UTM zone 43N)
Content
84 wards (31 peri-urban, 19 rural, 34 urban), 333,497 residents
In Orbis
Browser panel ▸ Tutorial sample data (synthetic) ▸ Wards, or Load complete tutorial pack.
Fields used in the tutorials
FieldTypeDescription
ward_idtextWard code W01 to W84.
ward_nametextWard name.
zonetexturban, peri-urban or rural.
populationintegerResidents.
householdsintegerHouseholds.
area_km2realEllipsoidal area in km².
density_km2realPersons per km².
literacy_raterealLiterate share, per cent.

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

The task

A layer is in the wrong place, or does not appear at all. Most often its CRS label is missing or wrong while the coordinates themselves are fine. You will learn to diagnose and fix it.

Steps

  1. Load the layer. If it has no CRS (for example a shapefile without its .prj file), Orbis shows a warning triangle in the Layers panel and does not draw it until you assign one. Coordinates are never guessed.
  1. Open the CRS Assistant (or right-click the layer and choose Inspect CRS and recommend a projection). The Checks list explains the problem, for example "Coordinates look like projected metres, not degrees", and lists the CRSs that would place the data plausibly, with Assign… buttons.

    The CRS Assistant checks for a layer, with findings and buttons that fix them
    Checks with suggested fixes in the CRS Assistant.
  1. To set the CRS yourself, select the layer and choose Layer ▸ Assign layer CRS…. Search for the CRS by code or name (for example 32643 or UTM 43N) and click Assign CRS. Assigning a CRS does not transform coordinates: it only says which system they are in. Ctrl+Z undoes it.
  1. If latitude and longitude were written into the wrong columns (points appear in the ocean or rotated), the check "Axis order swapped (latitude stored as X)" offers Swap X/Y into a new layer.
  1. Layers in different but correct CRSs need no fixing: Orbis draws them together and tools transform the inputs while they run. A note above Run lists the CRS of each input.

Expected result

Every layer is drawn in the right place and the Inspect tab shows no errors.

Common mistakes

  • Reprojecting a layer with a wrong label. The transformation starts from the wrong system, so the layer moves to another wrong place. Assign first; reproject later only if you need other coordinates.
  • Assigning EPSG:4326 to metres. Values such as 725,884 cannot be degrees. Look at the coordinates (Identify, or the Dataset tab extent) before you choose.

Troubleshooting

  • A GeoJSON file is far off. GeoJSON is longitude and latitude by definition. Files with projected coordinates must carry the legacy crs member; otherwise Orbis warns and you assign the correct CRS.
  • The right CRS is not in the list. Add it with Define a custom CRS (proj4 string or WKT) in the CRS dialog.