From 78a7ccbe4b67a07cb7774d1be446cf2e9d5de26f Mon Sep 17 00:00:00 2001 From: antoniocarlon Date: Wed, 9 May 2018 13:40:26 +0200 Subject: [PATCH] Fix y coordinate --- src/pg/sql/45_observatory_mvt.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg/sql/45_observatory_mvt.sql b/src/pg/sql/45_observatory_mvt.sql index 9ba25fe..a81cca7 100644 --- a/src/pg/sql/45_observatory_mvt.sql +++ b/src/pg/sql/45_observatory_mvt.sql @@ -12,7 +12,7 @@ def tile2lnglat(z, x, y): return lon, lat lon0, lat0 = tile2lnglat(z, x, y) -lon1, lat1 = tile2lnglat(z, x+1, y+1) +lon1, lat1 = tile2lnglat(z, x+1, y-1) return [lon0, lat0, lon1, lat1] $$ LANGUAGE plpythonu;