forked from hans/Nominatim
ignore countries without geometry or country code for location_area
This commit is contained in:
@@ -123,10 +123,12 @@ BEGIN
|
|||||||
RETURN TRUE;
|
RETURN TRUE;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
IF in_rank_search <= 4 and not in_estimate THEN
|
IF in_rank_search <= 4 THEN
|
||||||
INSERT INTO location_area_country (place_id, country_code, geometry)
|
IF not in_estimate and in_country_code is not NULL THEN
|
||||||
(SELECT in_place_id, in_country_code, geom
|
INSERT INTO location_area_country (place_id, country_code, geometry)
|
||||||
FROM split_geometry(in_geometry) as geom);
|
(SELECT in_place_id, in_country_code, geom
|
||||||
|
FROM split_geometry(in_geometry) as geom);
|
||||||
|
END IF;
|
||||||
RETURN TRUE;
|
RETURN TRUE;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user