mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-13 22:34:07 +00:00
Compare commits
2 Commits
e1cef3de0a
...
866e6bade9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
866e6bade9 | ||
|
|
4cbbe04f7f |
@@ -732,7 +732,7 @@ BEGIN
|
|||||||
IF NEW.rank_address between 2 and 27 THEN
|
IF NEW.rank_address between 2 and 27 THEN
|
||||||
IF (ST_GeometryType(NEW.geometry) in ('ST_Polygon','ST_MultiPolygon') AND ST_IsValid(NEW.geometry)) THEN
|
IF (ST_GeometryType(NEW.geometry) in ('ST_Polygon','ST_MultiPolygon') AND ST_IsValid(NEW.geometry)) THEN
|
||||||
-- Performance: We just can't handle re-indexing for country level changes
|
-- Performance: We just can't handle re-indexing for country level changes
|
||||||
IF (NEW.rank_address < 26 and st_area(NEW.geometry) < 1)
|
IF (NEW.rank_address < 26 and st_area(NEW.geometry) <= 2)
|
||||||
OR (NEW.rank_address >= 26 and st_area(NEW.geometry) < 0.01)
|
OR (NEW.rank_address >= 26 and st_area(NEW.geometry) < 0.01)
|
||||||
THEN
|
THEN
|
||||||
-- mark items within the geometry for re-indexing
|
-- mark items within the geometry for re-indexing
|
||||||
|
|||||||
Reference in New Issue
Block a user