osm2vectortiles / osm2vectortiles

Generating global vector tiles from OSM Planet. Please upgrade to OpenMapTiles.
https://openmaptiles.org/osm2vectortiles/
MIT License
502 stars 149 forks source link

where's the function maki_label_class(type) in poi_label.sql? #470

Open bearnxx opened 7 years ago

bearnxx commented 7 years ago

I read the sql script in /src/import-sql/layers/poi_label.sql, but I can't find the function maki_label_class(type).

and I think the poi-layer is a little simple. it should be designed to take more information in the new version.

CREATE OR REPLACE VIEW poi_label_z14 AS ( SELECT * FROM ( SELECT geometry, id AS osm_id, ref, name, name_en, name_es, name_fr, name_de, name_ru, name_zh, type, 0 AS area FROM osm_poi_point UNION ALL SELECT geometry, id AS osm_id, ref, name, name_en, name_es, name_fr, name_de, name_ru, name_zh, type, area FROM osm_poi_polygon ) AS poi_geoms -- Nameless POIs must have distinct maki label not the generic default WHERE # _maki_labelclass(type) <> '' OR name <> '' );

lukasmartinelli commented 7 years ago

I read the sql script in /src/import-sql/layers/poi_label.sql, but I can't find the function maki_label_class(type).

That code is generated from https://github.com/osm2vectortiles/osm2vectortiles/blob/master/src/import-sql/classes/maki_label.yml