[PostGIS] #5610: ST_SetPoint on a line with NaN Z values

PostGIS trac at osgeo.org
Wed Nov 15 05:17:43 PST 2023


#5610: ST_SetPoint on a line with NaN Z values
---------------------+---------------------------
 Reporter:  3nids    |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 3.4.1
Component:  postgis  |    Version:  3.4.x
 Keywords:           |
---------------------+---------------------------
 Using `ST_SetPoint` on a line with a `NaN` Z fails

 {{{
 select st_setpoint(
 st_makeline(ARRAY[ST_MakePoint(1,2,'Nan'), ST_MakePoint(3,4,10),
 ST_MakePoint(5,6, 20)]),
 2, ST_MakePoint(5,6, 'Nan'))
 }}}

 Fails with `Geometry contains invalid coordinates`

 Tested with docker images (postgis/postgis), this fails in Postgis 3.3 and
 3.4 but works in 3.1 and 3.2.

 What is the correct approach to set several Z values to NaN on a
 linestring?
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5610>
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