<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=windows-1257"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 1.0cm 2.0cm 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=LT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello list,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I found that the filter for value relation is working strange.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This expresion is equal (filter returns true): <o:p></o:p></p><p class=MsoNormal><span lang=EN-US>$</span>geometry = geomFromWKT('LINESTRING(390364.82999985886272043 6126622.90999916009604931, 390354.81999995314981788 6126636.05999972019344568, 390385.25999995262827724 6126666.33999972231686115, 390437.70999995339661837 6126716.58999972138553858, 390504.5499999534804374 6126735.08999972138553858, 390559.1499999538064003 6126749.38999972492456436, 390612.05999990634154528 6126763.44999945163726807)')<o:p></o:p></p><p class=MsoNormal>As WKT is calculated from $geometry of that line.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>But if I try this expresion with added buffer of 1 meter for both sides for the same feature:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>buffer($geometry, 1) = buffer(geomFromWKT('LINESTRING(390364.82999985886272043 6126622.90999916009604931, 390354.81999995314981788 6126636.05999972019344568, 390385.25999995262827724 6126666.33999972231686115, 390437.70999995339661837 6126716.58999972138553858, 390504.5499999534804374 6126735.08999972138553858, 390559.1499999538064003 6126749.38999972492456436, 390612.05999990634154528 6126763.44999945163726807)'),1)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>it returns false.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The Idea is to use the spatial filter to query points that are in buffer of line.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I use the following expresion:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>within( geomFromWKT('POINT('|| "x" || ' ' || "y"|| ')'), buffer($geometry), 1) = 1      -  but this returns false.<o:p></o:p></p><p class=MsoNormal>„x“ and „y“ are coordinates of point<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>while such works fine:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>within( geomFromWKT('POINT('|| "x" || ' ' || "y"|| ')'), buffer(geomFromWKT('LINESTRING(390364.82999985886272043 6126622.90999916009604931, 390354.81999995314981788 6126636.05999972019344568, 390385.25999995262827724 6126666.33999972231686115, 390437.70999995339661837 6126716.58999972138553858, 390504.5499999534804374 6126735.08999972138553858, 390559.1499999538064003 6126749.38999972492456436, 390612.05999990634154528 6126763.44999945163726807)'),1) ) = 1<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>there <span lang=EN-US>$</span>geometry = geomFromWKT('LINESTRING(390364.82999985886272043 6126622.90999916009604931, 390354.81999995314981788 6126636.05999972019344568, 390385.25999995262827724 6126666.33999972231686115, 390437.70999995339661837 6126716.58999972138553858, 390504.5499999534804374 6126735.08999972138553858, 390559.1499999538064003 6126749.38999972492456436, 390612.05999990634154528 6126763.44999945163726807)')<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>any ideas for such strange behaviour?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-top:3.75pt'><span style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#787D83;mso-fareast-language:LT'>Sincerely,<o:p></o:p></span></p><p class=MsoNormal style='margin-top:3.75pt'><b><span style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#097DB9;mso-fareast-language:LT'>Paulius Litvinas<o:p></o:p></span></b></p><p class=MsoNormal style='margin-top:3.75pt'><span style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#787D83;mso-fareast-language:LT'>GIS consultant<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:LT'><img width=400 height=41 id="Picture_x0020_1" src="cid:image001.jpg@01CFE7A2.F031FDC0" alt=line><o:p></o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0><tr><td valign=top style='padding:0cm 0cm 7.5pt 0cm'><p class=MsoNormal style='margin-bottom:11.25pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:LT'><img width=8 height=17 id="Picture_x0020_2" src="cid:image002.png@01CFE7A2.F031FDC0" alt=map><o:p></o:p></span></p></td><td width=150 style='width:112.5pt;padding:0cm 0cm 7.5pt 3.75pt'><p class=MsoNormal style='margin-bottom:11.25pt;line-height:11.25pt'><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#787D83;mso-fareast-language:LT'>S. Žukausko str. 17,<br>LT-08234 Vilnius, Lithuania <o:p></o:p></span></p></td><td valign=top style='padding:0cm 0cm 7.5pt 0cm'><p class=MsoNormal style='margin-bottom:11.25pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:LT'><img width=12 height=17 id="Picture_x0020_3" src="cid:image003.png@01CFE7A2.F031FDC0" alt=telephone><o:p></o:p></span></p></td><td width=130 style='width:97.5pt;padding:0cm 0cm 7.5pt 3.75pt'><p class=MsoNormal style='margin-bottom:11.25pt;line-height:11.25pt'><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#787D83;mso-fareast-language:LT'>Tel. + 370 5 278 8456<br>Mob. +370 656 10 089 <o:p></o:p></span></p></td><td valign=top style='padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='margin-bottom:11.25pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:LT'><img width=11 height=31 id="Picture_x0020_4" src="cid:image004.png@01CFE7A2.F031FDC0" alt="mail_and_earth"><o:p></o:p></span></p></td><td width=90 style='width:67.5pt;padding:0cm 0cm 7.5pt 3.75pt'><p class=MsoNormal style='margin-bottom:11.25pt;line-height:11.25pt'><span style='mso-fareast-language:LT'><a href="mailto:paulius@infoera.lt"><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#787D83;text-decoration:none'>paulius@infoera.lt</span></a></span><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#787D83;mso-fareast-language:LT'><br></span><span style='mso-fareast-language:LT'><a href="http://www.infoera.lt/" target="_blank"><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#787D83;text-decoration:none'>www.infoera.lt</span></a></span><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#787D83;mso-fareast-language:LT'> <o:p></o:p></span></p></td></tr></table><p class=MsoNormal style='margin-bottom:3.75pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:LT'><img border=0 width=250 height=34 id="Picture_x0020_5" src="cid:image005.png@01CFE7A2.F031FDC0" alt="info_era_autodesk"><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:LT'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>