PostGIS
3.7.0dev-r@@SVN_REVISION@@
|
rt_band rt_band_reclass_exact | ( | rt_band | srcband, |
rt_reclassmap | map, | ||
uint32_t | hasnodata, | ||
double | nodataval | ||
) |
Returns new band with values reclassified.
srcband | : the band who's values will be reclassified |
map | : the src and dst values to remapping |
hasnodata | : indicates if the band has a nodata value |
nodataval | : nodata value for the new band |
srcband | : the band who's values will be reclassified |
map | : rt_reclassmap with src->dst mappings |
hasnodata | : indicates if the user is supplying a nodata |
nodataval | : user supplied nodata value for the new band |
Definition at line 288 of file rt_mapalgebra.c.
References ovdump::band, rt_reclassmap_t::count, rt_classpair_t::dst, rt_reclassmap_t::dsttype, ES_NONE, rt_reclassmap_t::pairs, 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_classpair_cmp(), rt_pixtype_size(), rtalloc(), rtdealloc(), rterror(), rt_classpair_t::src, pixval::x, and pixval::y.
Referenced by RASTER_reclass_exact().