Opened 7 years ago

Closed 7 years ago

#4101 closed defect (fixed)

garden test crash on ST_ClusterMeans on empty geometries

Reported by: robe Owned by: komzpa
Priority: blocker Milestone: PostGIS 2.5.0
Component: postgis Version: master
Keywords: Cc:

Description (last modified by robe)

SELECT ST_ClusterKMeans(foo1.the_geom, 3)OVER()  As result
							FROM ((SELECT ST_GeomFromText('POINT EMPTY',4326) As the_geom
			UNION ALL SELECT ST_GeomFromText('MULTIPOINT EMPTY',4326) As the_geom
			UNION ALL SELECT ST_GeomFromText('MULTIPOLYGON EMPTY',4326) As the_geom
			UNION ALL SELECT ST_GeomFromText('LINESTRING EMPTY',4326) As the_geom
			UNION ALL SELECT ST_GeomFromText('MULTILINESTRING EMPTY',4326) As the_geom ) ) As foo1 LIMIT 10;

output

Connection to the server has been lost.

Change History (2)

comment:1 by robe, 7 years ago

Description: modified (diff)

comment:2 by komzpa, 7 years ago

Resolution: fixed
Status: assignedclosed

In 16605:

ST_ClusterKMeans: handle effective K=0 when all the inputs are EMPTY

Closes #4101
Closes https://github.com/postgis/postgis/pull/254

Note: See TracTickets for help on using tickets.