Reworked the POI mapping so that a subtype is available. Needed for wind_turbine, but might also prove useful later.

This commit is contained in:
2020-08-10 15:45:30 +02:00
parent 08e4e8b0bb
commit d6485e7dd5
3 changed files with 20 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ SELECT CASE class
$$ LANGUAGE SQL IMMUTABLE
PARALLEL SAFE;
CREATE OR REPLACE FUNCTION poi_class(subclass text, mapping_key text)
CREATE OR REPLACE FUNCTION poi_class(subclass text, mapping_key text, subtype text)
RETURNS text AS
$$
SELECT CASE