350         grid.
ipx = PG_GETARG_FLOAT8(1);
 
  351         grid.
ipy = PG_GETARG_FLOAT8(2);
 
  352         grid.
xsize = PG_GETARG_FLOAT8(3);
 
  353         grid.
ysize = PG_GETARG_FLOAT8(4);
 
  358                 PG_RETURN_POINTER(in_geom);
 
  364                 PG_RETURN_POINTER(in_geom);
 
  369         POSTGIS_DEBUGF(3, 
"SnapToGrid got a %s", 
lwtype_name(in_lwgeom->
type));
 
  372         if ( out_lwgeom == NULL ) PG_RETURN_NULL();
 
  375         if ( in_lwgeom->
bbox )
 
  378         POSTGIS_DEBUGF(3, 
"SnapToGrid made a %s", 
lwtype_name(out_lwgeom->
type));
 
  380         out_geom = geometry_serialize(out_lwgeom);
 
  382         PG_RETURN_POINTER(out_geom);
 
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
int gserialized_is_empty(const GSERIALIZED *g)
Check if a GSERIALIZED is empty without deserializing first.
void lwgeom_refresh_bbox(LWGEOM *lwgeom)
Drop current bbox and calculate a fresh one.
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
LWGEOM * lwgeom_grid(const LWGEOM *lwgeom, const gridspec *grid)