Skip to content

Commit

Permalink
Merge pull request #119 from jjimenezshaw/cz-geoid
Browse files Browse the repository at this point in the history
Add Czech geoid model CR-2005
  • Loading branch information
rouault committed Feb 19, 2024
2 parents c81e61e + 1e0ce7f commit cb9f710
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ set(CPACK_SOURCE_INSTALLED_DIRECTORIES
"${CMAKE_CURRENT_SOURCE_DIR}/ca_nrc/" "."
"${CMAKE_CURRENT_SOURCE_DIR}/ca_que_mern/" "."
"${CMAKE_CURRENT_SOURCE_DIR}/ch_swisstopo/" "."
"${CMAKE_CURRENT_SOURCE_DIR}/cz_cuzk/" "."
"${CMAKE_CURRENT_SOURCE_DIR}/de_adv/" "."
"${CMAKE_CURRENT_SOURCE_DIR}/de_bkg/" "."
"${CMAKE_CURRENT_SOURCE_DIR}/de_geosn/" "."
Expand Down
6 changes: 6 additions & 0 deletions agency.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
"agency":"Swisstopo Federal Office of Topography",
"url": "https://www.swisstopo.admin.ch/en/knowledge-facts/surveying-geodesy/reference-frames/transformations-position.html"
},
{
"id": "cz_cuzk",
"country": "Czech Republic",
"agency":"ČÚZK",
"url": "https://geoportal.cuzk.cz/"
},
{
"id": "de_adv",
"country": "Germany",
Expand Down
2 changes: 2 additions & 0 deletions copyright_and_licenses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ ch_swisstopo_CHENyx06_ETRS.tif,"2007, Swisstopo",CC0-1.0,,
ch_swisstopo_chgeo2004_ETRS89_LHN95.tif,Swisstopo,CC0-1.0,,
ch_swisstopo_chgeo2004_ETRS89_LN02.tif,Swisstopo,CC0-1.0,,
ch_swisstopo_README.txt,Disclaimed,Public domain,,
cz_cuzk_CR-2005.tif,ČÚZK,CC-BY-4.0,1.17,
cz_cuzk_README.txt,Disclaimed,Public domain,1.17,
de_adv_BETA2007.tif,ADV,Free redistribution is allowed and welcome,,
de_adv_README.txt,Disclaimed,Public domain,,
de_bkg_gcg2016.tif,BKG,CC-BY-4.0,1.16,
Expand Down
1 change: 1 addition & 0 deletions cz_cuzk/.github/README.md
29 changes: 29 additions & 0 deletions cz_cuzk/build_CR-2005.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash -e

# https://geoportal.cuzk.cz/(S(dxlr1cfbjo0sj0my5vzaa22h))/Default.aspx?mode=TextMeta&side=sit.trans&text=souradsystemy
# Download https://geoportal.cuzk.cz/dokumenty/CR2005.GTX.zip

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

orig=CR2005_AAIGrid.asc
input=$orig
output=cz_cuzk_CR-2005.tif

docker run --user $(id -u):$(id -g) --workdir $PWD \
--rm -v /home:/home ghcr.io/osgeo/gdal:alpine-normal-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:4937\" \
--target-crs \"EPSG:8357\" \
--description \"ETRS89 (EPSG:4937) to Baltic 1957 height (EPSG:8357). Converted from $orig\" \
--area-of-use \"Czechia\" \
--copyright \"Derived from work by ČÚZK Czechia. CC-BY-4.0 https://creativecommons.org/licenses/by/4.0/\" \
./$input ./$output && \
# Run check_gtiff_grid-script
python3 ${PROJ_DATA_DIR}/grid_tools/check_gtiff_grid.py ./$output \
# Show info
gdalinfo ./$output "
Binary file added cz_cuzk/cz_cuzk_CR-2005.tif
Binary file not shown.
21 changes: 21 additions & 0 deletions cz_cuzk/cz_cuzk_README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# cz_cuzk_README.txt

The files in this section result from the conversion of datasets originating
from [ČÚZK](https://geoportal.cuzk.cz/)

## Included grids

### Czech vertical grid:

*Source*: [ČÚZK](https://geoportal.cuzk.cz/dokumenty/CR2005.GTX.zip)
*Format*: GeoTIFF converted from 'AAIGrid'
*License*: [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/)
*Credit*: (c) ČÚZK - Czech Republic
*Horizontal CRS*: EPSG:4937 (ETRS89)

Vertical transformation for Geoid model CR-2005. Used to make the transition
from heights in vertical CRS Baltic 1957 height (EPSG:8357)
to heights above the ellipsoid in ETRS89 (EPSG:4937).

* cz_cuzk_CR-2005.tif

2 changes: 2 additions & 0 deletions files.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/ch_swisstopo_CHENyx06a.tif", "name": "ch_swisstopo_CHENyx06a.tif", "area_of_use": "Switzerland", "type": "HORIZONTAL_OFFSET", "source_crs_code": "EPSG:4149", "source_crs_name": "CH1903", "target_crs_code": "EPSG:4150", "target_crs_name": "CH1903+", "source": "Swisstopo Federal Office of Topography", "source_country": "Switzerland", "source_id": "ch_swisstopo", "source_url": "https://www.swisstopo.admin.ch/en/knowledge-facts/surveying-geodesy/reference-frames/transformations-position.html", "description": "CH1903 (EPSG:4149) to CH1903+ (EPSG:4150)", "file_size": 1021779, "sha256sum": "986d81da9445bdd4cbc3b5e36d8ccdad757d7e09246da68040dd21e53bdfbe40" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.55, 45.4666667 ], [ 11.05, 45.4666667 ], [ 11.05, 48.0666667 ], [ 5.55, 48.0666667 ], [ 5.55, 45.4666667 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/ch_swisstopo_chgeo2004_ETRS89_LHN95.tif", "name": "ch_swisstopo_chgeo2004_ETRS89_LHN95.tif", "area_of_use": "Switzerland", "type": "VERTICAL_OFFSET_GEOGRAPHIC_TO_VERTICAL", "source_crs_code": "EPSG:4937", "source_crs_name": "ETRS89", "target_crs_code": "EPSG:5729", "target_crs_name": "LHN95 height", "source": "Swisstopo Federal Office of Topography", "source_country": "Switzerland", "source_id": "ch_swisstopo", "source_url": "https://www.swisstopo.admin.ch/en/knowledge-facts/surveying-geodesy/reference-frames/transformations-position.html", "description": "ETRS89 (EPSG:4937) to LHN95 height (EPSG:5729)", "file_size": 259441, "sha256sum": "459e317ba9bf1f744ad920b3fe0d6ee0b1bdfc960cad7d4ea428db7bb229280f" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.85, 45.75 ], [ 10.5, 45.75 ], [ 10.5, 47.85 ], [ 5.85, 47.85 ], [ 5.85, 45.75 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/ch_swisstopo_chgeo2004_ETRS89_LN02.tif", "name": "ch_swisstopo_chgeo2004_ETRS89_LN02.tif", "area_of_use": "Switzerland", "type": "VERTICAL_OFFSET_GEOGRAPHIC_TO_VERTICAL", "source_crs_code": "EPSG:4937", "source_crs_name": "ETRS89", "target_crs_code": "EPSG:5728", "target_crs_name": "LN02 height", "source": "Swisstopo Federal Office of Topography", "source_country": "Switzerland", "source_id": "ch_swisstopo", "source_url": "https://www.swisstopo.admin.ch/en/knowledge-facts/surveying-geodesy/reference-frames/transformations-position.html", "description": "ETRS89 (EPSG:4937) to LN02 height (EPSG:5728)", "file_size": 295192, "sha256sum": "ec9638c152f4519278b3e7a781d1a7c2769bd54de39accec099bd5036f4fd214" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.85, 45.75 ], [ 10.5, 45.75 ], [ 10.5, 47.85 ], [ 5.85, 47.85 ], [ 5.85, 45.75 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/cz_cuzk_README.txt", "name": "cz_cuzk_README.txt", "source": "ČÚZK", "source_country": "Czech Republic", "source_id": "cz_cuzk", "source_url": "https://geoportal.cuzk.cz/", "file_size": 684, "sha256sum": "92f0ccdd74c6c017d55de04ad14d8f1d376017b69bb3d12f2ccc462912ed5bbe", "version_added": "1.17" }, "geometry": null },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/cz_cuzk_CR-2005.tif", "name": "cz_cuzk_CR-2005.tif", "area_of_use": "Czechia", "type": "VERTICAL_OFFSET_GEOGRAPHIC_TO_VERTICAL", "source_crs_code": "EPSG:4937", "source_crs_name": "ETRS89", "target_crs_code": "EPSG:8357", "target_crs_name": "Baltic 1957 height", "source": "ČÚZK", "source_country": "Czech Republic", "source_id": "cz_cuzk", "source_url": "https://geoportal.cuzk.cz/", "description": "ETRS89 (EPSG:4937) to Baltic 1957 height (EPSG:8357)", "file_size": 106664, "sha256sum": "2fba4e5bcd3e48f737b3655d5a7c196de1c56e199967f7e12311710646d4f0a1", "version_added": "1.17" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 11.7, 48.3 ], [ 19.325, 48.3 ], [ 19.325, 51.2 ], [ 11.7, 51.2 ], [ 11.7, 48.3 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/de_adv_README.txt", "name": "de_adv_README.txt", "source": "Arbeitsgemeinschaft der Vermessungsverwaltungender der Länder der Bundesrepublik Deutschland (AdV)", "source_country": "Germany", "source_id": "de_adv", "source_url": "http://www.adv-online.de/icc/extdeu/nav/9ae/9ae594bb-a094-311a-3b21-718a438ad1b2&sel_uCon=3c10e056-7955-311a-3b21-718a438ad1b2&uTem=73d607d6-b048-65f1-80fa-29f08a07b51a.htm", "file_size": 802, "sha256sum": "69c387720cba6f596671de999d8a9683194fa5787294d2e10f81ed90e04ba11c" }, "geometry": null },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/de_adv_BETA2007.tif", "name": "de_adv_BETA2007.tif", "area_of_use": "Germany", "type": "HORIZONTAL_OFFSET", "source_crs_code": "EPSG:4314", "source_crs_name": "DHDN", "target_crs_code": "EPSG:4258", "target_crs_name": "ETRS89", "source": "Arbeitsgemeinschaft der Vermessungsverwaltungender der Länder der Bundesrepublik Deutschland (AdV)", "source_country": "Germany", "source_id": "de_adv", "source_url": "http://www.adv-online.de/icc/extdeu/nav/9ae/9ae594bb-a094-311a-3b21-718a438ad1b2&sel_uCon=3c10e056-7955-311a-3b21-718a438ad1b2&uTem=73d607d6-b048-65f1-80fa-29f08a07b51a.htm", "description": "DHDN (EPSG:4314) to ETRS89 (EPSG:4258)", "file_size": 24379, "sha256sum": "46e681fcc7d022dde1db1f9d0a3426a9bfb1d4a151af69a81b3c30104c9388e2" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 5.5, 47.0 ], [ 15.6666667, 47.0 ], [ 15.6666667, 55.3 ], [ 5.5, 55.3 ], [ 5.5, 47.0 ] ] ] } },
{ "type": "Feature", "properties": { "url": "https://cdn.proj.org/de_bkg_README.txt", "name": "de_bkg_README.txt", "source": "Bundesamt für Kartographie und Geodäsie (BKG)", "source_country": "Germany", "source_id": "de_bkg", "source_url": "https://gdz.bkg.bund.de/index.php/default/digitale-geodaten.html", "file_size": 840, "sha256sum": "032f7f735dd47f381488cc9476b4ff491caea4e094fbe8d4688da3e88515be51", "version_added": "1.16" }, "geometry": null },
Expand Down
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ <h2>Content</h2>
<li><a style="word-break: break-word" href="ch_swisstopo_CHENyx06a.tif">ch_swisstopo_CHENyx06a.tif</a> - Switzerland - CH1903 (EPSG:4149) to CH1903+ (EPSG:4150). Last modified: 2020-01-24</li>
<li><a style="word-break: break-word" href="ch_swisstopo_chgeo2004_ETRS89_LHN95.tif">ch_swisstopo_chgeo2004_ETRS89_LHN95.tif</a> - Switzerland - ETRS89 (EPSG:4937) to LHN95 height (EPSG:5729). Last modified: 2021-03-25</li>
<li><a style="word-break: break-word" href="ch_swisstopo_chgeo2004_ETRS89_LN02.tif">ch_swisstopo_chgeo2004_ETRS89_LN02.tif</a> - Switzerland - ETRS89 (EPSG:4937) to LN02 height (EPSG:5728). Last modified: 2021-03-25</li>
</ul><hr><h3><a href="https://geoportal.cuzk.cz/">ČÚZK</a></h3><ul>
<li><a style="word-break: break-word" href="cz_cuzk_README.txt">cz_cuzk_README.txt</a>. Last modified: 2024-02-12</li>
<li><a style="word-break: break-word" href="cz_cuzk_CR-2005.tif">cz_cuzk_CR-2005.tif</a> - Czechia - ETRS89 (EPSG:4937) to Baltic 1957 height (EPSG:8357). Last modified: 2024-02-12</li>
</ul><hr><h3><a href="http://www.adv-online.de/icc/extdeu/nav/9ae/9ae594bb-a094-311a-3b21-718a438ad1b2&amp;sel_uCon=3c10e056-7955-311a-3b21-718a438ad1b2&amp;uTem=73d607d6-b048-65f1-80fa-29f08a07b51a.htm">Arbeitsgemeinschaft der Vermessungsverwaltungender der Länder der Bundesrepublik Deutschland (AdV)</a></h3><ul>
<li><a style="word-break: break-word" href="de_adv_README.txt">de_adv_README.txt</a>. Last modified: 2020-01-24</li>
<li><a style="word-break: break-word" href="de_adv_BETA2007.tif">de_adv_BETA2007.tif</a> - Germany - DHDN (EPSG:4314) to ETRS89 (EPSG:4258). Last modified: 2020-01-24</li>
Expand Down
2 changes: 2 additions & 0 deletions travis/expected_main.lst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ ch_swisstopo_CHENyx06_ETRS.tif
ch_swisstopo_chgeo2004_ETRS89_LHN95.tif
ch_swisstopo_chgeo2004_ETRS89_LN02.tif
ch_swisstopo_README.txt
cz_cuzk_CR-2005.tif
cz_cuzk_README.txt
copyright_and_licenses.csv
de_adv_BETA2007.tif
de_adv_README.txt
Expand Down

0 comments on commit cb9f710

Please sign in to comment.