[PostGIS] #5837: st_srid of st_union(array...) is unset ("0") but should be set to "4326"

PostGIS trac at osgeo.org
Wed Jan 15 08:53:25 PST 2025


#5837: st_srid of st_union(array...) is unset ("0") but should be set to "4326"
---------------------+---------------------
 Reporter:  jhol     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:
Component:  postgis  |    Version:  3.5.x
 Keywords:           |
---------------------+---------------------
 The following query

 {{{
 select
    st_srid(st_union
    (
       array
       [
          ST_GeomFromText('polygon((131 33,132 33,132 34,131 34,131 33))',
 4326)
       ]
     ))
 }}}

 returns for PostGIS 3.4: `st_srid = 4326` (correct) and\\
 returns for PostGIS 3.5: `st_srid = 0` (not correct)
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5837>
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