--These geometries will crash ST_ChangeEdgeGeom as in 
/*
SELECT topology.ST_ChangeEdgeGeom('eu_geom_35_topo', 307418, SimplifyUTM(geom, 35)) 
FROM eu_geom_35_topo.edge 
WHERE edge_id = 307418
*/

select St_asHEXEWKB(geom)
from eu_geom_35_topo.edge
WHERE edge_id = 307418;
--"SRID=4326;LINESTRING(16.56942 46.52361,16.56904 46.52333,16.56937 46.52291,16.56895 46.52294,16.56873 46.52257,16.56912 46.52156,16.56904 46.52137,16.56799 46.52084,16.56827 46.52015,16.56762 46.52024,16.56719 46.52015,16.56717 46.52002,16.56812 46.51943,16.56875 46.51967,16.56937 46.51945,16.56968 46.51966,16.5699 46.51849,16.5707 46.5183,16.57084 46.51636,16.56929 46.51631,16.56661 46.51621,16.56621 46.5162,16.56629 46.51603,16.56643 46.51591,16.56666 46.51577,16.56685 46.51562,16.56854 46.51393,16.5696 46.5128,16.57188 46.51045,16.57223 46.51007,16.57235 46.50986,16.57244 46.50958,16.57246 46.50936,16.57237 46.50824,16.57235 46.50812,16.57232 46.50797,16.57239 46.5076,16.57237 46.50652,16.57316 46.50478)"
--"0102000020E61000002700000036B05582C5913040E5ED08A705434740A81DFE9AAC9130400282397AFC424740D252793BC29130402D6002B7EE424740280F0BB5A691304097E2AAB2EF4247400B410E4A9891304074EFE192E3424740E17F2BD9B19130406D73637AC2424740A81DFE9AAC913040C98E8D40BC4247407E74EACA679130406D3997E2AA424740444C89247A913040D881734694424740378E588B4F91304018096D3997424740459E245D33913040D881734694424740B745990D329130400AA2EE03904247401A34F44F70913040D847A7AE7C4247409A999999999130402D5BEB8B84424740D252793BC29130401FF46C567D4247406F2F698CD69130400A850838844247408BFD65F7E4913040CAA65CE15D424740C3D32B651992304027C286A757424740A73FFB9122923040357BA0151842474099F04BFDBC913040834C32721642474029965B5A0D91304020EF552B134247400DAB7823F3903040FC1873D712424740450DA661F8903040A0E062450D4247402979758E01913040F5D6C056094247408CF337A110913040042159C004424740D3BCE3141D913040EE940ED6FF414740C47762D68B91304076374F75C841474036CD3B4ED1913040C4B12E6EA34147408A3C49BA66923040211FF46C5641474043CA4FAA7D923040DA5548F94941474098DD938785923040F0C4AC174341474018EC866D8B9230400C59DDEA39414740A64412BD8C923040FEF15EB53241474026361FD786923040704221020E41474098DD938785923040C5387F130A414740C3D8429083923040B0AC342905414740B48EAA26889230408CB96B09F940474026361FD7869230408D62B9A5D540474018601F9DBA92304062D68BA19C404740"

select St_asEWKT(SimplifyUTM(geom, 35))
from eu_geom_35_topo.edge
WHERE edge_id = 307418;
--"SRID=4326;LINESTRING(16.56942 46.52361,16.56873 46.52257,16.56904 46.52137,16.56799 46.52084,16.56827 46.52015,16.56717 46.52002,16.56812 46.51943,16.56968 46.51966,16.5699 46.51849,16.5707 46.5183,16.57084 46.51636,16.56621 46.5162,16.57223 46.51007,16.57237 46.50652,16.57316 46.50478)"
--"0102000020E61000000F00000036B05582C5913040E5ED08A7054347400C410E4A9891304074EFE192E3424740A81DFE9AAC913040CA8E8D40BC4247407E74EACA679130406E3997E2AA424740454C89247A913040D881734694424740B745990D329130400AA2EE03904247401A34F44F70913040D947A7AE7C4247406F2F698CD69130400A850838844247408BFD65F7E4913040CBA65CE15D424740C4D32B651992304027C286A757424740A73FFB9122923040367BA015184247400DAB7823F3903040FD1873D71242474043CA4FAA7D923040DB5548F94941474027361FD7869230408D62B9A5D540474018601F9DBA92304062D68BA19C404740"