diff --git a/NEWS.md b/NEWS.md index 9c803b2..a777495 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +0.26.0 (2019-XX-XX) +* Use `ST_ShiftLongitude` instead of `ST_Shift_Longitude`. + 0.25.0 (2019-02-22) * Add `CDB_Username` to get the cartodb username from the current PostgreSQL user diff --git a/scripts-available/CDB_GreatCircle.sql b/scripts-available/CDB_GreatCircle.sql index 3b99ebb..5e05b71 100644 --- a/scripts-available/CDB_GreatCircle.sql +++ b/scripts-available/CDB_GreatCircle.sql @@ -16,7 +16,7 @@ BEGIN IF ST_XMax(line) - ST_XMin(line) > 180 THEN line = ST_Difference( - ST_Shift_Longitude(line), + ST_ShiftLongitude(line), ST_Buffer(ST_GeomFromText('LINESTRING(180 90, 180 -90)', 4326), 0.00001) ); END IF;