<div dir="ltr"><div class="gmail_default" style="font-family:monospace">Fun fact - if you change 102 54 (9th coordinate of your linestring) to something "smaller" than 102 17.5 or 98.8 45 you will get "true" outcome :)</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pon., 21 sie 2023 o 10:16 jess_spring <<a href="mailto:jess_spring@aliyun.com">jess_spring@aliyun.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><div style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14px;color:rgb(0,0,0)"><div style="clear:both">It seems like a bug when i use "ST_Within" with multi-points.<br></div><div style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14px;color:rgb(0,0,0)"><div style="clear:both">Like : </div><div style="clear:both;background-color:rgb(255,255,255);padding:0px 0px 0px 2px;color:rgb(0,0,0);font-family:"Courier New";font-size:13px;white-space:nowrap"><p style="margin-top:13px;margin-bottom:13px"><span style="color:rgb(128,0,0);font-weight:700">select</span> </p><p style="margin-top:13px;margin-bottom:13px"><span style="color:rgb(0,0,0)">ST_Within</span>(</p><p style="margin-top:13px;margin-bottom:13px"><span style="color:rgb(0,128,0)">'SRID=4490;MULTILINESTRING(</span></p><p style="margin-top:13px;margin-bottom:13px"><span style="color:rgb(0,128,0)">(102 50,98 51,97 57,55 98,45 53,53 102,48 45,52 50,102 54,45 97,48 101,102 45,57 54,98 53,55 51,48 49,57 54,54 103))'</span>::<span style="color:rgb(0,0,0)">geometry</span></p><p style="margin-top:13px;margin-bottom:13px">,<span style="color:rgb(0,128,0)">'SRID=4490;MULTILINESTRING(</span></p><p style="margin-top:13px;margin-bottom:13px"><span style="color:rgb(0,128,0)">(102 50,98 51,97 57,55 98,45 53,53 102,48 45,52 50,102 54,45 97,48 101,102 45,57 54,98 53,55 51,48 49,57 54,54 103)</span></p><p style="margin-top:13px;margin-bottom:13px"><span style="color:rgb(0,128,0)">,(102 50,98 51,103 9))'</span>::<span style="color:rgb(0,0,0)">geometry</span></p><p style="margin-top:13px;margin-bottom:13px">);</p><p style="margin-top:13px;margin-bottom:13px">It return false ,but it should be true obviously.</p><p style="margin-top:13px;margin-bottom:13px">(PostgisVerion:3.2)</p><p style="margin-top:13px;margin-bottom:13px"><br></p><p style="margin-top:13px;margin-bottom:13px"><br></p><p style="margin-top:13px;margin-bottom:13px"><br></p><p style="margin-top:13px;margin-bottom:13px">since from jess,China.</p><p style="margin-top:13px;margin-bottom:13px">wish heard from you!<br></p><p style="margin-top:13px;margin-bottom:13px"><br></p></div></div><div style="line-height:20px;clear:both"><br></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>