Skip to content

Commit c0d4533

Browse files
authored
Update extrusion example (#7)
1 parent c6afa29 commit c0d4533

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

_data/menu.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ items:
1919
url: /examples/import-contour-into-postgis/
2020
- page: Serve vector tiles from PostGIS
2121
url: /examples/serve-vector-tiles/
22+
- page: Extrusion of vector tiles from OSM data
23+
url: /examples/extrusion/
2224
- page: Create an IP to location web service
2325
url: /examples/ip-to-location/
2426
- page: Create a geocoding web service
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
---
2-
layout: default
3-
title: Extrusion Example
2+
layout: default
3+
title: Extrusion of vector tiles from OSM data
4+
permalink: /examples/extrusion/
45
---
56

6-
# Extrusion Example
7+
# Extrusion of vector tiles from OSM data
78

89
This example builds upon the [OpenStreetMap example](https://www.baremaps.com/examples/openstreetmap/) and shows how 3d
910
buildings can be extruded with Maplibre. First, start by downloading the OSM data for London in the current directory.
1011

1112
To import London data in the database.
1213

1314
```
14-
baremaps workflow execute --file workflow.json
15+
baremaps workflow execute --file examples/extrusion/workflow.json
1516
```
1617

1718
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
7273

7374
![Tile viewer](screenshot.png)
7475

76+
77+
## Conclusion
78+
79+
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.

examples/import-naturalearth-into-postgis/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: default
33
title: Import Natural Earth data into PostGIS
4-
permalink: /examples//import-naturalearth-into-postgis/
4+
permalink: /examples/import-naturalearth-into-postgis/
55
---
66

77
# Import Natural Earth data into PostGIS

examples/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ For the creation of custom vector tiles you can follow these guides:
2020
- The [OpenStreetMap](/examples/import-osm-into-postgis/) example is a good introduction to Baremaps, it shows how to produce high resolution vector tiles.
2121
- The [NaturalEarth](/examples/import-naturalearth-into-postgis/) example shows how to produce low resolution vector tiles.
2222
- The [Contour](/examples/import-contour-into-postgis/) example shows how to produce contour lines from a digital elevation model.
23+
- The [Extrusion](/examples/extrusion/) example shows how to import OSM data into postgis and use the MVT specification to extrude the vectors into 3d.
2324

2425
For the creation of an IP to location service follow this guide:
2526

0 commit comments

Comments
 (0)