This is an automated email from the ASF dual-hosted git repository. adrabble pushed a commit to branch extrusion in repository https://gitbox.apache.org/repos/asf/incubator-baremaps-site.git
commit 670937703d3974fcb2a2553abc1c3a72cac04f95 Author: Antoine Drabble <[email protected]> AuthorDate: Wed Jan 4 16:18:50 2023 +0100 Update the extrusion example --- _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 58f3411..3cde302 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  + +## 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:
