<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Point inside or outside given area in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380864#M608628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Or Shosham.&lt;/P&gt;&lt;P&gt;I will try doing it at database level and let you know how it goes. I have a SQL Server 2014 database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 08:56:51 GMT</pubDate>
    <dc:creator>arunraj2308</dc:creator>
    <dc:date>2017-12-12T08:56:51Z</dc:date>
    <item>
      <title>Point inside or outside given area</title>
      <link>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380862#M608626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;This is my second attempt at asking the same question. In my first attempt (Points In Polygon), I do not think I was able to explain the problem properly. Apologies. So here I go again ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am provided with area co-ordinates and using QV I need to show if customers fall inside or outside this area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Area:&lt;BR /&gt;load * inline &lt;BR /&gt;[Area_X,Area_Y&lt;BR /&gt;0,0&lt;BR /&gt;4,0&lt;BR /&gt;2,2&lt;BR /&gt;4,4&lt;BR /&gt;0,4&lt;BR /&gt;0,0&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Customer:&lt;BR /&gt;Load * inline &lt;BR /&gt;[Customer_ID, Cust_X, Cust_Y&lt;BR /&gt;1000001,1,3&lt;BR /&gt;1000002,3,2&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Desired Result :&lt;BR /&gt;[Customer_ID, Cust_X, Cust_Y, Inside_Outside_Indicator&lt;BR /&gt;1000001,1,3, Inside&lt;BR /&gt;1000002,3,2, Outside&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any further information. Any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I don't know if I need to use (or how to use) linest_m and linest_b to work out the line equation between points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 11:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380862#M608626</guid>
      <dc:creator>arunraj2308</dc:creator>
      <dc:date>2017-12-11T11:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Point inside or outside given area</title>
      <link>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380863#M608627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it might be a tad optimistic to try and create a ray-casting algorithm on the fly in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're OK with doing it script-side, you should be able to adapt the algorithms listed here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://rosettacode.org/wiki/Ray-casting_algorithm" title="https://rosettacode.org/wiki/Ray-casting_algorithm"&gt;https://rosettacode.org/wiki/Ray-casting_algorithm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or better yet, calculate it at the database level, depending on your database:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/21914443/ray-casting-with-pl-sql-function" title="https://stackoverflow.com/questions/21914443/ray-casting-with-pl-sql-function"&gt;oracle - Ray Casting With Pl/SQL Function - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/7573881/mysql-implementation-of-ray-casting-algorithm" title="https://stackoverflow.com/questions/7573881/mysql-implementation-of-ray-casting-algorithm"&gt;https://stackoverflow.com/questions/7573881/mysql-implementation-of-ray-casting-algorithm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 11:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380863#M608627</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-12-11T11:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Point inside or outside given area</title>
      <link>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380864#M608628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Or Shosham.&lt;/P&gt;&lt;P&gt;I will try doing it at database level and let you know how it goes. I have a SQL Server 2014 database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 08:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380864#M608628</guid>
      <dc:creator>arunraj2308</dc:creator>
      <dc:date>2017-12-12T08:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Point inside or outside given area</title>
      <link>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380865#M608629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Or Shosham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's working !!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks a million!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380865#M608629</guid>
      <dc:creator>arunraj2308</dc:creator>
      <dc:date>2017-12-12T12:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Point inside or outside given area</title>
      <link>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380866#M608630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same issue in my project.&lt;/P&gt;&lt;P&gt;Could you give us an example of how you implemented it in your application ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 14:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Point-inside-or-outside-given-area/m-p/1380866#M608630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-06T14:29:50Z</dc:date>
    </item>
  </channel>
</rss>

