[postgis-devel] [PostGIS] #1307: [raster] reduce the copious quantity of double truncation/clamping warnings

PostGIS trac at osgeo.org
Fri Nov 18 11:21:34 PST 2011


#1307: [raster] reduce the copious quantity of double truncation/clamping warnings
-----------------------------+----------------------------------------------
  Reporter:  dustymugs       |       Owner:  dustymugs    
      Type:  task            |      Status:  closed       
  Priority:  medium          |   Milestone:  PostGIS 2.0.0
 Component:  postgis raster  |     Version:  trunk        
Resolution:  fixed           |    Keywords:               
-----------------------------+----------------------------------------------

Comment(by dustymugs):

 Unfortunately yes.  The problem is many-fold.

 Having the warnings enabled will cause flooding as rasters get larger and
 does affect the amount of data transmitted between the server and the
 client.

 On the other hand, having no warning can cause ignorance on the part of
 the end-user.  And if you have a flood, the end-user is most likely to
 ignore the warnings anyways.  Granted, it isn't like the end-user is able
 to prevent the truncation/clamping/conversion process anyways as all
 values are handled as doubles until burning into the band object.

 The ideal would be to warn that a raster may experience
 truncation/clamping/conversion but every raster regardless of pixel type
 can experience truncation/clamping/conversion so the warning is kinda
 frivolous.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1307#comment:4>
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