Closes #4453
Closes https://github.com/postgis/postgis/pull/442
git-svn-id: http://svn.osgeo.org/postgis/trunk@17603
b70326c6-7e19-0410-871a-
916f4a2858ee
- #4449, Speed up ST_X, ST_Y, ST_Z and ST_M (Raúl Marín)
- #4456, add Rasbery Pi 32-bit jenkins bot for testing (Bruce Rindahl)
- #4454, Speed up _ST_OrderingEquals (Raúl Marín)
+ - #4453, Speed up ST_IsEmpty (Raúl Marín)
PostGIS 3.0.0alpha3
2019/07/01
Datum LWGEOM_isempty(PG_FUNCTION_ARGS)
{
GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
- LWGEOM *lwgeom = lwgeom_from_gserialized(geom);
- bool empty = lwgeom_is_empty(lwgeom);
-
- lwgeom_free(lwgeom);
- PG_FREE_IF_COPY(geom, 0);
- PG_RETURN_BOOL(empty);
+ PG_RETURN_BOOL(gserialized_is_empty(geom));
}
/**