-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a95bb2d
commit 4bd3b8e
Showing
11 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../ar_ign_README.txt |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# ar_ign_README.txt | ||
|
||
The files in this section result from the conversion of datasets originating | ||
from [IGN](https://www.ign.gob.ar/) | ||
|
||
## Included grids | ||
|
||
### Argentinian vertical grid: | ||
|
||
*Source*: [IGN](https://www.ign.gob.ar/NuestrasActividades/Geodesia/Geoide-Ar16/DocumentacionTecnica) | ||
*Format*: GeoTIFF converted from 'AAIGrid' (adjusted) | ||
*License*: [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/) | ||
*Credit*: (c) Instituto Geográfico Nacional - Argentina | ||
*Horizontal CRS*: EPSG:5342 (POSGAR 2007) | ||
|
||
Vertical transformation for Geoid model GEOIDE-Ar16. Used to make the transition | ||
from heights in vertical CRS SRVN16 height (EPSG:9255) | ||
to heights above the ellipsoid in POSGAR 2007 (EPSG:5342). | ||
|
||
* ar_ign_GEOIDE-Ar16.tif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_GEOIDE-Ar16.sh | ||
|
||
# Setup build directory | ||
mkdir -p build | ||
|
||
# Copy input file into build directory | ||
wget https://dnsg.ign.gob.ar/apps/geoidear/documentos/GEOIDE-Ar16.gri -P ./build/ | ||
orig=GEOIDE-Ar16.gri | ||
input=GEOIDE-Ar16.asc | ||
output=ar_ign_GEOIDE-Ar16.tif | ||
awk '/^ .*$/ {print "NCOLS "($4-$3)/$6+1 "\nNROWS "($2-$1)/$5+1 "\nXLLCENTER "$3 "\nYLLCENTER "$1 "\nCELLSIZE "$6} /^-?[0-9].*$/ {print $0}' ./build/$orig > ./build/$input | ||
# produces this header | ||
#NCOLS 1440 | ||
#NROWS 2220 | ||
#XLLCENTER -76.0000000000 | ||
#YLLCENTER -57.0007400000 | ||
#CELLSIZE 0.01666700000000000 | ||
|
||
head ./build/$input | ||
|
||
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:5342\" \ | ||
--target-crs \"EPSG:9255\" \ | ||
--description \"POSGAR 2007 (EPSG:5342) to SRVN16 height (EPSG:9255). Converted from $orig\" \ | ||
--area-of-use \"Argentina - onshore\" \ | ||
--copyright \"Derived from work by IGN Argentina. CC-BY-4.0 https://creativecommons.org/licenses/by/4.0/\" \ | ||
./build/$input ./$output && \ | ||
# Show info | ||
gdalinfo ./$output " | ||
|
||
# Remove build directory | ||
rm -rf build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters