PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rt_raster_get_geotransform_matrix()

void rt_raster_get_geotransform_matrix ( rt_raster  raster,
double *  gt 
)

Get 6-element array of raster geotransform matrix.

Parameters
raster: the raster to get matrix of
gt: output parameter, 6-element geotransform matrix

Definition at line 706 of file rt_raster.c.

707  {
708  assert(NULL != raster);
709  assert(NULL != gt);
710 
711  gt[0] = raster->ipX;
712  gt[1] = raster->scaleX;
713  gt[2] = raster->skewX;
714  gt[3] = raster->ipY;
715  gt[4] = raster->skewY;
716  gt[5] = raster->scaleY;
717 }
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
Definition: rtrowdump.py:121
gt
Definition: window.py:77

References window::gt, and rtrowdump::raster.

Referenced by RASTER_clip(), RASTER_mapAlgebra2(), RASTER_setPixelValuesGeomval(), RASTER_tile(), RASTER_union_transfn(), rt_raster_cell_to_geopoint(), rt_raster_clone(), rt_raster_from_band(), rt_raster_from_two_rasters(), rt_raster_gdal_rasterize(), rt_raster_gdal_warp(), rt_raster_get_convex_hull(), rt_raster_get_envelope(), rt_raster_get_envelope_geom(), rt_raster_get_inverse_geotransform_matrix(), rt_raster_get_perimeter(), rt_raster_to_gdal_mem(), and test_raster_clone().

Here is the caller graph for this function: