[postgis-users] postgis topology

Ludovic Granjon ludovic.granjon at u-bourgogne.fr
Tue Jan 14 07:10:45 PST 2014


Hi all

I try to import a polygon layer to postgis and build topology with 
tolerance.
I try something like that

SELECT CreateTopology('ec_topo2', 27572);
SELECT AddTopoGeometryColumn('ec_topo2', 'public', 'ec', 'topogeom2', 
'MULTIPOLYGON');
UPDATE ec SET topogeom2 = toTopoGeom(geom, 'ec_topo', 1, 1.0);

But when I do that, I have

********** Erreur **********

ERREUR: Spatial exception - geometry intersects edge 262
État SQL :P0001
Contexte : fonction PL/pgsql « topogeo_addlinestring », ligne 124 à 
affectation
SQL statement "SELECT array_cat(edges, array_agg(x)) FROM ( select 
topology.TopoGeo_addLinestring(atopology, rec.geom, tol) as x ) as foo"
fonction PL/pgsql « topogeo_addpolygon », ligne 24 à affectation
fonction PL/pgsql « totopogeom », ligne 112 à FOR sur des lignes de SELECT
fonction PL/pgsql « totopogeom », ligne 94 à affectation

I try to modify the tolerance parameter but it still doesn't work

Have  you a solution for that ?

Thanks a lot

Regards

Ludovic

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ludovic_granjon.vcf
Type: text/x-vcard
Size: 149 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20140114/9037deac/attachment.vcf>


More information about the postgis-users mailing list