From 95f66b8c4b41698ebfab2708f9c7c62a1f9b7491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 13 Dec 2019 12:36:13 +0100 Subject: [PATCH] Transform from 3857 --- lib/models/filter/circle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/filter/circle.js b/lib/models/filter/circle.js index bfc66aa1..329d313e 100644 --- a/lib/models/filter/circle.js +++ b/lib/models/filter/circle.js @@ -12,7 +12,7 @@ function filterQueryTpl ({ sql, column, srid, lng, lat, radius } = {}) { ST_Transform( ST_Buffer( ST_Transform( - ST_SetSRID(ST_Point(${lng},${lat}), ${srid}), + ST_SetSRID(ST_Point(${lng},${lat}), 3857), 4326 )::geography, ${radius}