diff --git a/scripts-available/CDB_CartodbfyTable.sql b/scripts-available/CDB_CartodbfyTable.sql index a8bdae1..3b1611a 100644 --- a/scripts-available/CDB_CartodbfyTable.sql +++ b/scripts-available/CDB_CartodbfyTable.sql @@ -1099,7 +1099,7 @@ BEGIN ) SELECT ', ST_Transform(' || t.missing_srid_start || t.attname || t.missing_srid_end - || ',4326)::Geometry(GEOMETRY,4326) AS' + || ',4326)::Geometry(GEOMETRY,4326) AS ' || const.geomcol || ', cartodb.CDB_TransformToWebmercator(' || t.missing_srid_start || t.attname || t.missing_srid_end