1093 float8 imag, jmag, theta_i, theta_ij, xoffset, yoffset;
1096 PG_ARGISNULL(0) || PG_ARGISNULL(1) || PG_ARGISNULL(2) ||
1097 PG_ARGISNULL(3) || PG_ARGISNULL(4) ||
1098 PG_ARGISNULL(5) || PG_ARGISNULL(6)
1104 pgraster = (
rt_pgraster *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
1105 imag = PG_GETARG_FLOAT8(1);
1106 jmag = PG_GETARG_FLOAT8(2);
1107 theta_i = PG_GETARG_FLOAT8(3);
1108 theta_ij = PG_GETARG_FLOAT8(4);
1109 xoffset = PG_GETARG_FLOAT8(5);
1110 yoffset = PG_GETARG_FLOAT8(6);
1114 PG_FREE_IF_COPY(pgraster, 0);
1115 elog(ERROR,
"RASTER_setGeotransform: Could not deserialize raster");
1126 PG_FREE_IF_COPY(pgraster, 0);
1130 SET_VARSIZE(pgrtn, pgrtn->
size);
1131 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_offsets(rt_raster raster, double x, double y)
Set insertion points in projection units.
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.