Add building heights (#56)
* Add better support for 3d buildings Change key from "levels" to "building:levels" as the "levels" key is non-standard and sees much less use than "building:levels" * Fix typo in sql definition and missing render_min_height * Add render_height and min_height to building.yaml * Simplify the render, switch numeric to int. Assume min_height cannot be negative. There are a few examples in overpass, but can't show below ground anyways in mapbox (https://github.com/mapbox/mapbox-gl-js/issues/3456). Also don't attempt to fix min_height>height * Remove colour as it is not currently used
This commit is contained in:
committed by
Lukas Martinelli
parent
c769577c56
commit
373a28e7ad
@@ -5,10 +5,12 @@ layer:
|
||||
this is welcomed.
|
||||
buffer_size: 4
|
||||
datasource:
|
||||
query: (SELECT geom FROM layer_building(!bbox!, z(!scale_denominator!))) AS t
|
||||
query: (SELECT geom, render_height, render_min_height FROM layer_building(!bbox!, z(!scale_denominator!))) AS t
|
||||
fields:
|
||||
render_height: |
|
||||
An approximated height from levels and height of building after the method of Paul Norman in [OSM Clear](https://github.com/ClearTables/osm-clear). For future 3D rendering of buildings.
|
||||
An approximated height from levels and height of the building or building:part after the method of Paul Norman in [OSM Clear](https://github.com/ClearTables/osm-clear). For future 3D rendering of buildings.
|
||||
render_min_height: |
|
||||
An approximated height from levels and height of the bottom of the building or building:part after the method of Paul Norman in [OSM Clear](https://github.com/ClearTables/osm-clear). For future 3D rendering of buildings.
|
||||
schema:
|
||||
- ./building.sql
|
||||
datasources:
|
||||
|
||||
Reference in New Issue
Block a user