Initial attempt at moving forests with names into their own 'landmarks' layer. (this is heavely copied and pasted from POI)

This commit is contained in:
2020-07-03 15:23:51 +02:00
parent 58d997b3ea
commit d638b3ef17
13 changed files with 570 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
CREATE OR REPLACE FUNCTION lm_class_rank(class text)
RETURNS int AS
$$
SELECT CASE class
WHEN 'forest' THEN 120
ELSE 1000
END;
$$ LANGUAGE SQL IMMUTABLE
PARALLEL SAFE;
CREATE OR REPLACE FUNCTION lm_class(subclass text, mapping_key text)
RETURNS text AS
$$
SELECT CASE
%%FIELD_MAPPING: class %%
ELSE subclass
END;
$$ LANGUAGE SQL IMMUTABLE
PARALLEL SAFE;