[postgis-devel] [PostGIS] #1715: Port the Edge splitting robustness improvement to ST_Split

PostGIS trac at osgeo.org
Tue Apr 10 10:17:04 PDT 2012


#1715: Port the Edge splitting robustness improvement to ST_Split
----------------------+-----------------------------------------------------
 Reporter:  strk      |       Owner:  strk         
     Type:  task      |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.0.1
Component:  topology  |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by strk):

  * component:  postgis => topology


Comment:

 ST_Split seems unaffected:
 {{{
 strk=# with inp as ( select
 '01020000000400000000000000000034400000000000002440000000000000244000000000000024400000000000002240000000000000284000000000000024400000000000003440'::geometry
 as line, '010100000000000000000022400000000000002840'::geometry as point
 ), spl as ( select ST_Split(line, point) as split, point  from inp ),
 spall as ( select st_geometryn(split, 1) as sp1, st_geometryn(split, 2) as
 sp2, point from spl ) select st_equals(ST_EndPoint(sp1), point),
 st_equals(ST_StartPoint(sp2), point) from spall;
  st_equals | st_equals
 -----------+-----------
  t         | t
 (1 row)
 }}}

 So maybe let's keep this ticket to use ST_Split from ST_ModEdgeSplit and
 ST_NewEdgesSplit

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