mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
reduce precision of computed centroids to 7 digits
This commit is contained in:
@@ -780,7 +780,7 @@ BEGIN
|
||||
SELECT count(*)>0 FROM pg_tables WHERE tablename = classtable and schemaname = current_schema() INTO result;
|
||||
IF result THEN
|
||||
EXECUTE 'INSERT INTO ' || classtable::regclass || ' (place_id, centroid) VALUES ($1,$2)'
|
||||
USING NEW.place_id, ST_Centroid(NEW.geometry);
|
||||
USING NEW.place_id, NEW.centroid;
|
||||
END IF;
|
||||
|
||||
{% endif %} -- not disable_diff_updates
|
||||
|
||||
Reference in New Issue
Block a user