maptiles/layers/landuse/class.sql

11 lines
243 B
MySQL
Raw Normal View History

2025-01-16 20:45:43 +01:00
-- Unify class names that represent the same type of feature
CREATE OR REPLACE FUNCTION landuse_unify(class text) RETURNS text LANGUAGE plpgsql
AS
$$
BEGIN
RETURN CASE
WHEN class='grave_yard' THEN 'cemetery'
ELSE class END;
END;
$$;