id summary reporter owner description type status priority milestone component version resolution keywords cc 3329 Topology population regression strk strk "Another regression spotted between plpgsql and C version of topology loading. I'm attaching the smallest input found so far, can probably be further reduced. Thanks @esseffe for finding this out. To reproduce the error: {{{ strk=# select createtopology('rer_exception'); createtopology ---------------- 2650 (1 row) strk=# select topogeo_addpolygon('rer_exception', st_geometryn(geom, 1)) from rer_exception order by gid; ERROR: SQL/MM Spatial exception - geometry crosses edge 58 }}} Switching to the plpgsql version works and returns 60 faces (with a few duplicates and a null, which isn't really expected): {{{ ALTER EXTENSION strk=# select topogeo_addpolygon('rer_exception', st_geometryn(geom, 1)) from rer_exception order by gid; topogeo_addpolygon -------------------- 71 84 71 72 74 76 78 80 82 86 89 91 93 95 96 97 99 87 76 80 88 90 89 92 99 71 73 100 107 106 77 81 110 78 115 71 73 100 107 106 77 81 110 78 115 117 84 82 83 119 86 126 125 130 94 131 93 136 91 96 138 97 142 146 148 149 151 98 95 141 (60 rows) }}}" defect closed blocker PostGIS 2.2.1 topology 2.2.x fixed esseffe aperi2007