[postgis-tickets] [PostGIS] #4502: [raster] ST_SameAlignment() gives differing results based on which argument comes first

PostGIS trac at osgeo.org
Fri Sep 6 07:32:51 PDT 2019


#4502: [raster] ST_SameAlignment() gives differing results based on which argument
comes first
-------------------------+---------------------------
  Reporter:  evanderiel  |      Owner:  Bborie Park
      Type:  defect      |     Status:  new
  Priority:  medium      |  Milestone:  PostGIS 2.5.4
 Component:  raster      |    Version:  2.5.x
Resolution:              |   Keywords:
-------------------------+---------------------------

Comment (by Algunenano):

 This looks like a floating point issue. For example, one of the failures
 has these values:
 {{{
 NOTICE:  xw: -96.76916666545137957200
 NOTICE:  rast1->ipX: -96.76907407407122718723
 NOTICE:  yw: 41.99129629584308531776
 NOTICE:  yw, rast1->ipY: 41.99129629584308531776
 NOTICE:  The rasters (pixel corner coordinates) are not aligned
 }}}

 Considering there are multiple calls to ROUND, which calls floor, pow or
 ceil, I'd say that might be pretty delicate.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4502#comment:3>
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