Increase poi buffer and select correct name_en from place

This commit is contained in:
lukasmartinelli
2016-10-29 11:26:35 +02:00
parent ae60f637c0
commit 001e44ccd7
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION layer_place(bbox geometry, zoom_level int, pixel_width numeric)
RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, class text, "rank" int) AS $$
SELECT osm_id, geometry, name, name AS name_en, 'country' AS class, "rank" FROM layer_country(bbox, zoom_level)
SELECT osm_id, geometry, name, name_en, 'country' AS class, "rank" FROM layer_country(bbox, zoom_level)
UNION ALL
SELECT osm_id, geometry, name, name_en, 'state' AS class, "rank" FROM layer_state(bbox, zoom_level)
UNION ALL