From 250e0cf738bf040cc473a881a29d7ebafd5097a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Gru=CC=88ndger?= Date: Sun, 17 Mar 2019 15:09:01 +0100 Subject: [PATCH] Fix layout again --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 081d976..ad5a219 100644 --- a/README.md +++ b/README.md @@ -56,20 +56,21 @@ For best performance you should use [TimescaleDB](https://www.timescale.com), wh psql -d ogn -c "DROP TABLE world_borders_temp;" ``` -8. Import world elevation data (needed for AGL calculation) +8. Get world elevation data (needed for AGL calculation) + Sources: There are many sources for DEM data. It is important that the spatial reference system (SRID) is the same as the database which is 4326. + The [GMTED2010 Viewer](https://topotools.cr.usgs.gov/gmted_viewer/viewer.htm) provides data for the world. Just download the data you need. + For Europe we can get the DEM as GeoTIFF files from the [European Environment Agency](https://land.copernicus.eu/imagery-in-situ/eu-dem/eu-dem-v1.1). + Because the SRID of these files is 3035 and we want 4326 we have to convert them (next step) + +9. Convert the elevation data into correct SRID -8.1 Sources: There are many sources for DEM data. It is important that the spatial reference system (SRID) is the same as the database which is 4326. - -8.1.1 The [GMTED2010 Viewer](https://topotools.cr.usgs.gov/gmted_viewer/viewer.htm) provides data for the world. Just download the data you need. - -8.1.2 For Europe we can get the DEM as GeoTIFF files from the [European Environment Agency](https://land.copernicus.eu/imagery-in-situ/eu-dem/eu-dem-v1.1). - Because the SRID of these files is 3035 and we want 4326 we have to convert them: + We convert elevation from one SRID (here: 3035) to target SRID (4326): ``` gdalwarp -s_srs "EPSG:3035" -t_srs "EPSG:4326" source.tif target.tif ``` -8.2 Then we can import the GeoTIFF into the elevation table: +10. Import the GeoTIFF into the elevation table: ``` raster2pgsql -s 4326 -c -C -I -M -t 100x100 elevation_data.tif public.elevation | psql -d ogn