Ticket #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
Note: See
TracTickets for help on using
tickets.
