Ticket #972 (closed defect: fixed)
ST_AddIsoEdge - give an error if containing_face is zero
| Reported by: | aperi2007 | Owned by: | strk |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.0 |
| Component: | topology | Version: | trunk |
| Keywords: | Cc: |
Description
Hi, following the ticket http://trac.osgeo.org/postgis/ticket/971
if the containing_face of node table is set to zero the ST_AddIsoEdge don't work correctly and report an error.
the example is this:
select topology.DropTopology('topo_test2');
select topology.CreateTopology('topo_test2',3003);
select topology.ST_AddIsoNode('topo_test2',NULL,ST_GeomFromEWKT('SRID=3003;POINT(1 4)'));
select topology.ST_AddIsoNode('topo_test2',NULL,ST_GeomFromEWKT('SRID=3003;POINT(2 2)'));
select topology.ST_AddIsoNode('topo_test2',NULL,ST_GeomFromEWKT('SRID=3003;POINT(6 4)'));
select topology.ST_AddIsoNode('topo_test2',NULL,ST_GeomFromEWKT('SRID=3003;POINT(4 7)'));
select topology.ST_AddIsoNode('topo_test2',NULL,ST_GeomFromEWKT('SRID=3003;POINT(4 4)'));
update topo_test2.node set containing_face = 0;
select topology.ST_AddIsoEdge('topo_test2',
topology.GetNodeByPoint('topo_test2', ST_GeomFromEWKT('SRID=3003;POINT(1 4)'), 0),
topology.GetNodeByPoint('topo_test2', ST_GeomFromEWKT('SRID=3003;POINT(2 2)'), 0),
ST_GeomFromEWKT('SRID=3003;LINESTRING(1 4, 2 2)')
);
the last select report this error:
ERROR: operator does not exist: ! boolean
Change History
Note: See
TracTickets for help on using
tickets.
