Hello Dear list,<br><br>I'm currently having trouble importing polygon data from geom to topogeom.<br><br>As I understand it, it is currently difficult to find which geometry is going to fail the conversion.<br>Maybe there is a better way, but for me I have to try to import the whole table, then it fails, then I cut the table in 2, then it fails, then ...<br>
I can't try individually to convert geom as failing will depend on what other geom were converted before.<br><br><br>Hence I'm suggesting a very cosmetic change to the topology.totopogeom(geometry, character varying, integer, double precision) function.<br>
<br>I tried a topology.totopogeom(ageom geometry, atopology character varying, alayer integer, atolerance double precision DEFAULT 0, witherror boolean DEFAULT true) function,<br>which is just the original totopogeom, but add a catch for exception when creating topogeom, and return null if exception is catched.<br>
<br>This way the workflow is easier :<br>I import my whole table, then look for NULL topogeom, and I can deal with the problematic geometries, maybe by changing precision and so.<br><br>Please let me know if you think this is worth it or if this is too minor tweak.<br>
<br>Cheers,<br><br>RĂ©mi-C<br><br><br>