<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 8, 2015 at 9:31 PM, John Abraham <span dir="ltr"><<a href="mailto:jea@hbaspecto.com" target="_blank">jea@hbaspecto.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Well I could say that using PostGIS ST_Intersects with "messy data" always seems to give me TopologyExceptions.  I've had luck with various combinations of ST_SnapToGrid and ST_Buffer(0), but with messy data there always seems to be some weird case that requires manually edits.  Sorry to be the bearer of bad news.  Frankly, I don't understand why the GEOS library has to throw that error. <div><br></div><div>I would encourage you to isolate particular problems and file bug reports.  Improvements in GEOS to eliminate the underlying error(s) would certainly be welcome.  <br></div></div></blockquote><div><br></div><div>That's pretty much what my e-mail does; it even includes a sample database to reproduce the issue. I brought it up here in case some discussion or slimming down needed/could be done before filing a bug report, and to be extra sure that it's a GEOS issue and not a PostGIS once, given the complexity of the query I'm running.<br></div></div></div></div>