[PostGIS] #5874: ST_LineSubstring returns incorrect lengths in geography

PostGIS trac at osgeo.org
Tue Apr 8 11:41:35 PDT 2025


#5874: ST_LineSubstring returns incorrect lengths in geography
----------------------+-------------------------------------------
  Reporter:  jorsu    |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 3.5.3
 Component:  postgis  |    Version:  3.5.x
Resolution:           |   Keywords:  linestring, geography, length
----------------------+-------------------------------------------
Comment (by pramsey):

 Simplified version of this is even more crazy-making.
 {{{
 SELECT
  ST_Astext(
   ST_LineSubstring(
    'LINESTRING(2 48, 3 49, 4 50)'::geography, 0, 1));

 LINESTRING(2 48,3 49,3.493455272486287 49.49965167325753)

 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5874#comment:3>
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