[postgis-tickets] [PostGIS] #2954: ST_ClipByBox2D: ERROR: gbox_overlaps: cannot compare geodetic and non-geodetic boxes

PostGIS trac at osgeo.org
Fri Oct 3 01:40:26 PDT 2014


#2954: ST_ClipByBox2D: ERROR:  gbox_overlaps: cannot compare geodetic and non-
geodetic boxes
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.2.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 Using a BOX2D (as expected by the signature) works:
 {{{
 SELECT st_clipbybox2d('SRID=4326;POINT(0 0)','BOX(-1 -1,1 1)'::box2d);
 0101000020E610000000000000000000000000000000000000
 }}}

 But casting a BOX3D to a BOX2D fails again:
 {{{
 SELECT st_clipbybox2d('SRID=4326;POINT(0 0)','BOX3D(-1 -1,1
 1)'::box3d::box2d);
 ERROR:  gbox_overlaps: cannot compare geodetic and non-geodetic boxes
 }}}

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