BEGIN;
--SELECT topology.DropTopology('poly_topo');
SELECT topology.CreateTopology('poly_topo',3004);
SELECT topology.AddTopoGeometryColumn('poly_topo','test','poly','topogeom','POLYGON');
UPDATE test.poly SET topogeom = toTopoGeom(geom, 'poly_topo', 1) WHERE gid=2;
UPDATE test.poly SET topogeom = toTopoGeom(geom, 'poly_topo', 1) WHERE gid=3;
--UPDATE test.multipoly SET topogeom = toTopoGeom(geom, 'multi_topo', 1) WHERE gid=3;
COMMIT;
