[postgis-devel] [PostGIS] #972: ST_AddIsoEdge - give an error if containing_face is zero
PostGIS
trac at osgeo.org
Sat May 21 13:07:35 PDT 2011
#972: ST_AddIsoEdge - give an error if containing_face is zero
-----------------------+----------------------------------------------------
Reporter: aperi2007 | Owner: strk
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: topology | Version: trunk
Keywords: |
-----------------------+----------------------------------------------------
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
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/972>
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-devel
mailing list