Update ST_Shift_Longitude to ST_ShiftLongitude

This commit is contained in:
Raul Marin
2019-03-01 11:27:09 +01:00
parent 1637257772
commit 5d4f1d98d7

View File

@@ -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;