[postgis-devel] [PostGIS] #1139: [raster] Values, when clamped, should not be set to nodata value
PostGIS
trac at osgeo.org
Thu Mar 1 17:21:22 PST 2012
#1139: [raster] Values, when clamped, should not be set to nodata value
----------------------+-----------------------------------------------------
Reporter: pracine | Owner: dustymugs
Type: defect | Status: closed
Priority: medium | Milestone: PostGIS 2.0.0
Component: raster | Version: trunk
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by dustymugs):
* status: assigned => closed
* resolution: => fixed
Comment:
Fixed in r9380. This is only in effect for rt_band_set_pixel(), not
rt_band_set_pixel_line().
The criteria used for correcting a clamped value is:
1. If boolean type, value other than NODATA value.
2. If integer type, value is decremented by 1 unless the clamped value IS
the minimum value possible for that pixel type where the value incremented
by 1.
3. If 32-bit floating point, value is decremented by FLT_EPSILON (minimum
positive floating point number of type float) unless the clamped value IS
the minimum value possible for that pixel type where the value incremented
by FLT_EPSILON.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1139#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list