<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">IT is only a matter of parameter order:
<div><br>
</div>
<div>ST_within( line, polygon)</div>
<div><br>
</div>
<div>ST_Contains(polygon, line)</div>
<div><br>
</div>
<div>hth,</div>
<div>/r/b<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF608356" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> postgis-users [postgis-users-bounces@lists.osgeo.org] on behalf of Mustafa Elbehery [elbeherymustafa@gmail.com]<br>
<b>Sent:</b> Wednesday, March 02, 2016 10:06 AM<br>
<b>To:</b> PostGIS Users Discussion<br>
<b>Subject:</b> [postgis-users] LineString within Polygon<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr"><br>
<div><br>
</div>
<div>Hi All, </div>
<div><br>
</div>
<div>I want to make sure of what I am doing well. </div>
<div><br>
</div>
<div>I want to construct a geometry(<b>LineString</b>) from <b>List of Points </b>
which represent the <b>Path between Source && Destination Points.</b></div>
<div><b><br>
</b></div>
<div>Afterthen, would like to know if the <b>path fully within a polygon. </b></div>
<div><b><br>
</b></div>
<div>What is the correct method, ST_within, or ST_Contains ?!!</div>
<div><br>
</div>
<div>Thanks in advance</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>