Merge pull request #348 from Algunenano/shiftLongitude
Update ST_Shift_Longitude to ST_ShiftLongitude
This commit is contained in:
commit
85997e2445
3
NEWS.md
3
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)
|
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
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user