I have global elevation data captured in relation to the WGS84 ellipsoid, and a local elevation dataset which uses the OSGB 1936 CRS. Would one expect the values to be different, given that the two reference systems use a different ellipsoid, or are elevation measurements taken in relation to some common datum independent of CRS? If the values are different, how can they be converted from one CRS to another?

This is well outside of my usual field of expertise so I apologise if this is a naive question.

  • 1
    Have you tried to convert the data? If so, what happens to your elevation values?
    – Erik
    May 18 '20 at 10:59
  • reprojecting the local data into the global CRS changes elevation values by ~1m - the delta between the two data sources is still ~10 - 20m
    – Michael H
    May 18 '20 at 13:15

An elevation dataset will have two independent datums: a horizontal datum and a vertical datum. The horizontal datum is a property of the CRS, it maps an (x,y) value to a location on the earth. The vertical datum is a property of the data, like a specific sea level.

For example, the SRTM dataset has a WGS84 horizontal datum because it uses the EPSG:4326 projection, and it has a EGM96 vertical datum. In general, changing the CRS (which may change the horizontal datum) won't change the vertical datum, and vice versa.

There are some practical factors that can make this more complicated:

  • Transforming data to a new CRS involves interpolation, which may alter the elevation values in the dataset even though the vertical datum is unchanged.
  • A geo raster file may not include the vertical datum as metadata, you might have to go back to the source documentation to find it.
  • Some elevation datasets don't specify a vertical datum if the difference between different sea-level datums is less than the accuracy of the data.

See this answer for using gdalwarp to convert both datasets to a common CRS and vertical datum. You'll need to know the CRS codes for both datasets, and the vertical datums for both. And you'll need to download the grid shift files for each vertical datum.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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