PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
rt_band rt_band_new_inline | ( | uint16_t | width, |
uint16_t | height, | ||
rt_pixtype | pixtype, | ||
uint32_t | hasnodata, | ||
double | nodataval, | ||
uint8_t * | data | ||
) |
Create an in-db rt_band with no data.
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. |
data | : pointer to actual band data, required to be aligned accordingly to rt_pixtype_aligment(pixtype) and big enough to hold raster width*height values. Data 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 58 of file rt_band.c.
References ovdump::band, ovdump::data, rt_band_t::data, ES_NONE, FALSE, rt_band_t::hasnodata, rt_band_t::height, rt_band_t::isnodata, rt_band_t::mem, 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 cu_add_band(), rt_band_duplicate(), rt_band_reclass(), rt_raster_gdal_rasterize(), rt_raster_generate_new_band(), test_band_metadata(), test_band_pixtype_16BSI(), test_band_pixtype_16BUI(), test_band_pixtype_1BB(), test_band_pixtype_2BUI(), test_band_pixtype_32BF(), test_band_pixtype_32BSI(), test_band_pixtype_32BUI(), test_band_pixtype_4BUI(), test_band_pixtype_64BF(), test_band_pixtype_8BSI(), test_band_pixtype_8BUI(), and test_raster_replace_band().