Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#4960 closed defect (fixed)

ST_Boundary('LINESTRING EMPTY') returns random numbers

Reported by: strk Owned by: komzpa
Priority: blocker Milestone: PostGIS 3.2.0
Component: postgis Version: master
Keywords: Cc:

Description

# select ST_AsText(ST_Boundary('LINESTRING EMPTY'));
NOTICE:  lwgeom_api.c [138] called with n=0 and npoints=0
NOTICE:  lwgeom_api.c [138] called with n=-1 and npoints=0
                              st_astext                              
---------------------------------------------------------------------
 MULTIPOINT(9e-323 4.6729030886132e-310,9e-323 4.6729030886132e-310)
(1 row)

See also #4956 and https://gitlab.com/postgis/postgis/-/merge_requests/50 for testcases with this

Change History (4)

comment:1 by strk, 3 years ago

Priority: mediumblocker

comment:2 by pramsey, 3 years ago

Owner: changed from pramsey to komzpa

comment:3 by kalenikaliaksandr <kalenik.aliaksandr@…>, 3 years ago

Resolution: fixed
Status: newclosed

In cce909b/git:

Fix ST_Boundary('LINESTRING EMPTY')

Closes #4960
Includes unit test

comment:4 by Darafei Praliaskouski <me@…>, 3 years ago

In e35fbe1/git:

Merge and format lwgeom_boundary tests

Thanks Aliaksandr Kalenik and Sandro Santilli for the work on it.

Closes #4956
Closes #4960
Closes #4961
Closes https://github.com/postgis/postgis/pull/626

Note: See TracTickets for help on using tickets.