<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/">https://www.geeksforgeeks.org/equation-of-a-line-in-3d/</a>).</div><div class="gmail_default" style="font-family:monospace"><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>This is not so simple for line<span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><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">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>