1059 double xoffset = PG_GETARG_FLOAT8(1);
1060 double yoffset = PG_GETARG_FLOAT8(2);
1062 if (PG_ARGISNULL(0))
1064 pgraster = (
rt_pgraster *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
1067 PG_FREE_IF_COPY(pgraster, 0);
1068 elog(ERROR,
"RASTER_setUpperLeftXY: Could not deserialize raster");
1076 PG_FREE_IF_COPY(pgraster, 0);
1080 SET_VARSIZE(pgrtn, pgrtn->
size);
1081 PG_RETURN_POINTER(pgrtn);
void * rt_raster_serialize(rt_raster raster)
Return this raster in serialized form.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
void rt_raster_set_offsets(rt_raster raster, double x, double y)
Set insertion points in projection units.
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
rt_raster rt_raster_deserialize(void *serialized, int header_only)
Return a raster from a serialized form.