<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
ST_Relate() is an interesting and versatile function: <a
href="http://postgis.org/docs/ST_Relate.html">http://postgis.org/docs/ST_Relate.html</a><br>
(also illustrated at <a
href="http://workshops.boundlessgeo.com/postgis-intro/de9im.html">http://workshops.boundlessgeo.com/postgis-intro/de9im.html</a>
)<br>
<br>
But maybe your problem is one of tolerance/roundoff-error<br>
<br>
<div class="moz-cite-prefix">On 22/11/2013 8:17 AM, Ani Alamo wrote:<br>
</div>
<blockquote
cite="mid:CAC9oTVG8b40dXt3H_w0fd01xXgC7kfmZywAG+g9gsY8BO7d0ow@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><span style="font-family:'Droid Serif',Georgia,'Times New
Roman',serif;font-size:14.399999618530273px;line-height:23px">Hi!</span></div>
<span style="font-family:'Droid Serif',Georgia,'Times New
Roman',serif;font-size:14.399999618530273px;line-height:23px">I
need a specific function to get if two linestring overlaps.
e.g. Linestring 1 is Point (0, 0) : Point (10, 0) Linestring 2
is Point (0, 0) : Point (3, 0)</span><br
style="font-size:14.399999618530273px;font-family:'Droid
Serif',Georgia,'Times New Roman',serif;line-height:23px">
<br style="font-size:14.399999618530273px;font-family:'Droid
Serif',Georgia,'Times New Roman',serif;line-height:23px">
<span style="font-family:'Droid Serif',Georgia,'Times New
Roman',serif;font-size:14.399999618530273px;line-height:23px">In
this case I need "true" result because LineString 1 overlaps
in different points like 0,0 1,0 2,0 & 3,0. I dont need
the common points, I only need if two linestring overlaps or
not. I tried with this function in postgis...</span><br
style="font-size:14.399999618530273px;font-family:'Droid
Serif',Georgia,'Times New Roman',serif;line-height:23px">
<br style="font-size:14.399999618530273px;font-family:'Droid
Serif',Georgia,'Times New Roman',serif;line-height:23px">
<span style="font-family:'Droid Serif',Georgia,'Times New
Roman',serif;font-size:14.399999618530273px;line-height:23px">overlaps(buffer(LINESTRING</span><span
style="font-family:'Droid Serif',Georgia,'Times New
Roman',serif;font-size:14.399999618530273px;line-height:23px">1,
0.001), buffer(LINESTRING2, 0.001))</span><br
style="font-size:14.399999618530273px;font-family:'Droid
Serif',Georgia,'Times New Roman',serif;line-height:23px">
<span style="font-family:'Droid Serif',Georgia,'Times New
Roman',serif;font-size:14.399999618530273px;line-height:23px">I
create a buffer on both linestrings... but muy problem is some
times works better, some times not.</span><br
style="font-size:14.399999618530273px;font-family:'Droid
Serif',Georgia,'Times New Roman',serif;line-height:23px">
<br style="font-size:14.399999618530273px;font-family:'Droid
Serif',Georgia,'Times New Roman',serif;line-height:23px">
<span style="font-family:'Droid Serif',Georgia,'Times New
Roman',serif;font-size:14.399999618530273px;line-height:23px">Can
you help me please?</span><br
style="font-size:14.399999618530273px;font-family:'Droid
Serif',Georgia,'Times New Roman',serif;line-height:23px">
<br style="font-size:14.399999618530273px;font-family:'Droid
Serif',Georgia,'Times New Roman',serif;line-height:23px">
<span style="font-family:'Droid Serif',Georgia,'Times New
Roman',serif;font-size:14.399999618530273px;line-height:23px">Thanks!</span><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<address><b>Martin Feuchtwanger</b> feumar@shaw.ca <br>
Vancouver, BC V5N 1J6
<br>
http://members.shaw.ca/geomatics.developer
<br>
</address>
</div>
</body>
</html>