1027 double xskew = PG_GETARG_FLOAT8(1);
1028 double yskew = PG_GETARG_FLOAT8(2);
1030 if (PG_ARGISNULL(0))
1032 pgraster = (
rt_pgraster *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
1035 PG_FREE_IF_COPY(pgraster, 0);
1036 elog(ERROR,
"RASTER_setSkewXY: Could not deserialize raster");
1044 PG_FREE_IF_COPY(pgraster, 0);
1048 SET_VARSIZE(pgrtn, pgrtn->
size);
1049 PG_RETURN_POINTER(pgrtn);
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
void rt_raster_set_skews(rt_raster raster, double skewX, double skewY)
Set skews about the X and Y axis.
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): ...