PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
rt_band rt_band_new_offline | ( | uint16_t | width, |
uint16_t | height, | ||
rt_pixtype | pixtype, | ||
uint32_t | hasnodata, | ||
double | nodataval, | ||
uint8_t | bandNum, | ||
const char * | path | ||
) |
Create an out-db rt_band.
width | : number of pixel columns |
height | : number of pixel rows |
pixtype | : pixel type for the band |
hasnodata | : indicates if the band has nodata value |
nodataval | : the nodata value, will be appropriately truncated to fit the pixtype size. |
bandNum | : 0-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. |
width | : number of pixel columns |
height | : number of pixel rows |
pixtype | : pixel type for the band |
hasnodata | : indicates if the band has nodata value |
nodataval | : the nodata value, will be appropriately truncated to fit the pixtype size. |
bandNum | : 0-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. |
Definition at line 124 of file rt_band.c.
References ovdump::band, ES_NONE, FALSE, RASTER_DEBUGF, rt_band_destroy(), rt_band_set_nodata(), rt_pixtype_name(), rtalloc(), and rterror().
Referenced by RASTER_tile(), rt_band_duplicate(), rt_band_new_offline_from_path(), and test_band_metadata().