1061 double xoffset = PG_GETARG_FLOAT8(1);
1062 double yoffset = PG_GETARG_FLOAT8(2);
1064 if (PG_ARGISNULL(0))
1066 pgraster = (
rt_pgraster *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
1069 PG_FREE_IF_COPY(pgraster, 0);
1070 elog(ERROR,
"RASTER_setUpperLeftXY: Could not deserialize raster");
1078 PG_FREE_IF_COPY(pgraster, 0);
1082 SET_VARSIZE(pgrtn, pgrtn->
size);
1083 PG_RETURN_POINTER(pgrtn);
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.
void rt_raster_set_offsets(rt_raster raster, double x, double y)
Set insertion points in projection units.
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): ...