Seems like it is more widely used and sufficiently different
from "read" mode that it needs to stay for now
git-svn-id: http://svn.osgeo.org/postgis/trunk@17494
b70326c6-7e19-0410-871a-
916f4a2858ee
}
return LW_SUCCESS;
}
- else
- {
- /* Read directly off coordinates for */
- /* simple (point, 2-point line) cases */
- return gserialized_peek_gbox_p(g, gbox);
- }
+ return LW_FAILURE;
}
/*
{
GBOX gserialized_box;
/* We only apply the optimization if the bounding box is available */
- if (gserialized_read_gbox_p(geom_in, &gserialized_box) == LW_SUCCESS)
+ if ((gserialized_read_gbox_p(geom_in, &gserialized_box) == LW_SUCCESS) ||
+ (gserialized_peek_gbox_p(geom_in, &gserialized_box) == LW_SUCCESS))
{
/* Shortcut to drop geometries smaller than the resolution */
double geom_width = gserialized_box.xmax - gserialized_box.xmin;