[postgis-devel] [PostGIS] #348: [wktraster] st_raster_envelope & st_raster_to_box2d return different results

PostGIS trac at osgeo.org
Wed Dec 16 02:32:33 PST 2009


#348: [wktraster] st_raster_envelope & st_raster_to_box2d return different
results
------------------------+---------------------------------------------------
  Reporter:  pracine    |       Owner:  pracine        
      Type:  defect     |      Status:  new            
  Priority:  high       |   Milestone:  WKTRaster 0.1.6
 Component:  wktraster  |     Version:  trunk          
Resolution:             |    Keywords:                 
------------------------+---------------------------------------------------
Comment (by mloskot):

 The difference (WKT Raster Windows build by Regina from 2009-08-10
 17:41:12) is as follows:

  * SELECT ST_AsText(st_raster_envelope(rast)) FROM mytable
 {{{
 POLYGON((-90 90,-72 90,-72 72,-90 72,-90 90))
 }}}

  * SELECT ST_AsText(st_raster_to_box2d(rast)) FROM mytable
 {{{
 POLYGON((-90 72,-90 90,-72 90,-72 72,-90 72))
 }}}

 The two geometries are almost identical. The only difference is which is
 the first vertex, upper left vs lower left corner.

 What does the "should return two identical lines" mean? Which line is the
 one that should be returned?

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/348#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-devel mailing list