This is an automated email from the ASF dual-hosted git repository.
bchapuis pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps-site.git
The following commit(s) were added to refs/heads/main by this push:
new 5576665 Document downloading Aster DEM (#42)
5576665 is described below
commit 5576665313b5759084a8bd584ba236ab66528eff
Author: Leonard <[email protected]>
AuthorDate: Sat Feb 3 20:11:12 2024 +0100
Document downloading Aster DEM (#42)
---
public/images/earthdata-aster-dem.png | Bin 0 -> 3025781 bytes
src/pages/documentation/examples/_meta.json | 2 +-
...stgis.mdx => contour-lines-in-vector-tiles.mdx} | 32 +++++++++++++++++----
3 files changed, 28 insertions(+), 6 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/_meta.json
b/src/pages/documentation/examples/_meta.json
index 540557c..27588bb 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 999afc4..0356484 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.
+
+
+
+**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 \