Skip to content

Commit b7af2ac

Browse files
authored
Merge pull request #5 from PolarGeospatialCenter/dem-geoid-conversion
Dem geoid conversion minor updates
2 parents 2547834 + 1a2ce1c commit b7af2ac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

geoid_conversion/geoid_conversion.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Optional Arguments
3636
- Target Output File Type `-of`: You can also specify the output file type with the `-of`. GDAL will guess the output format from the file extension in the `dstfile` if none is specified. A useful output type is the Virtual Raster `.vrt`, which will not write the output to a new file, but will act as a pointer to the source file transforming the data on the fly when accessed. This is particularly handy to avoid essentially duplicating files when performing spatial transformations or merging raster files together.
3737
- Additional Creation Options `-co`: GDAL also provides additional creation options for each driver, including compression and tiling. Details can be found here for [GeoTIFF](https://gdal.org/en/stable/drivers/raster/gtiff.html#creation-options) and [COGs](https://gdal.org/en/stable/drivers/raster/cog.html#creation-options).
3838

39-
#### Examples
39+
## Example Scripts
4040

4141
For a local ArcticDEM mosaic tile, from .tif to .tif:
4242

@@ -46,7 +46,11 @@ For a web-hosted REMA Strip DEM, from COG to VRT. This approach leverages the AW
4646

4747
```gdalwarp -of VRT -t_srs EPSG:3031+3855 /vsicurl/https://pgc-opendata-dems.s3.us-west-2.amazonaws.com/rema/strips/s2s041/2m/s77e166/SETSM_s2s041_WV01_20180915_1020010079996900_1020010078866100_2m_lsf_seg1_dem.tif rema_strip_orthometric.vrt```
4848

49-
### Verifying conversion outputs
49+
Transforming the other way, from orthometric (geoid) to ellipsoid, you can set the `-s_srs` flag to specify that the source DEM has the geoidal vertical reference transformation applied and that the output should not:
50+
51+
``` gdalwarp -s_srs EPSG:3031+3855 -t_srs EPSG:3031 rema_orthometric.tif rema_ellipsoidal.tif ```
52+
53+
## Verifying conversion outputs
5054
Users can verify the outputs with GDAL tools or in a desktop GIS application. `gdalinfo` will return details about the spatial projection, including any vertical reference details. Here we see the `EGM2008 geoid` applied after the `gdalwarp` transformation:
5155
```
5256
gdalinfo dem_orthometric.tif

0 commit comments

Comments
 (0)