add etldoc to layer_place

This commit is contained in:
ImreSamu
2016-11-10 03:09:43 +01:00
parent 5580f42458
commit 7d7ca7f47a
9 changed files with 70 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
-- etldoc: osm_state_point -> layer_state
CREATE OR REPLACE FUNCTION layer_state(bbox geometry, zoom_level int)
RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, "rank" int) AS $$
SELECT osm_id, geometry, name, COALESCE(NULLIF(name_en, ''), name) AS name_en, "rank"