[postgis-tickets] [PostGIS] #3401: ST_ModEdgeSplit makes topology invalid

PostGIS trac at osgeo.org
Tue Jan 5 03:27:31 PST 2016


#3401: ST_ModEdgeSplit makes topology invalid
-----------------------+---------------------------
  Reporter:  strk      |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  blocker   |  Milestone:  PostGIS 2.2.1
 Component:  topology  |    Version:  trunk
Resolution:            |   Keywords:  32bit
-----------------------+---------------------------

Comment (by strk):

 In other words, a point contained in a line does not yeld itself when its
 location is interpolated on the line:

 {{{
 $ with inp as ( SELECT 'LINESTRING(-180 0,0 0)'::geometry a, 'POINT(-20
 0)'::geometry b ),
 op as ( select a, b, ST_LineInterpolatePoint(a,ST_LineLocatePoint(a,b)) rt
 from inp )
 select ST_AsText(a) a, ST_AsText(b) b, ST_AsText(rt), ST_Distance(b, rt),
 ST_Equals(b, rt) from op;
 -[ RECORD 1 ]-----------------------
 a           | LINESTRING(-180 0,0 0)
 b           | POINT(-20 0)
 st_astext   | POINT(-20 0)
 st_distance | 7.105427357601e-15
 st_equals   | f
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3401#comment:16>
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