[postgis-tickets] [PostGIS] #3006: Numeric overflow when executing AddRasterConstraints

PostGIS trac at osgeo.org
Tue Dec 2 05:46:03 PST 2014


#3006: Numeric overflow when executing AddRasterConstraints
--------------------+-------------------------------------------------------
 Reporter:  rtorre  |       Owner:  dustymugs    
     Type:  defect  |      Status:  new          
 Priority:  high    |   Milestone:  PostGIS 2.1.5
Component:  raster  |     Version:  2.1.x        
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by rtorre):

 Since the purpose of the constraint is to check for equality of `numeric`
 values, something like
 {{{
 CHECK abs(st_scalex(the_raster_webmercator) - (attr)) <= delta
 }}}

 should be more appropriate, with `delta = 1e-10` for instance.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3006#comment:6>
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-tickets mailing list