diff --git a/public/images/earthdata-aster-dem.png b/public/images/earthdata-aster-dem.png new file mode 100644 index 00000000..b31f0d45 Binary files /dev/null and b/public/images/earthdata-aster-dem.png differ diff --git a/src/pages/documentation/examples/_meta.json b/src/pages/documentation/examples/_meta.json index 540557cc..27588bb0 100644 --- a/src/pages/documentation/examples/_meta.json +++ b/src/pages/documentation/examples/_meta.json @@ -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", diff --git a/src/pages/documentation/examples/import-contour-into-postgis.mdx b/src/pages/documentation/examples/contour-lines-in-vector-tiles.mdx similarity index 71% rename from src/pages/documentation/examples/import-contour-into-postgis.mdx rename to src/pages/documentation/examples/contour-lines-in-vector-tiles.mdx index 999afc4e..0356484f 100644 --- a/src/pages/documentation/examples/import-contour-into-postgis.mdx +++ b/src/pages/documentation/examples/contour-lines-in-vector-tiles.mdx @@ -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 \