[postgis-tickets] [PostGIS] #2172: Attempt to add antarctica main body twice fails second time

PostGIS trac at osgeo.org
Tue Jan 15 01:34:42 PST 2013


#2172: Attempt to add antarctica main body twice fails second time
----------------------+-----------------------------------------------------
 Reporter:  strk      |       Owner:  strk         
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.0.3
Component:  topology  |     Version:  2.0.x        
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by strk):

 In other words, assuming your closed linestring is put in a table called
 "offending" and a field called "geom", the following query returns FALSE:
 {{{
 select st_equals(
   geom,
   st_union(
     st_geometryn(st_split(geom, st_pointn(geom,745)), 1),
     st_geometryn(st_split(geom, st_pointn(geom,745)), 2)
   )
 ) from offending;
 }}}

 Note that we are passing a vertex point to ST_Split !

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