mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
disable unused function get_coonected_ways()
interferes with testing because of a reverse dependency on planet_osm_ways
This commit is contained in:
@@ -2336,29 +2336,29 @@ END;
|
|||||||
$$
|
$$
|
||||||
LANGUAGE plpgsql IMMUTABLE;
|
LANGUAGE plpgsql IMMUTABLE;
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION get_connected_ways(way_ids INTEGER[]) RETURNS SETOF planet_osm_ways
|
--CREATE OR REPLACE FUNCTION get_connected_ways(way_ids INTEGER[]) RETURNS SETOF planet_osm_ways
|
||||||
AS $$
|
-- AS $$
|
||||||
DECLARE
|
--DECLARE
|
||||||
searchnodes INTEGER[];
|
-- searchnodes INTEGER[];
|
||||||
location RECORD;
|
-- location RECORD;
|
||||||
j INTEGER;
|
-- j INTEGER;
|
||||||
BEGIN
|
--BEGIN
|
||||||
|
--
|
||||||
searchnodes := '{}';
|
-- searchnodes := '{}';
|
||||||
FOR j IN 1..array_upper(way_ids, 1) LOOP
|
-- FOR j IN 1..array_upper(way_ids, 1) LOOP
|
||||||
FOR location IN
|
-- FOR location IN
|
||||||
select nodes from planet_osm_ways where id = way_ids[j] LIMIT 1
|
-- select nodes from planet_osm_ways where id = way_ids[j] LIMIT 1
|
||||||
LOOP
|
-- LOOP
|
||||||
IF not (ARRAY[location.nodes] <@ searchnodes) THEN
|
-- IF not (ARRAY[location.nodes] <@ searchnodes) THEN
|
||||||
searchnodes := searchnodes || location.nodes;
|
-- searchnodes := searchnodes || location.nodes;
|
||||||
END IF;
|
-- END IF;
|
||||||
END LOOP;
|
-- END LOOP;
|
||||||
END LOOP;
|
-- END LOOP;
|
||||||
|
--
|
||||||
RETURN QUERY select * from planet_osm_ways where nodes && searchnodes and NOT ARRAY[id] <@ way_ids;
|
-- RETURN QUERY select * from planet_osm_ways where nodes && searchnodes and NOT ARRAY[id] <@ way_ids;
|
||||||
END;
|
--END;
|
||||||
$$
|
--$$
|
||||||
LANGUAGE plpgsql IMMUTABLE;
|
--LANGUAGE plpgsql IMMUTABLE;
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION get_address_postcode(for_place_id BIGINT) RETURNS TEXT
|
CREATE OR REPLACE FUNCTION get_address_postcode(for_place_id BIGINT) RETURNS TEXT
|
||||||
AS $$
|
AS $$
|
||||||
|
|||||||
Reference in New Issue
Block a user