]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-sql/functions/utils.sql
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / lib-sql / functions / utils.sql
index f5be7b61262532d462044ff7657a4bf69ee7ae58..b2771ba18eecf8db6276bf71a503cecbf7b29cb5 100644 (file)
@@ -273,8 +273,8 @@ BEGIN
   END IF;
 
   RETURN ST_Envelope(ST_Collect(
-                     ST_Project(geom, radius, 0.785398)::geometry,
-                     ST_Project(geom, radius, 3.9269908)::geometry));
+                     ST_Project(geom::geography, radius, 0.785398)::geometry,
+                     ST_Project(geom::geography, radius, 3.9269908)::geometry));
 END;
 $$
 LANGUAGE plpgsql IMMUTABLE;