mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
fix parameter use for ST_Project
Before postgis 3.4 ST_Project required a geography as input and seemed to have implicitly converted to geography. Since 3.4 geometry input is supported but leads to a completely different result.
This commit is contained in:
@@ -273,8 +273,8 @@ BEGIN
|
|||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
RETURN ST_Envelope(ST_Collect(
|
RETURN ST_Envelope(ST_Collect(
|
||||||
ST_Project(geom, radius, 0.785398)::geometry,
|
ST_Project(geom::geography, radius, 0.785398)::geometry,
|
||||||
ST_Project(geom, radius, 3.9269908)::geometry));
|
ST_Project(geom::geography, radius, 3.9269908)::geometry));
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
LANGUAGE plpgsql IMMUTABLE;
|
LANGUAGE plpgsql IMMUTABLE;
|
||||||
|
|||||||
Reference in New Issue
Block a user