You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by ad...@apache.org on 2023/01/04 15:29:46 UTC

[incubator-baremaps-site] branch main updated: Update extrusion example (#7)

This is an automated email from the ASF dual-hosted git repository.

adrabble 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 c0d4533  Update extrusion example (#7)
c0d4533 is described below

commit c0d45332508734169cb526448b3fe06ac55ae81a
Author: Antoine Drabble <an...@gmail.com>
AuthorDate: Wed Jan 4 16:29:42 2023 +0100

    Update extrusion example (#7)
---
 _data/menu.yaml                                    |   2 ++
 examples/{_extrusion => extrusion}/index.md        |  13 +++++++++----
 examples/{_extrusion => extrusion}/screenshot.png  | Bin
 examples/import-naturalearth-into-postgis/index.md |   2 +-
 examples/index.md                                  |   1 +
 5 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/_data/menu.yaml b/_data/menu.yaml
index 246fa4b..c41a5b1 100644
--- a/_data/menu.yaml
+++ b/_data/menu.yaml
@@ -19,6 +19,8 @@ items:
         url: /examples/import-contour-into-postgis/
       - page: Serve vector tiles from PostGIS
         url: /examples/serve-vector-tiles/
+      - page: Extrusion of vector tiles from OSM data
+        url: /examples/extrusion/
       - page: Create an IP to location web service
         url: /examples/ip-to-location/
       - page: Create a geocoding web service
diff --git a/examples/_extrusion/index.md b/examples/extrusion/index.md
similarity index 85%
rename from examples/_extrusion/index.md
rename to examples/extrusion/index.md
index 9a26bce..a27764a 100644
--- a/examples/_extrusion/index.md
+++ b/examples/extrusion/index.md
@@ -1,9 +1,10 @@
 ---
-layout: default 
-title: Extrusion Example
+layout: default
+title: Extrusion of vector tiles from OSM data
+permalink: /examples/extrusion/
 ---
 
-# Extrusion Example
+# Extrusion of vector tiles from OSM data
 
 This example builds upon the [OpenStreetMap example](https://www.baremaps.com/examples/openstreetmap/) and shows how 3d
 buildings can be extruded with Maplibre. First, start by downloading the OSM data for London in the current directory.
@@ -11,7 +12,7 @@ buildings can be extruded with Maplibre. First, start by downloading the OSM dat
 To import London data in the database.
 
 ```
-baremaps workflow execute --file workflow.json
+baremaps workflow execute --file examples/extrusion/workflow.json
 ```
 
 In the [tileset.json](https://raw.githubusercontent.com/apache/incubator-baremaps/main/examples/extrusion/tileset.json)
@@ -72,3 +73,7 @@ Well done, a map of London with extruded buildings should now appear in your [br
 
 ![Tile viewer](screenshot.png)
 
+
+## Conclusion
+
+In this tutorial, we learnt how to import OSM data in PostGIS with a workflow and then use the MVT specification to extrude the vector tiles into a 3d object.
\ No newline at end of file
diff --git a/examples/_extrusion/screenshot.png b/examples/extrusion/screenshot.png
similarity index 100%
rename from examples/_extrusion/screenshot.png
rename to examples/extrusion/screenshot.png
diff --git a/examples/import-naturalearth-into-postgis/index.md b/examples/import-naturalearth-into-postgis/index.md
index eb1b78a..cf09fd7 100644
--- a/examples/import-naturalearth-into-postgis/index.md
+++ b/examples/import-naturalearth-into-postgis/index.md
@@ -1,7 +1,7 @@
 ---
 layout: default
 title: Import Natural Earth data into PostGIS
-permalink: /examples//import-naturalearth-into-postgis/
+permalink: /examples/import-naturalearth-into-postgis/
 ---
 
 # Import Natural Earth data into PostGIS
diff --git a/examples/index.md b/examples/index.md
index ceddea0..7001b5e 100644
--- a/examples/index.md
+++ b/examples/index.md
@@ -20,6 +20,7 @@ For the creation of custom vector tiles you can follow these guides:
 - The [OpenStreetMap](/examples/import-osm-into-postgis/) example is a good introduction to Baremaps, it shows how to produce high resolution vector tiles.
 - The [NaturalEarth](/examples/import-naturalearth-into-postgis/) example shows how to produce low resolution vector tiles.
 - The [Contour](/examples/import-contour-into-postgis/) example shows how to produce contour lines from a digital elevation model.
+- The [Extrusion](/examples/extrusion/) example shows how to import OSM data into postgis and use the MVT specification to extrude the vectors into 3d.
 
 For the creation of an IP to location service follow this guide: