DROP VIEW IF EXISTS planet_osm_point_de;
CREATE VIEW planet_osm_point_de AS
SELECT
osm_id,
"access" as "access",
"addr:housename" as "addr:housename",
"addr:housenumber" as "addr:housenumber",
admin_level as "admin_level",
aerialway as "aerialway",
aeroway as "aeroway",
amenity as "amenity",
barrier as "barrier",
boundary as "boundary",
building as "building",
tags->'capital' as "capital",
tags->'denomination' as "denomination",
tags->'ele' as "ele",
osm_tag2num(tags->'ele') as "num_ele",
tags->'generator:source' as "generator:source",
highway as "highway",
historic as "historic",
tags->'iata' as "iata",
junction as "junction",
landuse as "landuse",
leisure as "leisure",
man_made as "man_made",
military as "military",
name as "name",
tags->'name:de' as "name:de",
tags->'int_name' as "int_name",  
tags->'name:en' as "name:en",
"natural" as "natural",
tags->'operator' as "operator",
place as "place",
tags->'population' as "population",
power as "power",
tags->'power_source' as "power_source",
railway as "railway",
ref as "ref",
religion as "religion",
tags->'ruins' as "ruins",
tags->'service' as "service",
shop as "shop",
tags->'sport' as "sport",
tourism as "tourism",
waterway as "waterway",
tags->'wetland' as "wetland",
osm_tag2num(tags->'width') as "num_width",
way as "way",
tags->'z_order' as z_order,
osml10n_get_placename(name, tags->'name:de', tags->'int_name', tags->'name:en',true,false,chr(10),way) as localized_name_second,
osml10n_get_placename(name, tags->'name:de', tags->'int_name', tags->'name:en',false,false,chr(10),way) as localized_name_first,
osml10n_get_name_without_brackets(name, tags->'name:de', tags->'int_name', tags->'name:en',way) as localized_name_without_brackets,
osml10n_get_streetname(name, tags->'name:de', tags->'int_name', tags->'name:en',true,false,chr(10), way) as localized_streetname,
COALESCE(tags->'name:hsb',tags->'name:dsb',name) as name_hrb,
layer as layer,
tags as "tags"
FROM planet_osm_point;

GRANT select ON planet_osm_point_de TO public;
