[postgis-devel] [wktraster] Core tests failure for r5841

strk strk at keybit.net
Thu Jan 13 09:32:48 PST 2011


On Thu, Jan 13, 2011 at 05:27:54PM +0000, Mateusz Loskot wrote:
> On 13/01/11 17:08, Pierre Racine wrote:
> >>But SHRT_MIN and SHRT_MAX can be real values for pixels. What
> >>about storing NODATA in those cases, like Mateusz suggested?
> >
> >There must be a confusion here as where the problem occurs. It is
> >in:
> >
> >st_addband(rast raster, index int, pixeltype text, initialvalue
> >float8, nodataval float8)
> 
> Pierre,
> 
> This is one of number of places where the problem exists.
> Others are rt_band_set_pixel, rt_band_set_nodata, and generally
> in any place where double is implicitly or explicitly squeezed in 
> integral types.

Worth defining a function or macro for the clamp operation, to
be consistent in all places.

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list