[postgis-tickets] [PostGIS] #3401: ST_ModEdgeSplit makes topology invalid
PostGIS
trac at osgeo.org
Fri Dec 18 01:56:17 PST 2015
#3401: ST_ModEdgeSplit makes topology invalid
----------------------+---------------------------
Reporter: strk | Owner: strk
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.2.1
Component: topology | Version: trunk
Keywords: |
----------------------+---------------------------
It has been reported by Alessandro Furieri (esseffe) that the following
snippet creates an invalid topology on a 32bit Windows machine.
It has to be tested for confirmation on both windows and other 32bit
systems.
The snippet:
{{{
SELECT CreateTopology('topotest', 0, 0, 0);
SELECT ST_AddIsoNode('topotest', 0, ST_MakePoint(-180, 0));
SELECT ST_AddIsoNode('topotest', 0, ST_MakePoint(0, 0));
SELECT ST_AddIsoEdge('topotest', 1, 2, 'LINESTRING(-180 0, 0
0)'::geometry);
SELECT ST_ModEdgeSplit('topotest', 1, MakePoint(-20, 0));
}}}
In order to test topology validity:
{{{
SELECT * FROM ValidateTopology('topotest');
}}}
While the topology is valid the ValidateTopology call should return no
rows.
Ideally it would be called before and after the ST_ModEdgeSplit call.
The report is based on current TRUNK version of liblwgeom.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3401>
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