959 double xscale = PG_GETARG_FLOAT8(1);
960 double yscale = PG_GETARG_FLOAT8(2);
964 pgraster = (
rt_pgraster *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
967 PG_FREE_IF_COPY(pgraster, 0);
968 elog(ERROR,
"RASTER_setScaleXY: Could not deserialize raster");
975 PG_FREE_IF_COPY(pgraster, 0);
979 SET_VARSIZE(pgrtn, pgrtn->
size);
980 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_scale(rt_raster raster, double scaleX, double scaleY)
Set scale 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.