move blocking of highway objects into osm2pgsql

This commit is contained in:
Sarah Hoffmann
2013-09-19 22:08:22 +02:00
parent de45bafc54
commit f723eb1998
2 changed files with 1 additions and 8 deletions

View File

@@ -938,10 +938,6 @@ BEGIN
--DEBUG: RAISE WARNING '% %',NEW.osm_type,NEW.osm_id;
-- 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
-- RAISE WARNING 'empty landuse %',NEW.osm_id;
RETURN null;
@@ -2044,9 +2040,6 @@ BEGIN
END IF;
-- 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
RETURN null;
END IF;