id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
972	ST_AddIsoEdge - give an error if containing_face is zero	aperi2007	strk	"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

"	defect	closed	medium	PostGIS 2.0.0	topology	trunk	fixed		
