# NTv2 — NTv2 Datum Shift Grid

> NTv2 (NTv2 Datum Shift Grid): Binary grid shift file format (.gsb) storing latitude and longitude offsets for transformations between geodetic datums. Specs, software and free sample files; convert NTv2 to 51 formats online.

- Page: https://beta.mygeodata.cloud/formats/ntv2



## What is a NTv2 file?

NTv2 (National Transformation version 2) is a binary format for grid-based datum transformations. It was developed by the Geodetic Survey Division of Natural Resources Canada. Many national mapping agencies have since adopted it to publish the official transformations between legacy and modern geodetic datums, and coordinate transformation libraries and GIS software use it to apply those shifts.

An NTv2 file normally has the .gsb extension. It begins with an overview header, followed by one or more subgrids, each with its own header records. Subgrids can be nested, so that a denser grid covers areas that need higher accuracy within a coarser parent grid. Every grid node stores four 32-bit floating-point values: the latitude shift, the longitude shift and the accuracy estimate of each, expressed in arc-seconds. The grid is defined in geographic coordinates of the source datum. When read as a raster, each subgrid appears as a four-band dataset. The format applies only to horizontal shifts.

NTv2 grids are usually supplied by national mapping or geodetic agencies and received by surveyors, GIS analysts and software developers who must move data between legacy and modern datums. The file is not a map but a table of shifts, so it only makes sense together with the correct source and target datum. Check the agency's documentation for the coverage area and the stated accuracy before applying it.

### Technical details

| | |
|---|---|
| Full name | NTv2 Datum Shift Grid |
| Data type | Raster · Scientific & multidimensional |
| File extension | .gsb |
| Files | Single file |
| Media type | — |
| Bands | 4 (lat/lon shift + accuracies). |
| Pixel types | 32-bit float |
| Compression | None |
| Coordinate system | Always Geographic (grid in the source datum) (EPSG:4326) |
| Converter support | Read only |
| Typical software | PROJ, GDAL/OGR, QGIS, ArcGIS Pro, FME |
| Specification | https://gdal.org/en/stable/drivers/raster/ntv2.html |

### Specifications & references

- https://gdal.org/en/stable/drivers/raster/ntv2.html

### Sample NTv2 files — free download

- A sample file for this format is not available yet.

### Convert NTv2 to other formats

- [NTv2 to TIF](https://beta.mygeodata.cloud/converter/ntv2-to-tif)
- [NTv2 to HFA](https://beta.mygeodata.cloud/converter/ntv2-to-hfa)
- [NTv2 to JPG](https://beta.mygeodata.cloud/converter/ntv2-to-jpg)
- [NTv2 to KMZ raster](https://beta.mygeodata.cloud/converter/ntv2-to-kmz-raster)
- [NTv2 to GRD](https://beta.mygeodata.cloud/converter/ntv2-to-grd)
- [NTv2 to GeoPDF raster](https://beta.mygeodata.cloud/converter/ntv2-to-geopdf-raster)
- [NTv2 to JP2](https://beta.mygeodata.cloud/converter/ntv2-to-jp2)
- [NTv2 to XYZ](https://beta.mygeodata.cloud/converter/ntv2-to-xyz)
- [NTv2 to BIL](https://beta.mygeodata.cloud/converter/ntv2-to-bil)
- [NTv2 to DEM](https://beta.mygeodata.cloud/converter/ntv2-to-dem)
- [NTv2 to MBTiles raster](https://beta.mygeodata.cloud/converter/ntv2-to-mbtiles-raster)
- [NTv2 to PNG](https://beta.mygeodata.cloud/converter/ntv2-to-png)
- [NTv2 to AAIGrid](https://beta.mygeodata.cloud/converter/ntv2-to-aaigrid)
- [NTv2 to BMP](https://beta.mygeodata.cloud/converter/ntv2-to-bmp)
- [NTv2 to GPKG raster](https://beta.mygeodata.cloud/converter/ntv2-to-gpkg-raster)
- [NTv2 to WEBP](https://beta.mygeodata.cloud/converter/ntv2-to-webp)
- [NTv2 to ENVI](https://beta.mygeodata.cloud/converter/ntv2-to-envi)
- [NTv2 to GIF](https://beta.mygeodata.cloud/converter/ntv2-to-gif)

## Frequently asked questions

### Why does my NTv2 file give no shift for some points?

The point probably lies outside the area covered by the grid's subgrids. NTv2 only defines shifts within its own extent, so coordinates beyond it cannot be transformed with that file. Use another grid or a different transformation method for those locations.

### Does NTv2 change heights as well as positions?

No. NTv2 stores only horizontal shifts, as latitude and longitude offsets in arc-seconds. Vertical transformations need a separate approach, such as a geoid model or a vertical shift grid.

### What are the four values stored at each NTv2 grid node?

Each node holds a latitude shift, a longitude shift and an accuracy estimate for each of them, all as 32-bit floats in arc-seconds. When the file is read as a raster, these appear as four bands in each subgrid.

### What is a NTv2 file?

NTv2 (National Transformation version 2) is a binary format for grid-based datum transformations. It was developed by the Geodetic Survey Division of Natural Resources Canada. Many national mapping agencies have since adopted it to publish the official transformations between legacy and modern geodetic datums, and coordinate transformation libraries and GIS software use it to apply those shifts.

An NTv2 file normally has the .gsb extension. It begins with an overview header, followed by one or more subgrids, each with its own header records. Subgrids can be nested, so that a denser grid covers areas that need higher accuracy within a coarser parent grid. Every grid node stores four 32-bit floating-point values: the latitude shift, the longitude shift and the accuracy estimate of each, expressed in arc-seconds. The grid is defined in geographic coordinates of the source datum. When read as a raster, each subgrid appears as a four-band dataset. The format applies only to horizontal shifts.

### How do I open a NTv2 file?

NTv2 files can be opened in PROJ, GDAL/OGR, QGIS, ArcGIS Pro and FME. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert NTv2 to?

Popular conversions are TIF, HFA, JPG, KMZ raster, GRD and GeoPDF raster. In total the Converter writes NTv2 data to 51 formats.

### Which coordinate system does NTv2 use?

NTv2 always uses Geographic (grid in the source datum) (EPSG:4326).

