Opened 6 years ago

Closed 6 years ago

#1695 closed defect (fixed)

ST_SnapToGrid returns non-typed empties

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
Keywords: Cc:

Description

strk=# select ST_AsEWKT(ST_SnapToGrid('MULTIPOLYGON(((0 0, 10 0, 10 10, 0 10, 0 0)))'::geometry, 20));
        st_asewkt         
--------------------------
 GEOMETRYCOLLECTION EMPTY
(1 row)

Compare with ST_Simplify, which supports empties:

strk=# select ST_AsEWKT(ST_Simplify('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))'::geometry, 20));
   st_asewkt   
---------------
 POLYGON EMPTY
(1 row)

Change History (1)

comment:1 Changed 6 years ago by strk

Resolution: fixed
Status: newclosed

Fixed in r9516

Note: See TracTickets for help on using tickets.