[postgis-devel] [PostGIS] #1546: [raster] ST_SetBandNodataValue() does not clamp value

PostGIS trac at osgeo.org
Mon Feb 6 14:16:34 PST 2012


#1546: [raster] ST_SetBandNodataValue() does not clamp value
---------------------+------------------------------------------------------
 Reporter:  pracine  |       Owner:  pracine      
     Type:  defect   |      Status:  new          
 Priority:  low      |   Milestone:  PostGIS 2.0.0
Component:  raster   |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 If I do:

 {{{
 SELECT ST_BandNodataValue(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 0.001,
 -0.001, 0, 0, 4269), '8BSI'::text, 0, 200));
 }}}

 the nodata value is set to -56. It should be clamped to 127 instead.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1546>
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