[PostGIS] #5804: NULL geometries generated from ST_FORCE3D(geom, NULL)

PostGIS trac at osgeo.org
Wed Oct 30 01:42:46 PDT 2024


#5804: NULL geometries generated from ST_FORCE3D(geom,NULL)
---------------------+---------------------------
 Reporter:  ponceta  |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 3.4.4
Component:  postgis  |    Version:  3.4.x
 Keywords:  3D       |
---------------------+---------------------------
 It is not a recent bug but actually the result of

 ST_FORCE3D(geom,NULL) is NULL

 On the user side it seems like a bug since is should be equivalent as not
 providing the altitude value to the ST_FORCE3D function :

 ST_FORCE3D(geom) is the 3D geom with 0 as altitude which is the result of
 ST_FORCE3D(geom,0)

 Can we agree that it is a bug?
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5804>
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