This is an automated email from the ASF dual-hosted git repository. leonardcs pushed a commit to branch feature/download-dem in repository https://gitbox.apache.org/repos/asf/incubator-baremaps-site.git
commit 3e293ff3c1aac2d8f43a6372bc138910dff86426 Author: Leonard <[email protected]> AuthorDate: Fri Aug 4 16:07:45 2023 +0200 Document downloading aster dem --- public/images/earthdata-aster-dem.png | Bin 0 -> 3025781 bytes .../examples/contour-lines-in-vector-tiles.mdx | 32 +++++++++++++++++---- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/public/images/earthdata-aster-dem.png b/public/images/earthdata-aster-dem.png new file mode 100644 index 0000000..b31f0d4 Binary files /dev/null and b/public/images/earthdata-aster-dem.png differ diff --git a/src/pages/documentation/examples/contour-lines-in-vector-tiles.mdx b/src/pages/documentation/examples/contour-lines-in-vector-tiles.mdx index 999afc4..0356484 100644 --- a/src/pages/documentation/examples/contour-lines-in-vector-tiles.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. + + + +**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 \
