<div dir="auto"><div dir="auto">Hi, </div><div dir="auto">I posted this to postgis-users but probably it's better here.</div><div dir="auto"><br></div><div dir="auto">Reading the suggested SQL in <a href="https://trac.osgeo.org/postgis/wiki/UsersWikiSimplifyWithTopologyExt">https://trac.osgeo.org/postgis/wiki/UsersWikiSimplifyWithTopologyExt</a> to generate the simplified edges geoms I think a minor change would provide more robust results</div><div dir="auto"><br></div><div dir="auto">In  Phase 3: </div><div dir="auto"><br></div><div dir="auto">>select ST_Collect(st_simplifyPreserveTopology(geom, 10000)) as geom </div><div dir="auto"><br></div><div dir="auto">could be canged to: </div><div dir="auto"><br></div><div dir="auto">>select ST_SimplifyPreserveTopology(ST_Collect(geom), 10000)) as geom </div><div dir="auto"><br></div><div dir="auto">This guarantees that topology is preserved between edge_data geometries. This solved various issues I obtained while applying the original SQL to some intricated geometries. </div><div dir="auto"><br></div><div dir="auto">If you agree on this I can modify the wiki page directly (is it allowed to registered members?). </div><div dir="auto"><br></div><div dir="auto">All the best, </div><div dir="auto">giovanni</div></div>