[PostGIS] #5987: ST_GeometryN breaks for unitary geometries

PostGIS trac at osgeo.org
Wed Sep 17 11:18:49 PDT 2025


#5987: ST_GeometryN breaks for unitary geometries
----------------------+---------------------------
  Reporter:  joto     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  high     |  Milestone:  PostGIS 3.6.1
 Component:  postgis  |    Version:  3.6.x
Resolution:           |   Keywords:
----------------------+---------------------------
Comment (by pramsey):

 Confirmed. Oddly only showing up when pulling from a table, a literal
 doesn't show this problem.
 {{{
 select ST_AsText(ST_GeometryN('LINESTRING(20 20,20.1 20,20.2 19.9)', 1));
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5987#comment:1>
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