/* Initialize */
gbox->xmin = gbox->ymin = gbox->zmin = gbox->mmin = FLT_MAX;
- gbox->xmax = gbox->ymax = gbox->zmax = gbox->mmax = FLT_MIN;
+ gbox->xmax = gbox->ymax = gbox->zmax = gbox->mmax = -1*FLT_MAX;
for ( i = 2; i < curve->points->npoints; i += 2 )
{
--SELECT '#3244a', ST_AsText(ST_3DClosestPoint('POINT(0 0 0)', 'POINT(0 0)'));
--SELECT '#3244b', ST_AsText(ST_3DClosestPoint('POINT(0 0)', 'POINT(0 0 0)'));
+SELECT '#3300', ST_AsText(ST_SnapToGrid(Box2D('CURVEPOLYGON(CIRCULARSTRING(-71.0821 42.3036,-71.4821 42.3036,-71.7821 42.7036,-71.0821 42.7036,-71.0821 42.3036),(-71.1821 42.4036,-71.3821 42.6036,-71.3821 42.4036,-71.1821 42.4036))'::Geometry)::geometry,0.0001));
+
-- Clean up
DELETE FROM spatial_ref_sys;
#2870|Point[GS]
#2956|t
#3172|LINESTRING M (0 0 1,0 0 2)
+#3300|POLYGON((-71.7821 42.2622,-71.7821 42.9067,-71.029 42.9067,-71.029 42.2622,-71.7821 42.2622))