OSGeo / PROJ-data

Repository for proj datum grids (for use by PROJ 7 or later)
Other
72 stars 33 forks source link

Add CHGeo2004, Swiss geoid model #61

Closed jjimenezshaw closed 3 years ago

jjimenezshaw commented 3 years ago

Grid files for Swiss geoid model, from ETRS89 to LHN95 height and LN02 height.

See related PR https://github.com/OSGeo/PROJ/pull/2584

Generated with this script:

do_vert_offset() {
  docker run --user $(id -u):$(id -g) --workdir $PWD \
             --rm -v /home:/home osgeo/gdal:alpine-normal-latest python3 ./PROJ-data/grid_tools/vertoffset_grid_to_gtiff.py \
             --type GEOGRAPHIC_TO_VERTICAL \
             --source-crs $3 \
             --target-crs $4 \
             --area-of-use "Switzerland" \
             --copyright "Derived from work by Swisstopo. Creative commons Zero https://creativecommons.org/publicdomain/zero/1.0/" \
             $1 $2
}

do_vert_offset ${Geoid_OGD_DIR}/chgeo2004_ETRS.agr ${OUT}/ch_swisstopo_chgeo2004_ETRS89_LHN95.tif EPSG:4937 EPSG:5729
do_vert_offset ${Geoid_OGD_DIR}/chgeo2004_htrans_ETRS.agr ${OUT}/ch_swisstopo_chgeo2004_ETRS89_LN02.tif EPSG:4937 EPSG:5728