kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
Use a fall-back value for building-colour
This is to workaround the lack of such support in mapbox-gl-js. Should do data cleaning in import-sql.enhancement/add_height
rodzic
e9f98f1c33
commit
ad7679b539
|
@ -12,6 +12,16 @@ CREATE OR REPLACE VIEW building_layer AS (
|
|||
SELECT osm_id FROM building_z14
|
||||
);
|
||||
|
||||
CREATE OR REPLACE FUNCTION default_colour(colour VARCHAR) RETURNS VARCHAR
|
||||
AS $$
|
||||
BEGIN
|
||||
IF colour = '' THEN
|
||||
RETURN 'grey';
|
||||
ELSE
|
||||
RETURN colour;
|
||||
END IF;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
CREATE OR REPLACE FUNCTION default_building_height(levels INTEGER) RETURNS INTEGER
|
||||
AS $$
|
||||
|
|
Ładowanie…
Reference in New Issue