Skip to content

Commit

Permalink
Document downloading Aster DEM (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardcser authored Feb 3, 2024
1 parent 8587081 commit 5576665
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
Binary file added public/images/earthdata-aster-dem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/pages/documentation/examples/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"import-osm-into-postgis": "Import OpenStreetMap into PostGIS",
"serve-and-export-vector-tiles": "Serve and Export Vector Tiles from PostGIS",
"import-contour-into-postgis": "Contour Lines in Vector Tiles",
"contour-lines-in-vector-tiles": "Contour Lines in Vector Tiles",
"import-naturalearth-into-postgis": "Import Natural Earth data into PostGIS",
"extrusion": "Extrusion of vector tiles from OSM data",
"ip-to-location": "Create an IP to location web service",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,35 @@ following command:
sudo apt-get install gdal-bin
```

## Downloading the DEM Data

The first step is to download the DEM data. For this tutorial, we will be
using the [ASTER](https://asterweb.jpl.nasa.gov/gdem.asp) dataset.

You can download it from the
[NASA Earthdata](https://search.earthdata.nasa.gov/search/granules?p=C1711961296-LPCLOUD&pg[0][v]=f&pg[0][gsk]=-start_date&q=aster%20v3&tl=1691157297.898!3!!)
website. You can either select the "granules" or click on the `Download All`
button to download the entire dataset.

> Note: You will need to create a free account on NASA Earthdata to download the data.
![Earthdata ASTER DEM](/images/earthdata-aster-dem.png)

**Alternative Datasets**

If you want to use a different DEM dataset, below is a list of some other
options:

- [SRTM](https://www2.jpl.nasa.gov/srtm/)
- [COPERNICUS-DEM](https://registry.opendata.aws/copernicus-dem/) (note:
contains quite some artifacts)

## Reprojecting the GeoTiff

We will be using the [ASTER](https://asterweb.jpl.nasa.gov/gdem.asp) dataset
for this example. The geotiff file provided in this tutorial is already in
the desired projection (WebMercator), but in case you want to use a different
geotiff file, you can use the gdalwarp command to reproject it. Here's an
example of how to do it:
The geotiff file provided in this tutorial is already in the desired
projection (WebMercator), but in case you want to use a different geotiff
file, you can use the gdalwarp command to reproject it. Here's an example of
how to do it:

```
gdalwarp -rc \
Expand Down

0 comments on commit 5576665

Please sign in to comment.