<div dir="ltr">Is there any example of implementation for segments to have a look at?<div><br></div><div>For 2D lines, it is possible to ST_buffer to detect potentially parallel lines.  That is useful since natural lines do not necessarily in parallel exactly.</div><div><br></div><div>Is there any equivalent to ST_Buffer for dealing with 3D objects?</div><div><br></div><div>Regards,</div><div><br></div><div>David</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 25 Feb 2022 at 09:30, Marcin Mionskowski <<a href="mailto:mionskowskimarcin@gmail.com">mionskowskimarcin@gmail.com</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"><div dir="ltr"><div class="gmail_default" style="font-family:monospace">It's easy for segments. Just use general math approach (for example first hit with duckduckgo search for line equation 3d - <a href="https://www.geeksforgeeks.org/equation-of-a-line-in-3d/" target="_blank">https://www.geeksforgeeks.org/equation-of-a-line-in-3d/</a>).</div><div class="gmail_default" style="font-family:monospace"><span lang="en"><span><span>This is not so simple for line<span lang="en"><span><span>strings</span></span></span> composed from multiple segments</span></span></span>. For exapmle, are the following lines parallel?<br></div><div class="gmail_default" style="font-family:monospace">select ST_GeomFromText('LINESTRING(0 0 0,0 0 4)') geomA<br>      ,ST_GeomFromText('LINESTRING(0 -1 0,1 0 1,0 1 2,-1 0 3,0 -1 4)') geomB</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">czw., 24 lut 2022 o 10:53 Shaozhong SHI <<a href="mailto:shishaozhong@gmail.com" target="_blank">shishaozhong@gmail.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">The following is interesting.<div><br></div><div><a href="https://gis.stackexchange.com/questions/224937/how-to-select-parallel-lines-in-postgis" target="_blank">How to select parallel lines in postgis - Geographic Information Systems Stack Exchange</a><br></div><div><br></div><div>However, it appears to be full 2D lines.</div><div><br></div><div>Are there any solutions to find and select parallel lines in 3D?</div><div><br></div><div>Regards,</div><div><br></div><div>David</div></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>