[postgis-users] LineString within Polygon

Burgholzer, Robert (DEQ) Robert.Burgholzer at deq.virginia.gov
Wed Mar 2 07:17:59 PST 2016


IT is only a matter of parameter order:

ST_within( line, polygon)

ST_Contains(polygon, line)

hth,
/r/b
________________________________
From: postgis-users [postgis-users-bounces at lists.osgeo.org] on behalf of Mustafa Elbehery [elbeherymustafa at gmail.com]
Sent: Wednesday, March 02, 2016 10:06 AM
To: PostGIS Users Discussion
Subject: [postgis-users] LineString within Polygon



Hi All,

I want to make sure of what I am doing well.

I want to construct a geometry(LineString) from List of Points which represent the Path between Source && Destination Points.

Afterthen, would like to know if the path fully within a polygon.

What is the correct method, ST_within, or ST_Contains ?!!

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20160302/7d7f62aa/attachment.html>


More information about the postgis-users mailing list