[postgis-tickets] [PostGIS] #2864: ST_Envelope does not contain all points of invalid geometry

PostGIS trac at osgeo.org
Wed Jul 30 19:10:12 PDT 2014


#2864: ST_Envelope does not contain all points of invalid geometry
---------------------+------------------------------------------------------
 Reporter:  dbaston  |       Owner:  pramsey
     Type:  defect   |      Status:  new    
 Priority:  high     |   Milestone:         
Component:  postgis  |     Version:  1.5.X  
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by robe):

 Behaves the same in 1.5.  Whether we want to bother fixing for 1.5 is
 another issue.

 I think our ST_Envelope is native and not from GEOS. In fact casting to
 Box2d yields the same.


 {{{
 SELECT 'POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0), (1 1, 1 2, 2 2, 2 1, 1
 -20, 1 1))'::geometry::box2d

 -- outputs
 BOX(0 0,10 10)
 }}}

 Didn't even think we cared about validity as far as box determination is
 concerned.

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