- #2803, ST_MapAlgebra handles no userarg and STRICT callback function
- #2822, Use @ operator instead of ST_CoveredBy() for raster
max extent constraint
+ - #2845, Bad geometry created from ST_AddPoint
* Code refactoring *
{
POINT4D pt;
getPoint4d_p(point->point, 0, &pt);
- return ptarray_insert_point(line->points, &pt, where);
+
+ if ( ptarray_insert_point(line->points, &pt, where) != LW_SUCCESS )
+ return LW_FAILURE;
+
+ /* Update the bounding box */
+ lwgeom_drop_bbox(lwline_as_lwgeom(line));
+ lwgeom_drop_bbox(lwline_as_lwgeom(line));
+
+ return LW_SUCCESS;
}