PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
rt_band rt_band_new_offline_from_path | ( | uint16_t | width, |
uint16_t | height, | ||
int | hasnodata, | ||
double | nodataval, | ||
uint8_t | bandNum, | ||
const char * | path, | ||
int | force | ||
) |
Create an out-db rt_band from path.
width | : number of pixel columns |
height | : number of pixel rows |
hasnodata | : indicates if the band has nodata value |
nodataval | : the nodata value, will be appropriately |
bandNum | : 1-based band number in the external file to associate this band with. |
path | : NULL-terminated path string pointing to the file containing band data. The string will NOT be copied, ownership is left to caller which is responsible to keep it allocated for the whole lifetime of the returned rt_band. |
force | : if True, ignore all validation checks |
Definition at line 199 of file rt_band.c.
References pixval::nband, PT_END, rt_band_new_offline(), rt_util_gdal_datatype_to_pixtype(), rt_util_gdal_open(), rt_util_gdal_register_all(), and rterror().
Referenced by RASTER_addBandOutDB(), RASTER_setBandPath(), and test_band_new_offline_from_path().