Transform from 3857

This commit is contained in:
Daniel García Aubert 2019-12-13 12:36:13 +01:00
parent ea1f43bec7
commit 95f66b8c4b

View File

@ -12,7 +12,7 @@ function filterQueryTpl ({ sql, column, srid, lng, lat, radius } = {}) {
ST_Transform( ST_Transform(
ST_Buffer( ST_Buffer(
ST_Transform( ST_Transform(
ST_SetSRID(ST_Point(${lng},${lat}), ${srid}), ST_SetSRID(ST_Point(${lng},${lat}), 3857),
4326 4326
)::geography, )::geography,
${radius} ${radius}