PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
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.
The coefficients will not be applied if there was an error during the calculation.
This method affects only the scale and skew coefficients. The offset parameters are not changed.
rast | the raster in which the geotransform will be stored. |
i_mag | size of a pixel along the transformed i axis |
j_mag | size of a pixel along the transformed j axis |
theta_i | angle by which the raster is rotated (radians positive clockwise) |
theta_ij | angle from transformed i axis to transformed j axis (radians positive counterclockwise) |
Definition at line 297 of file rt_raster.c.
References return(), rt_raster_calc_gt_coeff(), rt_raster_set_scale(), and rt_raster_set_skews().
Referenced by RASTER_setGeotransform(), and RASTER_setRotation().