<?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 Determine if geopoint within polygon in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Determine-if-geopoint-within-polygon/m-p/1565693#M62945</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm investigating whether its possible to determine if a geopoint is within a polygon.&lt;/P&gt;&lt;P&gt;I think this is possible with some of the paid extensions and with GeoAnalytics, however neither of these are options,&lt;/P&gt;&lt;P&gt;I can only work with the base Qlik Sense product.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I've found this mathematical formulae that can calculate it, however this is in python and java&lt;/P&gt;&lt;P&gt;Albeit possible to convert, just wondering if I'm running down the wrong path here before I get in too deep.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int pnpoly(int nvert, float *vertx, float *verty, float testx, float testy)&lt;BR /&gt;{&lt;BR /&gt;int i, j, c = 0;&lt;BR /&gt;for (i = 0, j = nvert-1; i &amp;lt; nvert; j = i++) {&lt;BR /&gt;if ( ((verty[i]&amp;gt;testy) != (verty[j]&amp;gt;testy)) &amp;amp;&amp;amp;&lt;BR /&gt;(testx &amp;lt; (vertx[j]-vertx[i]) * (testy-verty[i]) / (verty[j]-verty[i]) + vertx[i]) )&lt;BR /&gt;c = !c;&lt;BR /&gt;}&lt;BR /&gt;return c;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering if anybody has dealt with something like this before and has any tips.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:06:28 GMT</pubDate>
    <dc:creator>ruanhaese</dc:creator>
    <dc:date>2024-11-16T21:06:28Z</dc:date>
    <item>
      <title>Determine if geopoint within polygon</title>
      <link>https://community.qlik.com/t5/App-Development/Determine-if-geopoint-within-polygon/m-p/1565693#M62945</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm investigating whether its possible to determine if a geopoint is within a polygon.&lt;/P&gt;&lt;P&gt;I think this is possible with some of the paid extensions and with GeoAnalytics, however neither of these are options,&lt;/P&gt;&lt;P&gt;I can only work with the base Qlik Sense product.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I've found this mathematical formulae that can calculate it, however this is in python and java&lt;/P&gt;&lt;P&gt;Albeit possible to convert, just wondering if I'm running down the wrong path here before I get in too deep.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int pnpoly(int nvert, float *vertx, float *verty, float testx, float testy)&lt;BR /&gt;{&lt;BR /&gt;int i, j, c = 0;&lt;BR /&gt;for (i = 0, j = nvert-1; i &amp;lt; nvert; j = i++) {&lt;BR /&gt;if ( ((verty[i]&amp;gt;testy) != (verty[j]&amp;gt;testy)) &amp;amp;&amp;amp;&lt;BR /&gt;(testx &amp;lt; (vertx[j]-vertx[i]) * (testy-verty[i]) / (verty[j]-verty[i]) + vertx[i]) )&lt;BR /&gt;c = !c;&lt;BR /&gt;}&lt;BR /&gt;return c;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering if anybody has dealt with something like this before and has any tips.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Determine-if-geopoint-within-polygon/m-p/1565693#M62945</guid>
      <dc:creator>ruanhaese</dc:creator>
      <dc:date>2024-11-16T21:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if geopoint within polygon</title>
      <link>https://community.qlik.com/t5/App-Development/Determine-if-geopoint-within-polygon/m-p/1565695#M62946</link>
      <description>&lt;P&gt;* Both my geopoints and geoAreas are imported correctly, and display on my maps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example Data:&lt;/P&gt;&lt;P&gt;&lt;U&gt;Table1:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name,&amp;nbsp; &amp;nbsp;GeoArea&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Site1,&amp;nbsp; [[ -25.4, 28.9 ],&amp;nbsp;[ -22.4, 28.9 ],&amp;nbsp;[ -25.4, 24.9 ]]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;StoreName, GeoPoint&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Store1,&amp;nbsp; [ -23.3, 26.4]&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 09:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Determine-if-geopoint-within-polygon/m-p/1565695#M62946</guid>
      <dc:creator>ruanhaese</dc:creator>
      <dc:date>2019-04-05T09:56:01Z</dc:date>
    </item>
  </channel>
</rss>

