1153 double rotation = PG_GETARG_FLOAT8(1);
1154 double imag, jmag, theta_i, theta_ij;
1156 if (PG_ARGISNULL(0))
1158 pgraster = (
rt_pgraster *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
1162 PG_FREE_IF_COPY(pgraster, 0);
1163 elog(ERROR,
"RASTER_setRotation: Could not deserialize raster");
1173 PG_FREE_IF_COPY(pgraster, 0);
1177 SET_VARSIZE(pgrtn, pgrtn->
size);
1178 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_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.
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): ...