Opened 3 years ago

Closed 3 years ago

#5010 closed defect (fixed)

Clarify symmetricity of ST_ShiftLongitude in documentation

Reported by: lkajan Owned by: robe
Priority: medium Milestone: PostGIS 3.1.5
Component: documentation Version: 3.1.x
Keywords: documentation Cc:

Description

The documentation of ST_ShiftLongitude states that the function converts only [-180,180] data to [0,360] but in reality it also converts in reverse.

SELECT ST_AsText(ST_ShiftLongitude('SRID=4326;LINESTRING(179.2 12.2, 180.3 12.8)'::geometry))
-- LINESTRING(179.2 12.2,-179.7 12.8)

SELECT ST_AsText(ST_ShiftLongitude('SRID=4326;LINESTRING(179.2 12.2,-179.7 12.8)'::geometry))
-- LINESTRING(179.2 12.2,180.3 12.8)

Change History (5)

comment:1 by robe, 3 years ago

Milestone: PostGIS 3.1.5

comment:3 by robe, 3 years ago

Component: postgisdocumentation
Owner: changed from pramsey to robe

comment:4 by leoregina <lr@…>, 3 years ago

In 85553d7e/git:

Merge remote-tracking branch 'Kajan/shiftlongitude-doc'
References #5010

comment:5 by Regina Obe <lr@…>, 3 years ago

Resolution: fixed
Status: newclosed

In f42489b/git:

Doc clarifications for ST_ShiftLongitude
from Lauri Kajan
Closes #5010

Note: See TracTickets for help on using tickets.