Skip to content

Commit

Permalink
Merge pull request #131 from jjimenezshaw/fi-geoids
Browse files Browse the repository at this point in the history
Add Finnish geoid models
  • Loading branch information
rouault authored Dec 16, 2024
2 parents e2f2a50 + 89232f6 commit 6b3ed8e
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.6)

project(PROJ_DATA)
set(PROJ_DATA_VERSION_MAJOR 1)
set(PROJ_DATA_VERSION_MINOR 20)
set(PROJ_DATA_VERSION_MINOR 21)

set(CPACK_SOURCE_GENERATOR "TGZ;ZIP")
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
Expand Down
3 changes: 3 additions & 0 deletions copyright_and_licenses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ es_ign_SPED2ETV2.tif,"2009, Instituto Geográfico Nacional (IGN) Spain",CC-BY-4.
eur_nkg_nkgrf03vel_realigned.tif,Nordic Geodetic Commission,CC-BY-4.0,,
eur_nkg_nkgrf17vel.tif,Nordic Geodetic Commission,CC-BY-4.0,,
eur_nkg_README.txt,Disclaimed,Public domain,,
fi_nls_fin2000.tif,National Land Survey of Finland,CC-BY-4.0,1.21,
fi_nls_fin2005n00.tif,National Land Survey of Finland,CC-BY-4.0,1.21,
fi_nls_fin2023n2000.tif,National Land Survey of Finland,CC-BY-4.0,1.21,
fi_nls_n43_n60.json,National Land Survey of Finland,CC-BY-4.0,,
fi_nls_n60_n2000.json,National Land Survey of Finland,CC-BY-4.0,,
fi_nls_README.txt,Disclaimed,Public domain,,
Expand Down
41 changes: 41 additions & 0 deletions fi_nls/build_FIN2000_05_23.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash -e

# Usage:
# PROJ_DATA_DIR=/path/to/PROJ-data ./build_FIN2000_05_23.sh

# Setup build directory
mkdir -p build
rm -f build/*

run_one () {
vert_code=$1
vert_name=$2
orig=$3
input=$3.xyz
output=$4
echo " lat lon z" > ./build/$input
sed 's/ 0.000/ nan/g' $orig >> ./build/$input
docker run --user $(id -u):$(id -g) --workdir $PWD \
--rm -v /home:/home ghcr.io/osgeo/gdal:ubuntu-full-latest \
sh -c " \
# Call vertoffset_grid_to_gtiff-script
python3 ${PROJ_DATA_DIR}/grid_tools/vertoffset_grid_to_gtiff.py \
--type GEOGRAPHIC_TO_VERTICAL \
--parameter-name geoid_undulation \
--source-crs \"EPSG:10689\" \
--target-crs \"$vert_code\" \
--description \"EUREF-FIN (EPSG:10689) to $vert_name ($vert_code). Converted from $orig\" \
--area-of-use \"Finland\" \
--copyright \"Derived from work by National Land Survey of Finland. CC-BY-4.0 https://creativecommons.org/licenses/by/4.0/\" \
./build/$input ./$output && \
# Run check_gtiff_grid-script
python3 ${PROJ_DATA_DIR}/grid_tools/check_gtiff_grid.py ./$output \
# Show info
gdalinfo ./$output "
}

run_one "EPSG:3900" "N2000 height" "FIN2023N2000.lst" "fi_nls_fin2023n2000.tif"
run_one "EPSG:3900" "N2000 height" "FIN2005N00.lst" "fi_nls_fin2005n00.tif"
run_one "EPSG:5717" "N60 height" "FIN2000.lst" "fi_nls_fin2000.tif"
# Remove build directory
rm -rf build
42 changes: 42 additions & 0 deletions fi_nls/fi_nls_README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,45 @@ Triangulation to transform N43 height (EPSG:8675) to N60 height (EPSG:5717), wit
Triangulation to transform N60 height (EPSG:5717) to N2000 height(EPSG:3900), with interpolation CRS being YKJ (EPSG:2393), with easting/northing order

* fi_nls_n60_n2000.json

### Finland: vertical grid FIN2000

*Source*: [National Land Survey of Finland](https://www.maanmittauslaitos.fi/kartat-ja-paikkatieto/asiantuntevalle-kayttajalle/koordinaattimuunnokset/fin2000-geoidimalli)
*Format*: GeoTIFF converted from 'XYZ'
*License*: [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/)
*Credit*: (c) National Land Survey of Finland
*Horizontal CRS*: EUREF-FIN (EPSG:10689)

Vertical transformation for Geoid model FIN2000. Used to make the transition
from heights in vertical CRS N60 height (EPSG:5717)
to heights above the ellipsoid in EUREF-FIN (EPSG:10689).

* fi_nls_fin2000.tif

### Finland: vertical grid FIN2005N00

*Source*: [National Land Survey of Finland](https://www.maanmittauslaitos.fi/kartat-ja-paikkatieto/asiantuntevalle-kayttajalle/koordinaattimuunnokset/fin2005n00-geoidimalli)
*Format*: GeoTIFF converted from 'XYZ'
*License*: [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/)
*Credit*: (c) National Land Survey of Finland
*Horizontal CRS*: EUREF-FIN (EPSG:10689)

Vertical transformation for Geoid model FIN2005N00. Used to make the transition
from heights in vertical CRS N2000 height (EPSG:3900)
to heights above the ellipsoid in EUREF-FIN (EPSG:10689).

* fi_nls_fin2005n00.tif

### Finland: vertical grid FIN2023N2000

*Source*: [National Land Survey of Finland](https://www.maanmittauslaitos.fi/kartat-ja-paikkatieto/koordinaatit-ja-paikannus/koordinaattimuunnokset/fin2023n2000-geoidimalli)
*Format*: GeoTIFF converted from 'XYZ'
*License*: [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/)
*Credit*: (c) National Land Survey of Finland
*Horizontal CRS*: EUREF-FIN (EPSG:10689)

Vertical transformation for Geoid model FIN2023N2000. Used to make the transition
from heights in vertical CRS N2000 height (EPSG:3900)
to heights above the ellipsoid in EUREF-FIN (EPSG:10689).

* fi_nls_fin2023n2000.tif
Binary file added fi_nls/fi_nls_fin2000.tif
Binary file not shown.
Binary file added fi_nls/fi_nls_fin2005n00.tif
Binary file not shown.
Binary file added fi_nls/fi_nls_fin2023n2000.tif
Binary file not shown.
5 changes: 4 additions & 1 deletion files.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/NKG", "name": "NKG", "source": "The Nordic Geodetic Commission", "source_country": "Europe", "source_id": "eur_nkg", "source_url": "http://www.nordicgeodeticcommission.com/", "file_size": 7515, "sha256sum": "d5fa2d2e0c2089cf01972d7ad8662f3843a8ff63bf0068199a2c1146b81afc25" }, "geometry": null },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/eur_nkg_nkgrf03vel_realigned.tif", "name": "eur_nkg_nkgrf03vel_realigned.tif", "area_of_use": "Nordic and Baltic countries", "type": "VELOCITY", "source_crs_name": "Unknown based on GRS80", "source": "The Nordic Geodetic Commission", "source_country": "Europe", "source_id": "eur_nkg", "source_url": "http://www.nordicgeodeticcommission.com/", "description": "Deformation model covering the Nordic and Baltic countries. Used in transformations between global reference frames and the local realisations of ETRS89 in the Nordic and Baltic countries", "file_size": 362495, "sha256sum": "a646bd863c427c7623eb2b365878351bab9a0a9b67aa6792b2dd31c3ef58e0b9" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 3.0, 53.0 ], [ 40.0, 53.0 ], [ 40.0, 73.0 ], [ 3.0, 73.0 ], [ 3.0, 53.0 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/eur_nkg_nkgrf17vel.tif", "name": "eur_nkg_nkgrf17vel.tif", "area_of_use": "Nordic and Baltic countries", "type": "VELOCITY", "source_crs_code": "EPSG:8403", "source_crs_name": "ETRF2014", "source": "The Nordic Geodetic Commission", "source_country": "Europe", "source_id": "eur_nkg", "source_url": "http://www.nordicgeodeticcommission.com/", "description": "Deformation model covering the Nordic and Baltic countries. Used in transformations between global reference frames and the local realisations of ETRS89 in the Nordic and Baltic countries", "file_size": 715692, "sha256sum": "515f68aeb59f659a3f3c340626cd060f58de6f93b4546df67732b906949e0d66" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -0.0, 49.0 ], [ 50.0, 49.0 ], [ 50.0, 75.0 ], [ -0.0, 75.0 ], [ -0.0, 49.0 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/fi_nls_README.txt", "name": "fi_nls_README.txt", "source": "National Land Survey of Finland (MML)", "source_country": "Finland", "source_id": "fi_nls", "source_url": "https://www.maanmittauslaitos.fi", "file_size": 1490, "sha256sum": "2ce68c637b7a824d96c13707943286e2c81bf69120e05647b53a2d0a84ed7428" }, "geometry": null },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/fi_nls_README.txt", "name": "fi_nls_README.txt", "source": "National Land Survey of Finland (MML)", "source_country": "Finland", "source_id": "fi_nls", "source_url": "https://www.maanmittauslaitos.fi", "file_size": 3458, "sha256sum": "05708b917dd04f8704911c48c6aa0b3eb26643eaa9403bea7157c3563f0223e5" }, "geometry": null },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/fi_nls_fin2000.tif", "name": "fi_nls_fin2000.tif", "area_of_use": "Finland", "type": "VERTICAL_OFFSET_GEOGRAPHIC_TO_VERTICAL", "source_crs_code": "EPSG:10689", "source_crs_name": "EUREF-FIN", "target_crs_code": "EPSG:5717", "target_crs_name": "N60 height", "source": "National Land Survey of Finland (MML)", "source_country": "Finland", "source_id": "fi_nls", "source_url": "https://www.maanmittauslaitos.fi", "description": "EUREF-FIN (EPSG:10689) to N60 height (EPSG:5717)", "file_size": 311425, "sha256sum": "e9a54beb1ed06cc623212f89eb3b30f06db06743ae91d6a99e6751b8fcb948ed", "version_added": "1.21" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 17.5, 59.0 ], [ 33.0, 59.0 ], [ 33.0, 70.7 ], [ 17.5, 70.7 ], [ 17.5, 59.0 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/fi_nls_fin2005n00.tif", "name": "fi_nls_fin2005n00.tif", "area_of_use": "Finland", "type": "VERTICAL_OFFSET_GEOGRAPHIC_TO_VERTICAL", "source_crs_code": "EPSG:10689", "source_crs_name": "EUREF-FIN", "target_crs_code": "EPSG:3900", "target_crs_name": "N2000 height", "source": "National Land Survey of Finland (MML)", "source_country": "Finland", "source_id": "fi_nls", "source_url": "https://www.maanmittauslaitos.fi", "description": "EUREF-FIN (EPSG:10689) to N2000 height (EPSG:3900)", "file_size": 475127, "sha256sum": "c9418ffcd050ca57b95207b4aa05b229f833cd13afcaea7de566d9cefab2b8ac", "version_added": "1.21" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 17.48, 59.0 ], [ 33.0, 59.0 ], [ 33.0, 70.7 ], [ 17.48, 70.7 ], [ 17.48, 59.0 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/fi_nls_fin2023n2000.tif", "name": "fi_nls_fin2023n2000.tif", "area_of_use": "Finland", "type": "VERTICAL_OFFSET_GEOGRAPHIC_TO_VERTICAL", "source_crs_code": "EPSG:10689", "source_crs_name": "EUREF-FIN", "target_crs_code": "EPSG:3900", "target_crs_name": "N2000 height", "source": "National Land Survey of Finland (MML)", "source_country": "Finland", "source_id": "fi_nls", "source_url": "https://www.maanmittauslaitos.fi", "description": "EUREF-FIN (EPSG:10689) to N2000 height (EPSG:3900)", "file_size": 1167439, "sha256sum": "82ce62ed36910a61fc79010702b3e48fdb45cdfc90a248114ac90a7cb5e30cf7", "version_added": "1.21" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 19.0, 58.8 ], [ 31.98, 58.8 ], [ 31.98, 70.19 ], [ 19.0, 70.19 ], [ 19.0, 58.8 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/fi_nls_n43_n60.json", "name": "fi_nls_n43_n60.json", "area_of_use": "Finland - mainland south of 66°N", "type": "TRIANGULATION", "source": "National Land Survey of Finland (MML)", "source_country": "Finland", "source_id": "fi_nls", "source_url": "https://www.maanmittauslaitos.fi", "description": "N43 height (EPSG:8675) to N60 height (EPSG:5717), with interpolation CRS being YKJ (EPSG:2393), with easting/northing order (version 1.0)", "file_size": 185763, "sha256sum": "b0c0c5eecfd8455ea51ae8a06554e522daecb7e5362fde04de9866e7f1bfd21b" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 20.95, 59.75 ], [ 31.59, 59.75 ], [ 31.59, 66.73 ], [ 20.95, 66.73 ], [ 20.95, 59.75 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/fi_nls_n60_n2000.json", "name": "fi_nls_n60_n2000.json", "area_of_use": "Finland - onshore", "type": "TRIANGULATION", "source": "National Land Survey of Finland (MML)", "source_country": "Finland", "source_id": "fi_nls", "source_url": "https://www.maanmittauslaitos.fi", "description": "N60 height (EPSG:5717) to N2000 height(EPSG:3900), with interpolation CRS being YKJ (EPSG:2393), with easting/northing order (version 1.0)", "file_size": 42394, "sha256sum": "761f54ed3d14f8da6ce8d376e18ebba6bc7c227cb9fda034960b0cf124f9194c" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 19.24, 59.75 ], [ 31.59, 59.75 ], [ 31.59, 70.04 ], [ 19.24, 70.04 ], [ 19.24, 59.75 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/fi_nls_ykj_etrs35fin.json", "name": "fi_nls_ykj_etrs35fin.json", "area_of_use": "Finland - onshore", "type": "TRIANGULATION", "source": "National Land Survey of Finland (MML)", "source_country": "Finland", "source_id": "fi_nls", "source_url": "https://www.maanmittauslaitos.fi", "description": "Triangulation to transform coordinates from YKJ (EPSG:2393), with easting/northing order, to ETRS35FIN (EPSG:3067) (version 1.0)", "file_size": 65772, "sha256sum": "2ce793e4fc215d479da916d0888fe6e45cfdc91c4d41b0aa79351be4dac723dc" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 19.24, 59.75 ], [ 31.59, 59.75 ], [ 31.59, 70.04 ], [ 19.24, 70.04 ], [ 19.24, 59.75 ] ] ] } },
Expand Down
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,10 @@ <h2>Content</h2>
<li><a style="word-break: break-word" href="eur_nkg_nkgrf03vel_realigned.tif">eur_nkg_nkgrf03vel_realigned.tif</a> - Nordic and Baltic countries - Deformation model covering the Nordic and Baltic countries. Used in transformations between global reference frames and the local realisations of ETRS89 in the Nordic and Baltic countries. Last modified: 2020-01-24</li>
<li><a style="word-break: break-word" href="eur_nkg_nkgrf17vel.tif">eur_nkg_nkgrf17vel.tif</a> - Nordic and Baltic countries - Deformation model covering the Nordic and Baltic countries. Used in transformations between global reference frames and the local realisations of ETRS89 in the Nordic and Baltic countries. Last modified: 2020-12-21</li>
</ul><hr><h3><a href="https://www.maanmittauslaitos.fi">National Land Survey of Finland (MML)</a></h3><ul>
<li><a style="word-break: break-word" href="fi_nls_README.txt">fi_nls_README.txt</a>. Last modified: 2020-10-23</li>
<li><a style="word-break: break-word" href="fi_nls_README.txt">fi_nls_README.txt</a>. Last modified: 2024-12-16</li>
<li><a style="word-break: break-word" href="fi_nls_fin2000.tif">fi_nls_fin2000.tif</a> - Finland - EUREF-FIN (EPSG:10689) to N60 height (EPSG:5717). Last modified: 2024-12-16</li>
<li><a style="word-break: break-word" href="fi_nls_fin2005n00.tif">fi_nls_fin2005n00.tif</a> - Finland - EUREF-FIN (EPSG:10689) to N2000 height (EPSG:3900). Last modified: 2024-12-16</li>
<li><a style="word-break: break-word" href="fi_nls_fin2023n2000.tif">fi_nls_fin2023n2000.tif</a> - Finland - EUREF-FIN (EPSG:10689) to N2000 height (EPSG:3900). Size: 1.1 MB. Last modified: 2024-12-16</li>
<li><a style="word-break: break-word" href="fi_nls_n43_n60.json">fi_nls_n43_n60.json</a> - N43 height (EPSG:8675) to N60 height (EPSG:5717), with interpolation CRS being YKJ (EPSG:2393), with easting/northing order (version 1.0). Last modified: 2020-10-24</li>
<li><a style="word-break: break-word" href="fi_nls_n60_n2000.json">fi_nls_n60_n2000.json</a> - N60 height (EPSG:5717) to N2000 height(EPSG:3900), with interpolation CRS being YKJ (EPSG:2393), with easting/northing order (version 1.0). Last modified: 2020-10-24</li>
<li><a style="word-break: break-word" href="fi_nls_ykj_etrs35fin.json">fi_nls_ykj_etrs35fin.json</a> - Triangulation to transform coordinates from YKJ (EPSG:2393), with easting/northing order, to ETRS35FIN (EPSG:3067) (version 1.0). Last modified: 2020-10-24</li>
Expand Down Expand Up @@ -997,7 +1000,7 @@ <h2>Content</h2>
<li><a style="word-break: break-word" href="za_cdngi_sageoid2010.tif">za_cdngi_sageoid2010.tif</a> - South Africa - ITRF2005 (EPSG:7910) to SA LLD height (EPSG:9279). Last modified: 2021-10-18</li>
</ul>
<p>
Total size of content: 753 MB
Total size of content: 755 MB
</p>

<h2>Logs</h2>
Expand Down
3 changes: 3 additions & 0 deletions travis/expected_main.lst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ es_ign_SPED2ETV2.tif
eur_nkg_nkgrf03vel_realigned.tif
eur_nkg_nkgrf17vel.tif
eur_nkg_README.txt
fi_nls_fin2000.tif
fi_nls_fin2005n00.tif
fi_nls_fin2023n2000.tif
fi_nls_n43_n60.json
fi_nls_n60_n2000.json
fi_nls_README.txt
Expand Down

0 comments on commit 6b3ed8e

Please sign in to comment.