Merge pull request #348 from Algunenano/shiftLongitude

Update ST_Shift_Longitude to ST_ShiftLongitude
This commit is contained in:
Raúl Marín 2019-03-01 12:06:24 +01:00 committed by GitHub
commit 85997e2445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
0.26.0 (2019-XX-XX)
* Use `ST_ShiftLongitude` instead of `ST_Shift_Longitude`.
0.25.0 (2019-02-22) 0.25.0 (2019-02-22)
* Add `CDB_Username` to get the cartodb username from the current PostgreSQL user * Add `CDB_Username` to get the cartodb username from the current PostgreSQL user

View File

@ -16,7 +16,7 @@ BEGIN
IF ST_XMax(line) - ST_XMin(line) > 180 THEN IF ST_XMax(line) - ST_XMin(line) > 180 THEN
line = ST_Difference( line = ST_Difference(
ST_Shift_Longitude(line), ST_ShiftLongitude(line),
ST_Buffer(ST_GeomFromText('LINESTRING(180 90, 180 -90)', 4326), 0.00001) ST_Buffer(ST_GeomFromText('LINESTRING(180 90, 180 -90)', 4326), 0.00001)
); );
END IF; END IF;