remove special handling of mountain passes

clashes with use of place tags on same node,
needs updated osm2pgsql
This commit is contained in:
Sarah Hoffmann
2013-02-17 14:53:22 +01:00
parent 57facc4767
commit 777e1cdbd9
3 changed files with 5 additions and 1 deletions

View File

@@ -583,6 +583,7 @@
'natural:scrub' => array('label'=>'Scrub','frequency'=>20,'icon'=>'',),
'natural:fen' => array('label'=>'Fen','frequency'=>20,'icon'=>'',),
'building:yes' => array('label'=>'Building','frequency'=>200,'icon'=>'',),
'mountain_pass:yes' => array('label'=>'Mountain Pass','frequency'=>200,'icon'=>'',),
'amenity:parking' => array('label'=>'Parking','frequency'=>3157,'icon'=>'',),
'highway:bus_stop' => array('label'=>'Bus Stop','frequency'=>35777,'icon'=>'transport_bus_stop2',),

View File

@@ -1155,6 +1155,9 @@ BEGIN
NEW.rank_address := NEW.rank_search;
ELSEIF NEW.class = 'natural' and NEW.type in ('coastline') THEN
RETURN NULL;
ELSEIF NEW.class = 'mountain_pass' THEN
NEW.rank_search := 20;
NEW.rank_address := 0;
END IF;
END IF;