PostGIS
2.4.9dev-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. |
Definition at line 119 of file rt_band.c.
References ovdump::band, rt_band_t::data, ES_NONE, FALSE, rt_band_t::hasnodata, rt_band_t::height, rt_band_t::isnodata, rt_band_t::nodataval, rt_band_t::offline, rt_band_t::ownsdata, rt_band_t::pixtype, rt_band_t::raster, RASTER_DEBUGF, rt_band_destroy(), rt_band_set_nodata(), rt_pixtype_name(), rtalloc(), rterror(), and rt_band_t::width.
Referenced by convert_raster(), RASTER_addBandOutDB(), RASTER_tile(), rt_band_duplicate(), and test_band_metadata().