if ( g ) geoms[ngeoms++] = g;
}
- if ( ! ngeoms ) return lwcollection_construct_empty(COLLECTIONTYPE, coll->srid, 0, 0);
+ if ( ! ngeoms ) return lwcollection_construct_empty(coll->type, coll->srid, 0, 0);
return lwcollection_construct(coll->type, coll->srid,
NULL, ngeoms, geoms);
'POINT(-176 -22)'::geography as p
) SELECT '#1596', ST_Summary(ST_Intersection(a,p)) FROM inp;
+-- #1695
+SELECT '#1695', ST_AsEWKT(ST_SnapToGrid('MULTIPOLYGON(((0 0, 10 0, 10 10, 0 10, 0 0)))'::geometry, 20));
+
-- Clean up
DELETE FROM spatial_ref_sys;
#1596.6|public.road_pg.roads_geom SRID changed to 0
#1596.7|0
#1596|Point[BG]
+#1695|MULTIPOLYGON EMPTY