|
PostGIS
3.7.0dev-r@@SVN_REVISION@@
|
| rt_band rt_band_reclass | ( | rt_band | srcband, |
| rt_pixtype | pixtype, | ||
| uint32_t | hasnodata, | ||
| double | nodataval, | ||
| rt_reclassexpr * | exprset, | ||
| int | exprcount | ||
| ) |
Returns new band with values reclassified.
| srcband | : the band who's values will be reclassified |
| pixtype | : pixel type of the new band |
| hasnodata | : indicates if the band has a nodata value |
| nodataval | : nodata value for the new band |
| exprset | : array of rt_reclassexpr structs |
| exprcount | : number of elements in expr |
Definition at line 69 of file rt_mapalgebra.c.
References ovdump::band, rt_reclassexpr_t::dst, ES_NONE, rt_reclassexpr_t::rt_reclassrange::exc_max, rt_reclassexpr_t::rt_reclassrange::exc_min, FLT_EQ, if(), rt_reclassexpr_t::rt_reclassrange::inc_max, rt_reclassexpr_t::rt_reclassrange::inc_min, rt_reclassexpr_t::rt_reclassrange::max, rt_reclassexpr_t::rt_reclassrange::min, RASTER_DEBUGF, rt_band_destroy(), rt_band_get_hasnodata_flag(), rt_band_get_height(), rt_band_get_nodata(), rt_band_get_pixel(), rt_band_get_width(), rt_band_init_value(), rt_band_new_inline(), rt_band_reclass_round_integer(), rt_band_set_ownsdata_flag(), rt_band_set_pixel(), rt_pixtype_size(), rtalloc(), rtdealloc(), rterror(), rt_reclassexpr_t::src, pixval::x, and pixval::y.
Referenced by RASTER_reclass(), rt_raster_colormap(), and test_band_reclass().

