[postgis-tickets] [PostGIS] #2007: topogeo_addlinestring: error - geometry intersects edge

PostGIS trac at osgeo.org
Mon Oct 3 01:24:16 PDT 2016


#2007: topogeo_addlinestring: error - geometry  intersects edge
-----------------------+-------------------------------
  Reporter:  amartin   |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 2.0.8
 Component:  topology  |    Version:  2.0.x
Resolution:            |   Keywords:  linestring, order
-----------------------+-------------------------------

Comment (by amartin):

 Updated complete test cas:


 {{{
 CREATE EXTENSION postgis;
 CREATE EXTENSION postgis_topology;
 SET search_path TO public, topology;

 CREATE TABLE test_lines (id int4);
 CREATE TABLE test_polygons (id int4);

 SELECT CreateTopology('test_topo', 25830, 0.01);
 SELECT AddTopoGeometryColumn('test_topo', 'public', 'test_lines', 'geom',
 'LINE'); -- 1
 SELECT AddTopoGeometryColumn('test_topo', 'public', 'test_polygons',
 'geom', 'POLYGON'); -- 2


 SELECT ToTopoGeom (st_geomfromtext('MULTIPOLYGON(((308602.91
 4614696.3,308609.22 4614708.19,308619.74 4614723.97,308630.98
 4614746.21,308636.76 4614764.04,308641.05 4614779.52,308652.12
 4614791.86,308670.07 4614797.76,308686.51 4614795.59,308699.72
 4614771.95,308710.27 4614752.2,308602.91 4614696.3)))', 25830),
 'test_topo', 2, 0.01);
 WITH
   inp as (SELECT st_geomfromtext('MULTILINESTRING((308609.32
 4614708.34,308609.22 4614708.19,308619.74 4614723.97,308630.98
 4614746.21,308636.76 4614764.04,308641.05 4614779.52,308652.12
 4614791.86,308670.07 4614797.76,308686.51 4614795.59,308699.72
 4614771.95,308710.27 4614752.2),(308710.27 4614752.2,308609.32
 4614708.34))', 25830) as g),
   topo as (SELECT ToTopoGeom(g, 'test_topo', 1, 0.01) as t FROM inp)
   SELECT st_astext(t) from topo ;
 }}}

 Could not reproduce defect on postgis 2.3.0

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