1604 POSTGIS_DEBUG(2,
"LWGEOM_expand called.");
1610 PG_RETURN_POINTER(geom);
1617 PG_RETURN_POINTER(geom);
1620 if (PG_NARGS() == 2)
1623 double d = PG_GETARG_FLOAT8(1);
1628 double dx = PG_GETARG_FLOAT8(1);
1629 double dy = PG_GETARG_FLOAT8(2);
1630 double dz = PG_GETARG_FLOAT8(3);
1631 double dm = PG_GETARG_FLOAT8(4);
1653 PG_FREE_IF_COPY(geom, 0);
1655 PG_RETURN_POINTER(result);
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.
void gbox_expand(GBOX *g, double d)
Move the box minimums down and the maximums up by the distance provided.
void lwgeom_free(LWGEOM *geom)
int32_t lwgeom_get_srid(const LWGEOM *geom)
Return SRID number.
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)
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...
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
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...
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_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
LWPOLY * lwpoly_construct_rectangle(char hasz, char hasm, POINT4D *p1, POINT4D *p2, POINT4D *p3, POINT4D *p4)