[postgis-tickets] [PostGIS] #5010: Clarify symmetricity of ST_ShiftLongitude in documentation

PostGIS trac at osgeo.org
Tue Oct 19 01:17:43 PDT 2021


#5010: Clarify symmetricity of ST_ShiftLongitude in documentation
---------------------------+---------------------
 Reporter:  lkajan         |      Owner:  pramsey
     Type:  defect         |     Status:  new
 Priority:  medium         |  Milestone:
Component:  postgis        |    Version:  3.1.x
 Keywords:  documentation  |
---------------------------+---------------------
 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)
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5010>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list