PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rt_raster_set_geotransform_matrix()

void rt_raster_set_geotransform_matrix ( rt_raster  raster,
double *  gt 
)

Set raster's geotransform using 6-element array.

Parameters
raster: the raster to set matrix of
gt: intput parameter, 6-element geotransform matrix

Definition at line 727 of file rt_raster.c.

References _rt_raster_geotransform_warn_offline_band(), rt_raster_t::ipX, rt_raster_t::ipY, rt_raster_t::scaleX, rt_raster_t::scaleY, rt_raster_t::skewX, and rt_raster_t::skewY.

Referenced by convert_raster(), diff_rastinfo(), RASTER_addBandOutDB(), RASTER_mapAlgebra2(), RASTER_tile(), rt_band_load_offline_data(), rt_raster_clone(), rt_raster_compute_skewed_raster(), rt_raster_from_band(), rt_raster_from_gdal_dataset(), rt_raster_from_two_rasters(), rt_raster_gdal_warp(), test_raster_cell_to_geopoint(), and test_raster_geopoint_to_cell().

728  {
729  assert(NULL != raster);
730  assert(NULL != gt);
731 
732  raster->ipX = gt[0];
733  raster->scaleX = gt[1];
734  raster->skewX = gt[2];
735  raster->ipY = gt[3];
736  raster->skewY = gt[4];
737  raster->scaleY = gt[5];
738 
740 }
double skewY
Definition: librtcore.h:2249
double ipY
Definition: librtcore.h:2247
gt
Definition: window.py:77
double skewX
Definition: librtcore.h:2248
static void _rt_raster_geotransform_warn_offline_band(rt_raster raster)
Definition: rt_raster.c:95
double ipX
Definition: librtcore.h:2246
double scaleX
Definition: librtcore.h:2244
double scaleY
Definition: librtcore.h:2245
Here is the call graph for this function:
Here is the caller graph for this function: