disallow linking for postcode areas

This commit is contained in:
Sarah Hoffmann
2020-11-17 10:53:26 +01:00
parent d23bf6e659
commit 9ede048769
2 changed files with 17 additions and 1 deletions

View File

@@ -138,6 +138,7 @@ DECLARE
BEGIN
IF bnd.rank_search >= 26 or bnd.rank_address = 0
or ST_GeometryType(bnd.geometry) NOT IN ('ST_Polygon','ST_MultiPolygon')
or bnd.type IN ('postcode', 'postal_code')
THEN
RETURN NULL;
END IF;