Opened 13 years ago

Closed 13 years ago

#694 closed defect (fixed)

ST_MakePolygon with Point crashes

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Cc:

Description

Another thing no one would intentionally do but doesn't crash on 1.5:

SELECT ST_MakePolygon('POINT(1 2)'::geometry)

Change History (3)

comment:1 by robe, 13 years ago

ST_polygon obviously breaks too. didn't notice we had such a thing documented. Anyrate when it came to this one, I noticed its using all deprecated code for its definition:

— definition of ST_Polygon

SELECT setSRID(makepolygon($1), $2)
	

comment:2 by pramsey, 13 years ago

Sorry, does this still crash for you? It does not for me.

comment:3 by robe, 13 years ago

Resolution: fixed
Status: newclosed

It's fine now — gives "Shell is not a line"

Note: See TracTickets for help on using tickets.