Skip to content

Commit

Permalink
Use osm_id as feature id for building layer (#827)
Browse files Browse the repository at this point in the history
Change the feature_id of objects in the tiles from arbitrary number to osm_id.

From discussion here #725 (comment)

Note the multiploygon building are load with negative relation osm_id. But the use in feature_id do an overflow (eg -7980888 -> 18446744073701570000). We can keep as is or not.

No stats done for yet. Trying to let the CI do it.
  • Loading branch information
frodrigo committed May 26, 2020
1 parent cec49b2 commit 6feefb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layers/building/building.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ layer:
this is welcomed.
buffer_size: 4
datasource:
query: (SELECT geometry, render_height, render_min_height, colour, hide_3d FROM layer_building(!bbox!, z(!scale_denominator!))) AS t
geometry_field: geometry
key_field: osm_id
key_field_as_attribute: no
srid: 900913
query: (SELECT osm_id, geometry, render_height, render_min_height, colour, hide_3d FROM layer_building(!bbox!, z(!scale_denominator!))) AS t
fields:
render_height: |
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.
Expand Down

0 comments on commit 6feefb4

Please sign in to comment.