1151 double rotation = PG_GETARG_FLOAT8(1);
1152 double imag, jmag, theta_i, theta_ij;
1154 if (PG_ARGISNULL(0))
1156 pgraster = (
rt_pgraster *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
1160 PG_FREE_IF_COPY(pgraster, 0);
1161 elog(ERROR,
"RASTER_setRotation: Could not deserialize raster");
1171 PG_FREE_IF_COPY(pgraster, 0);
1175 SET_VARSIZE(pgrtn, pgrtn->
size);
1176 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_get_phys_params(rt_raster rast, double *i_mag, double *j_mag, double *theta_i, double *theta_ij)
Calculates and returns the physically significant descriptors embodied in the geotransform attached t...
void rt_raster_set_phys_params(rt_raster rast, double i_mag, double j_mag, double theta_i, double theta_ij)
Calculates the geotransform coefficients and applies them to the supplied raster. ...
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.