From 5dd497bf202b8fd23f31aa20b19c3f9f738dcdb3 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Wed, 19 Aug 2015 19:37:50 +0200 Subject: [PATCH 1/2] Fix transformation to webmercator in corner cases #116 --- scripts-available/CDB_CartodbfyTable.sql | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts-available/CDB_CartodbfyTable.sql b/scripts-available/CDB_CartodbfyTable.sql index 2be7918..46bd362 100644 --- a/scripts-available/CDB_CartodbfyTable.sql +++ b/scripts-available/CDB_CartodbfyTable.sql @@ -909,11 +909,9 @@ BEGIN || ',4326)::Geometry(' || postgis_typmod_type(a.atttypmod) || ', 4326) AS ' - || const.geomcol - || ', ST_Transform(' - || a.attname - || ',3857)::Geometry(' - || postgis_typmod_type(a.atttypmod) + || const.geomcol + || ', cartodb.CDB_TransformToWebmercator(' || a.attname || ')::Geometry(' + || postgis_typmod_type(a.atttypmod) || ', 3857) AS ' || const.mercgeomcol, a.attname From 95c97a6b1ceaba01c0c579ec2ca93e93daba32eb Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Wed, 19 Aug 2015 19:42:29 +0200 Subject: [PATCH 2/2] Update version and news --- Makefile | 3 ++- NEWS.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f269c4f..134d78c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # cartodb/Makefile EXTENSION = cartodb -EXTVERSION = 0.9.0 +EXTVERSION = 0.9.1 SED = sed @@ -43,6 +43,7 @@ UPGRADABLE = \ 0.8.1 \ 0.8.2 \ 0.9.0 \ + 0.9.1 \ $(EXTVERSION)dev \ $(EXTVERSION)next \ $(END) diff --git a/NEWS.md b/NEWS.md index dbdcd76..ff07482 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +0.9.1 (2015-08-19) +------------------ +* Fix for transformation to webmercator in corner cases [#116](https://github.com/CartoDB/cartodb-postgresql/issues/116) + 0.9.0 (2015-08-19) ------------------ * Re-implementation of `CDB_CartodbfyTable` functions