[postgis-tickets] [PostGIS] #4493: ST_RemoveRepeatedPoints returned geometry bbox might be incorrect

PostGIS trac at osgeo.org
Thu Aug 29 02:38:14 PDT 2019


#4493: ST_RemoveRepeatedPoints returned geometry bbox might be incorrect
------------------------+----------------------------
 Reporter:  Algunenano  |      Owner:  Algunenano
     Type:  defect      |     Status:  assigned
 Priority:  high        |  Milestone:  PostGIS 2.3.11
Component:  postgis     |    Version:  trunk
 Keywords:              |
------------------------+----------------------------
 When the tolerance is > 0, the resulting geometry bbox might change but it
 isn't updated:

 Example:
 {{{
 # WITH geom AS
 (
     SELECT ST_RemoveRepeatedPoints('POLYGON((0 0, 10 0, 10 10, 10.5 10.5,
 10 10, 0 10, 0 0))', 1) as g
 )
 Select ST_AsText(g) as geometry, postgis_getbbox(g) AS box from geom;
               geometry              |        box
 ------------------------------------+--------------------
  POLYGON((0 0,10 0,10 10,0 10,0 0)) | BOX(0 0,10.5 10.5)
 (1 row)

 Time: 0.635 ms
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4493>
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