[postgis-devel] [PostGIS] #1545: ST_SimplifyPreserveTopology creates invalid geometries

PostGIS trac at osgeo.org
Mon Feb 6 05:53:57 PST 2012


#1545: ST_SimplifyPreserveTopology creates invalid geometries
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 Example:
 {{{
 =# select ST_AsText(geom), ST_IsValid(geom),
 st_astext(ST_SimplifyPreserveTopology(geom,200)),
 ST_IsValid(ST_SimplifyPreserveTopology(geom, 200)) from ( select
 'LINESTRING(0 0, 5 0, 5 5, 0 0)'::geometry as geom ) as f;
 NOTICE:  Too few points in geometry component at or near point 0 0
 -[ RECORD 1 ]---------------------------
 st_astext  | LINESTRING(0 0,5 0,5 5,0 0)
 st_isvalid | t
 st_astext  | LINESTRING(0 0,0 0)
 st_isvalid | f
 }}}

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