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 , 3 years ago
Milestone: | → PostGIS 3.1.5 |
---|
comment:2 by , 3 years ago
comment:3 by , 3 years ago
Component: | postgis → documentation |
---|---|
Owner: | changed from | to
Note:
See TracTickets
for help on using tickets.
Pull request: https://github.com/postgis/postgis/pull/642