<?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: WKT Area Layer in GeoAnalytics</title>
    <link>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444802#M2052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For multipolygons it would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;='['&amp;amp; replace(replace(replace(replace(replace(my_wkt_string,'MULTIPOLYGON','')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,')',']')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,'(','[')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,', ','],[')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,' ',',')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp; ']'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But it's much more stable to load the WKT using the QGA Connector and the Load operation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2018 11:19:23 GMT</pubDate>
    <dc:creator>Patric_Nordstrom</dc:creator>
    <dc:date>2018-09-28T11:19:23Z</dc:date>
    <item>
      <title>WKT Area Layer</title>
      <link>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444797#M2047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having great difficulty showing an area layer based on a local csv with WKT data. See below example. I am trying to show this in an area layer, but i keep getting unsuccesful location lookup errors &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;. Does anyone have any experience with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laurens&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_4.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/182688_Screenshot_4.png" style="height: 493px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_3.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/182680_Screenshot_3.png" style="height: 98px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 11:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444797#M2047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-09T11:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: WKT Area Layer</title>
      <link>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444798#M2048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;QGA can't show WKT directly in a layer, load the csv file via GeoAnalytics connector Load or Simplify operation.&lt;/P&gt;&lt;P&gt;Unless you have Plus, place the csv on cloud drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is in WGS84 and only one polygon per line, a hack is transform the WKT directly to Sense geometries like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;='[[['&amp;amp; replace(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(replace(WKT,'POLYGON((',''),'))','')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,', ','],[')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,' ',',') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp; ']]]'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Nov 2017 07:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444798#M2048</guid>
      <dc:creator>Patric_Nordstrom</dc:creator>
      <dc:date>2017-11-11T07:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: WKT Area Layer</title>
      <link>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444799#M2049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have file like following. I would like to convert this in WKT format to use in QGIS. Is there any easy option in to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This geometry is created using dissolve funtion and works correctly in geoanalytics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your expert advice on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;IMG alt="Geometry.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213178_Geometry.png" style="height: 167px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 17:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444799#M2049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-10T17:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: WKT Area Layer</title>
      <link>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444800#M2050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes you can but it's easier to convert to &lt;A href="https://en.wikipedia.org/wiki/GeoJSON"&gt;GeoJSON&lt;/A&gt;, as the geometries are in that format.&lt;/P&gt;&lt;P&gt;Just add some text before and after, and add as an expression to a table and then do Export as data and copy column to a file or paste to &lt;A href="http://geojson.io/"&gt;geojson.io&lt;/A&gt; to test.&lt;/P&gt;&lt;P&gt;My geometry is &lt;SPAN style="font-family: 'courier new', courier;"&gt;it_Geometry &lt;/SPAN&gt;and the attribute is &lt;SPAN style="font-family: 'courier new', courier;"&gt;it_Adm1Code&lt;/SPAN&gt;, replace with your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=if(rowno()=1,'{"type":"FeatureCollection","features":[') &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;'{"type": "Feature","geometry": {"type": "MultiPolygon","coordinates":' &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;it_Geometry &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;'},"properties": {"zip1": "' &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;it_Adm1Code &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if(rowno()&amp;lt;&amp;gt;max(total aggr(rowno(),it_Adm1Code)),'"}},','"}}]}',)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively STORE to csv but then all double quotes and start and end quotes on each row needs to be removed. See app for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444800#M2050</guid>
      <dc:creator>Patric_Nordstrom</dc:creator>
      <dc:date>2018-09-13T10:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: WKT Area Layer</title>
      <link>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444801#M2051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌HI Patric, that helped alot. Is there any chance to convert a multipolygon shape?&lt;/P&gt;&lt;P&gt;I have a MSSQL database with geometry datatype that I want to use in qlikSense.&lt;/P&gt;&lt;P&gt;Your replace-script works with polygons but not with multipolygon. Maybe I can convert to geoJSON?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 20:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444801#M2051</guid>
      <dc:creator>dajjan81</dc:creator>
      <dc:date>2018-09-26T20:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: WKT Area Layer</title>
      <link>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444802#M2052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For multipolygons it would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;='['&amp;amp; replace(replace(replace(replace(replace(my_wkt_string,'MULTIPOLYGON','')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,')',']')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,'(','[')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,', ','],[')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,' ',',')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp; ']'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But it's much more stable to load the WKT using the QGA Connector and the Load operation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 11:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1444802#M2052</guid>
      <dc:creator>Patric_Nordstrom</dc:creator>
      <dc:date>2018-09-28T11:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: WKT Area Layer</title>
      <link>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1559215#M2393</link>
      <description>&lt;P&gt;Thanks! In my case, I need add a space in between&amp;nbsp;&lt;STRONG&gt;POLYGON((&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 18:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/GeoAnalytics/WKT-Area-Layer/m-p/1559215#M2393</guid>
      <dc:creator>bing_jville</dc:creator>
      <dc:date>2019-03-20T18:21:50Z</dc:date>
    </item>
  </channel>
</rss>

