mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 21:34:06 +00:00
move blocking of highway objects into osm2pgsql
This commit is contained in:
Submodule osm2pgsql updated: 0005c3312c...48377cecdc
@@ -938,10 +938,6 @@ BEGIN
|
|||||||
--DEBUG: RAISE WARNING '% %',NEW.osm_type,NEW.osm_id;
|
--DEBUG: RAISE WARNING '% %',NEW.osm_type,NEW.osm_id;
|
||||||
|
|
||||||
-- just block these
|
-- just block these
|
||||||
IF NEW.class = 'highway' and NEW.type in ('turning_circle','traffic_signals','mini_roundabout','noexit','crossing') THEN
|
|
||||||
-- RAISE WARNING 'bad highway %',NEW.osm_id;
|
|
||||||
RETURN null;
|
|
||||||
END IF;
|
|
||||||
IF NEW.class in ('landuse','natural') and NEW.name is null THEN
|
IF NEW.class in ('landuse','natural') and NEW.name is null THEN
|
||||||
-- RAISE WARNING 'empty landuse %',NEW.osm_id;
|
-- RAISE WARNING 'empty landuse %',NEW.osm_id;
|
||||||
RETURN null;
|
RETURN null;
|
||||||
@@ -2044,9 +2040,6 @@ BEGIN
|
|||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
-- Just block these - lots and pointless
|
-- Just block these - lots and pointless
|
||||||
IF NEW.class = 'highway' and NEW.type in ('turning_circle','traffic_signals','mini_roundabout','noexit','crossing') THEN
|
|
||||||
RETURN null;
|
|
||||||
END IF;
|
|
||||||
IF NEW.class in ('landuse','natural') and NEW.name is null THEN
|
IF NEW.class in ('landuse','natural') and NEW.name is null THEN
|
||||||
RETURN null;
|
RETURN null;
|
||||||
END IF;
|
END IF;
|
||||||
|
|||||||
Reference in New Issue
Block a user