0){ $query4="update routing_ways set class_id=-1,costfactor=1.0 where gid=$edge and waysource='virtual_area_way' and costfactor>1.0;"; $result4=pg_query($db,$query4); } } } } $query4="delete from routing_ways where waysource='virtual_area_way' and osm_id=$osm_id and class_id>-1"; $result4=pg_query($db,$query4); } exit; ?>