Add osm id

This commit is contained in:
lukasmartinelli
2016-10-24 21:49:10 +02:00
parent 030e1e3204
commit 7ac0fb66d6
5 changed files with 37 additions and 35 deletions

View File

@@ -23,8 +23,8 @@ CREATE OR REPLACE VIEW railway_z14 AS (
);
CREATE OR REPLACE FUNCTION layer_railway(bbox geometry, zoom_level int)
RETURNS TABLE(geometry geometry, class text, subclass text, brunnel text) AS $$
SELECT geometry,
RETURNS TABLE(osm_id bigint, geometry geometry, class text, subclass text, brunnel text) AS $$
SELECT osm_id, geometry,
railway_class(railway, service) AS class,
railway AS subclass,
railway_brunnel(is_bridge, is_tunnel) AS brunnel