<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">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‎">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>