Skip to content

Commit 3d95235

Browse files
committed
add GeodPT08 for Portugal
1 parent a23b653 commit 3d95235

File tree

5 files changed

+62
-0
lines changed

5 files changed

+62
-0
lines changed

copyright_and_licenses.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ pl_gugik_geoid2021-PL-EVRF2007-NH.tif,Główny Urząd Geodezji i Kartografii,CC-
273273
pl_gugik_README.txt,Disclaimed,Public domain,1.9,
274274
pt_dgt_D73_ETRS89_geo.tif,Direcao Geral de Territorio,CC-BY-4.0,,
275275
pt_dgt_DLx_ETRS89_geo.tif,Direcao Geral de Territorio,CC-BY-4.0,,
276+
pt_dgt_GeodPT08.tif,Direcao Geral de Territorio,CC-BY-4.0,1.17,
276277
pt_dgt_README.txt,Disclaimed,Public domain,,
277278
README.DATA,Disclaimed,Public domain,,
278279
se_lantmateriet_README.txt,Disclaimed,Public domain,,

pt_dgt/build_GeodPT08.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash -e
2+
3+
# https://www.dgterritorio.gov.pt/geodesia/modelo-geoide
4+
# Download https://www.dgterritorio.gov.pt/sites/default/files/ficheiros-geodesia/GeodPT08.dat
5+
6+
# Usage:
7+
# PROJ_DATA_DIR=/path/to/PROJ-data ./build_GeodPT08.sh
8+
9+
def_data_dir=$(dirname $0)/..
10+
11+
PROJ_DATA_DIR="${PROJ_DATA_DIR:-$def_data_dir}"
12+
13+
orig=GeodPT08.dat
14+
15+
# Setup build directory
16+
mkdir -p build
17+
18+
tmp=./build/GeodPT08.xyz
19+
sort -s -n -k1,1 -k2,2r "$orig" > $tmp
20+
input=$tmp
21+
output=pt_dgt_GeodPT08.tif
22+
23+
docker run --user $(id -u):$(id -g) --workdir $PWD \
24+
--rm -v /home:/home ghcr.io/osgeo/gdal:alpine-normal-latest \
25+
sh -c " \
26+
# Call vertoffset_grid_to_gtiff-script
27+
python3 ${PROJ_DATA_DIR}/grid_tools/vertoffset_grid_to_gtiff.py \
28+
--type GEOGRAPHIC_TO_VERTICAL \
29+
--parameter-name geoid_undulation \
30+
--source-crs \"EPSG:4937\" \
31+
--target-crs \"EPSG:5780\" \
32+
--description \"ETRS89 (EPSG:4937) to Cascais height (EPSG:5780). Converted from $orig\" \
33+
--area-of-use \"Portugal - mainland - onshore.\" \
34+
--copyright \"Derived from work DGT+FCUL. CC-BY-4.0 https://creativecommons.org/licenses/by/4.0/\" \
35+
./$input ./$output && \
36+
# Run check_gtiff_grid-script
37+
python3 ${PROJ_DATA_DIR}/grid_tools/check_gtiff_grid.py ./$output \
38+
# Show info
39+
gdalinfo ./$output "
40+
41+
# Remove build directory
42+
rm -rf build

pt_dgt/pt_dgt_GeodPT08.tif

79.7 KB
Binary file not shown.

pt_dgt/pt_dgt_README.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,21 @@ Residuals at 130 further test points average 0.06m, maximum 0.16m.
3434
Recommended to transform from Portuguese Datum 73 (EPSG:27493) to ETRS89 in Portugal (EPSG:3763).
3535

3636
* pt_dgt_D73_ETRS89_geo.tif
37+
38+
### Portugal: Vertical grid GeodPT08
39+
40+
*Source*: [DGT](https://www.dgterritorio.gov.pt/geodesia/modelo-geoide)
41+
*Format*: GeoTIFF converted from XYZ (adjusted)
42+
*License*: [Creative Commons Attribution 4.0](http://creativecommons.org/licenses/by/4.0/)
43+
*Credit*: (c)2024 Geoid for Portugal Mainland by DGT+FCUL
44+
*Horizontal CRS*: EPSG:4258 (ETRS89)
45+
*Accuracy*: 0.04 m
46+
47+
Built based on the ICAGM07 gravimetric geoid model using 137 leveling marks and 1020 geodetic vertices.
48+
Estimated global accuracy of 4 cm, determined with reference to the continent's geodetic vertex and geometric leveling networks.
49+
50+
Vertical transformation (EPSG:10544) for Geoid model GeodPT08.
51+
Used to make the transition from heights in vertical CRS Cascais height (EPSG:5780)
52+
to heights abobe the ellipsoid in ETRS89 (EPSG:4937)
53+
54+
* pt_dgt_GeodPT08.tif

travis/expected_main.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ pl_gugik_geoid2021-PL-EVRF2007-NH.tif
270270
pl_gugik_README.txt
271271
pt_dgt_D73_ETRS89_geo.tif
272272
pt_dgt_DLx_ETRS89_geo.tif
273+
pt_dgt_GeodPT08.tif
273274
pt_dgt_README.txt
274275
README.DATA
275276
se_lantmateriet_README.txt

0 commit comments

Comments
 (0)