mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
invalidate object itself in place_force_update()
This commit is contained in:
@@ -3080,6 +3080,7 @@ DECLARE
|
|||||||
diameter FLOAT;
|
diameter FLOAT;
|
||||||
rank INTEGER;
|
rank INTEGER;
|
||||||
BEGIN
|
BEGIN
|
||||||
|
UPDATE placex SET indexed_status = 2 WHERE place_id = placeid;
|
||||||
SELECT geometry, rank_search FROM placex WHERE place_id = placeid INTO placegeom, rank;
|
SELECT geometry, rank_search FROM placex WHERE place_id = placeid INTO placegeom, rank;
|
||||||
IF placegeom IS NOT NULL AND ST_IsValid(placegeom) THEN
|
IF placegeom IS NOT NULL AND ST_IsValid(placegeom) THEN
|
||||||
IF ST_GeometryType(placegeom) in ('ST_Polygon','ST_MultiPolygon') THEN
|
IF ST_GeometryType(placegeom) in ('ST_Polygon','ST_MultiPolygon') THEN
|
||||||
|
|||||||
Reference in New Issue
Block a user