Fix layout again

pull/78/head
Konstantin Gründger 2019-03-17 15:09:01 +01:00
rodzic cfb918ccc4
commit 250e0cf738
1 zmienionych plików z 9 dodań i 8 usunięć

Wyświetl plik

@ -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