[postgis-tickets] [PostGIS] #2953: Unable to compute stats for some features

PostGIS trac at osgeo.org
Thu Oct 2 10:24:19 PDT 2014


#2953: Unable to compute stats for some features
---------------------+------------------------------------------------------
 Reporter:  pramsey  |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 2.1.5
Component:  postgis  |     Version:  2.1.x        
 Keywords:  stats    |  
---------------------+------------------------------------------------------

Comment(by pramsey):

 So, my fix just catches cases where a big double gets converted into an
 Inf float, and instead converts them into MAX_FLT/MIN_FLT (depending on
 whether it's positive or negative). I feel like that's "OK", in a
 practical sense, since we're talking about values > 10^38 here.

 Another solution would be to try and fit the estimation code to still fail
 in cases of Inf boxes, but instead to fail a bit more selectively, since
 in the case of this example it would be possible to compute a 2D stats
 histogram, just not a 4D one. Unfortunately a lot of the code works in the
 ND case and the 2D case is just a small specialization.

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