Ticket #1695 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by strk

  • status changed from new to closed
  • resolution set to fixed

Fixed in r9516

Note: See TracTickets for help on using tickets.