[postgis-tickets] [PostGIS] #4884: toTopoGeom does NOT correctly set sign of element_id for linear TopoGeometry objects
PostGIS
trac at osgeo.org
Mon Mar 15 10:34:50 PDT 2021
#4884: toTopoGeom does NOT correctly set sign of element_id for linear
TopoGeometry objects
----------------------+---------------------------
Reporter: strk | Owner: strk
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.1.2
Component: topology | Version: 1.5.X
Keywords: |
----------------------+---------------------------
With POSTGIS="3.2.0dev 3.1.0rc1-113-gd758f5025":
{{{
strk=# select createtopology('t2');
createtopology
----------------
5
(1 row)
strk=# create table t2.l(id int);
CREATE TABLE
strk=# select addtopogeometrycolumn('t2','t2','l','g','line');
addtopogeometrycolumn
-----------------------
1
(1 row)
strk=# insert into t2.l(g) select toTopoGeom('LINESTRING(0 0, 10
0)'::geometry, 't2', 1, 0);
INSERT 0 1
strk=# insert into t2.l(g) select toTopoGeom('LINESTRING(10 0, 0
0)'::geometry, 't2', 1, 0);
INSERT 0 1
strk=# select * from t2.relation;
topogeo_id | layer_id | element_id | element_type
------------+----------+------------+--------------
1 | 1 | 1 | 2
2 | 1 | 1 | 2
(2 rows)
}}}
See also #4881 for how sign of element_id is not considered in output
either
This bug/limitation is probably as old as PostGIS Topology.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4884>
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