<div dir="ltr"><div>It appears that ST_Difference has the same wrong behavior :<br><br>Intersection:LINESTRING(650814.2 6861324.8,650807.6 6861313,650750.3 6861219.1,650740.9 6861202.9)<br>ST_Difference:POLYGON((650810.218274441 6861311.53554141,650810.160856181 6861311.43730501,650752.878151586 6861217.56564774,650743.494815461 6861201.39436634,650740.9 6861202.9,650738.305184539 6861204.40563366,650747.705184539 6861220.60563366,650747.739143819 6861220.66269499,650805.009503031 6861314.51412134,650811.581725559 6861326.26445859,650814.2 6861324.8,650816.818274441 6861323.33554141,650810.218274441 6861311.53554141))<br>
 ST_SymDifference:POLYGON((650810.218274441 6861311.53554141,650810.160856181 6861311.43730501,650752.878151586 6861217.56564774,650743.494815461 6861201.39436634,650740.9 6861202.9,650738.305184539 6861204.40563366,650747.705184539 6861220.60563366,650747.739143819 6861220.66269499,650805.009503031 6861314.51412134,650811.581725559 6861326.26445859,650814.2 6861324.8,650816.818274441 6861323.33554141,650810.218274441 6861311.53554141))<br>
Surface : POLYGON((650810.218274441 6861311.53554141,650810.160856181 6861311.43730501,650752.878151586 6861217.56564774,650743.494815461 6861201.39436634,650738.305184539 6861204.40563366,650747.705184539 6861220.60563366,650747.739143819 6861220.66269499,650805.009503031 6861314.51412134,650811.581725559 6861326.26445859,650816.818274441 6861323.33554141,650810.218274441 6861311.53554141))<br>
Line: LINESTRING(650814.2 6861324.8,650807.6 6861313,650750.3 6861219.1,650740.9 6861202.9)<br><br><br></div>Rémi-C<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/27 Rémi Cura <span dir="ltr"><<a href="mailto:remi.cura@gmail.com" target="_blank">remi.cura@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>hey,<br></div>I'm experiencing a strange behavior with <a href="http://postgis.net/docs/manual-2.0/ST_SymDifference.html" target="_blank">ST_SymDifference :</a><br>
<div><div><br></div><div>When doing symdiff of a line and a surface, I get the same surfaces with added points on surfaces boundary (where line crossed surface).<br>
<br></div><div>Example :<br>  ___________<br><b><font face="Arial" size="5"><b><font face="Arial" size="5">├<span style="color:rgb(255,153,0)">---------</span></font></b>┤</font></b><br>  -------------------<br><br></div>

<div>gives <br>  ___________<br><b><font face="Arial" size="5"><b><font face="Arial" size="5"><span style="color:rgb(255,153,0)"></span>|             |</font></b></font></b><b><font face="Arial" size="5"><b><font face="Arial" size="5"><span style="color:rgb(255,153,0)"></span></font></b></font></b><br>

  -------------------<br><br></div><div>I read the SQL MM definition (<a href="http://jtc1sc32.org/doc/N1101-1150/32N1107-WD13249-3--spatial.pdf‎" target="_blank">here</a> , page 67-68-69), and I found no trace of behavior with line against surfaces.<br>

<br></div><div>Mathematically , if we take for definition the union without the intersection, the result is false (no point on the line should be in the result, yet they are).<br></div><div><br></div><div>I was expecting as output one polygon each side of the line (ie 2 polygons).<br>

<br></div><div>I would appreciate any thoughts about this.<br></div><div>Cheers,<br><br>Rémi-C<br></div><div>PS : I know I can use ST_Split or other tricks for the same result in this simple case, but not so easily for trickier case.<br>

</div></div></div>
</blockquote></div><br></div>