1611 POSTGIS_DEBUG(2,
"LWGEOM_expand called.");
1617 PG_RETURN_POINTER(geom);
1624 PG_RETURN_POINTER(geom);
1627 if (PG_NARGS() == 2)
1630 double d = PG_GETARG_FLOAT8(1);
1635 double dx = PG_GETARG_FLOAT8(1);
1636 double dy = PG_GETARG_FLOAT8(2);
1637 double dz = PG_GETARG_FLOAT8(3);
1638 double dm = PG_GETARG_FLOAT8(4);
1660 PG_FREE_IF_COPY(geom, 0);
1662 PG_RETURN_POINTER(result);
void gbox_expand(GBOX *g, double d)
Move the box minimums down and the maximums up by the distance provided.
void gbox_expand_xyzm(GBOX *g, double dx, double dy, double dz, double dm)
Move the box minimums down and the maximums up by the distances provided.
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
int32_t lwgeom_get_srid(const LWGEOM *geom)
Return SRID number.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
LWPOLY * lwpoly_construct_rectangle(char hasz, char hasm, POINT4D *p1, POINT4D *p2, POINT4D *p3, POINT4D *p4)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
int lwgeom_calculate_gbox(const LWGEOM *lwgeom, GBOX *gbox)
Calculate bounding box of a geometry, automatically taking into account whether it is cartesian or ge...
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
void lwgeom_set_srid(LWGEOM *geom, int srid)
Set the SRID on an LWGEOM For collections, only the parent gets an SRID, all the children get SRID_UN...
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)