178 pgraster = (
rt_pgraster *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
181 PG_FREE_IF_COPY(pgraster, 0);
182 elog(ERROR,
"RASTER_noop: Cannot deserialize raster");
190 SET_VARSIZE(result,
raster->size);
191 PG_RETURN_POINTER(result);
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
void * rt_raster_serialize(rt_raster raster)
Return this raster in serialized form.
rt_raster rt_raster_deserialize(void *serialized, int header_only)
Return a raster from a serialized form.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...