<div dir="ltr"><div>That's interesting that ST_SnapToGrid doesn't help for the full dataset - but not totally surprising, since it's a pretty blunt instrument.</div><div><br></div><div>I'd like to try out the larger dataset.  That free download website seems to have a bunch of unpleasant strings attached though - is there any other way you can make the data available?</div><div><br></div><div>If you are able to run Java, by all means try OverlayNG.  Happy to provide advice on how to run it if needed.</div><div><br></div><div>cheers - Martin</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 7, 2020 at 8:10 PM Jonathan Schultz <<a href="mailto:jonathan@schultz.la">jonathan@schultz.la</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank you for the prompt feedback.<br>
<br>
As you suggested I tried using ST_SnapToGrid and that worked very well even with a very fine grid - st_snaptogrid(geometry,0.000000000001). However when it came to a collection of lines more useful for real work (13540 records compared with 6 in the minimal dataset) I found that snapping even to a grid so coarse as to render the data useless - st_snaptogrid(geometry,0.01) - still produced an incorrect result.<br>
<br>
Here is the dump of my larger dataset: <a href="https://anonfiles.com/rdYcG1Edo2/dbca_dump_116_35_117_34_sql" rel="noreferrer" target="_blank">https://anonfiles.com/rdYcG1Edo2/dbca_dump_116_35_117_34_sql</a><br>
<br>
I'll have a go myself with OverlayNG.<br>
<br>
And I will file a PostGIS issue depending on the conclusions from this discussion.<br>
<br><br>
<br>
</blockquote></div></div>