<?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 Retrieve Extended data from KML files. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Retrieve-Extended-data-from-KML-files/m-p/1576470#M41993</link>
    <description>&lt;P&gt;This is a solution rather than a question. In essence I built a load script that can be imported such that a user can simply pass the kml file location to a subroutine and create a table for extended data.&amp;nbsp; It does not matter what the key:value pairs are or how many.&amp;nbsp; The users load script should look like this:&lt;/P&gt;
&lt;P&gt;//Include the sub routine file which includes the vShpKey f(x)&lt;BR /&gt;$(must_include=[lib://KMLParser.txt])&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;cb_2017_us_county_20m.Name,&lt;BR /&gt;cb_2017_us_county_20m.Point,&lt;BR /&gt;cb_2017_us_county_20m.Area,&lt;BR /&gt;//you need to add this line to create a key back to the extended data&lt;BR /&gt;$(vShpKey(cb_2017_us_county_20m.Area)) as ShpKey, &lt;BR /&gt;cb_2017_us_county_20m.Line&lt;BR /&gt;FROM [lib://TIAA/cb_2017_us_county_20m.kml]&lt;BR /&gt;(kml, Table is [cb_2017_us_county_20m/cb_2017_us_county_20m]);&lt;/P&gt;
&lt;P&gt;call KMLParse('[lib://cb_2017_us_county_20m.kml]');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the kmlParser file and the QVF.&amp;nbsp; let me know if you have any additional questions.&amp;nbsp; thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:56:19 GMT</pubDate>
    <dc:creator>jcf</dc:creator>
    <dc:date>2024-11-16T20:56:19Z</dc:date>
    <item>
      <title>Retrieve Extended data from KML files.</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieve-Extended-data-from-KML-files/m-p/1576470#M41993</link>
      <description>&lt;P&gt;This is a solution rather than a question. In essence I built a load script that can be imported such that a user can simply pass the kml file location to a subroutine and create a table for extended data.&amp;nbsp; It does not matter what the key:value pairs are or how many.&amp;nbsp; The users load script should look like this:&lt;/P&gt;
&lt;P&gt;//Include the sub routine file which includes the vShpKey f(x)&lt;BR /&gt;$(must_include=[lib://KMLParser.txt])&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;cb_2017_us_county_20m.Name,&lt;BR /&gt;cb_2017_us_county_20m.Point,&lt;BR /&gt;cb_2017_us_county_20m.Area,&lt;BR /&gt;//you need to add this line to create a key back to the extended data&lt;BR /&gt;$(vShpKey(cb_2017_us_county_20m.Area)) as ShpKey, &lt;BR /&gt;cb_2017_us_county_20m.Line&lt;BR /&gt;FROM [lib://TIAA/cb_2017_us_county_20m.kml]&lt;BR /&gt;(kml, Table is [cb_2017_us_county_20m/cb_2017_us_county_20m]);&lt;/P&gt;
&lt;P&gt;call KMLParse('[lib://cb_2017_us_county_20m.kml]');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the kmlParser file and the QVF.&amp;nbsp; let me know if you have any additional questions.&amp;nbsp; thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieve-Extended-data-from-KML-files/m-p/1576470#M41993</guid>
      <dc:creator>jcf</dc:creator>
      <dc:date>2024-11-16T20:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Extended data from KML files.</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieve-Extended-data-from-KML-files/m-p/1601047#M44470</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/13867"&gt;@jcf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me to retrieve LT_handle&amp;nbsp;ExtendedData from my KML file?&lt;/P&gt;&lt;P&gt;Check attached file.&lt;/P&gt;&lt;P&gt;Thanks in advance + regards&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 17:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieve-Extended-data-from-KML-files/m-p/1601047#M44470</guid>
      <dc:creator>LZucco</dc:creator>
      <dc:date>2019-07-10T17:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Extended data from KML files.</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieve-Extended-data-from-KML-files/m-p/1601061#M44471</link>
      <description>&lt;P&gt;when changing GEOID to LT_handle inside&amp;nbsp;KMLParser.txt&lt;/P&gt;&lt;P&gt;//create a key to join back to the kml file&lt;BR /&gt;Join(ExtndData)&lt;BR /&gt;LOAD&lt;BR /&gt;right(mid(description,index(description,'LT_Handle'),29),5) as LT_handle&lt;BR /&gt;left(replace("Polygon/outerBoundaryIs/LinearRing/coordinates",'0.0 ','')&lt;BR /&gt;,len(replace("Polygon/outerBoundaryIs/LinearRing/coordinates",'0.0 ',''))-4) as ShpKey&lt;BR /&gt;FROM $(vFileLoc)&lt;BR /&gt;(XmlSimple, table is [kml/Document/Folder/Placemark]);&lt;/P&gt;&lt;P&gt;That's the error I get (see attached image)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unexpected token: 'left', expected one of: ',', 'AutoGenerate', 'From', 'From_Field', 'Inline', 'Resident', 'Extension', ...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 18:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieve-Extended-data-from-KML-files/m-p/1601061#M44471</guid>
      <dc:creator>LZucco</dc:creator>
      <dc:date>2019-07-10T18:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Extended data from KML files.</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieve-Extended-data-from-KML-files/m-p/1695936#M53226</link>
      <description>&lt;P&gt;Works like a charm&lt;/P&gt;&lt;P&gt;Edit:&lt;BR /&gt;Works, mostly like a charm. This method has challenges entries with more than one polygon. Any extended data associated with these such as the image below, will not be associated with the original KML load . This is because the KML connector will combine multiple geometries into one field.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That being said, it seems to only effect .4% of counties in the US, so a 99.6% hit rate, is pretty good.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qliktom_0-1587663256812.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32360iF7E074D22EC64E3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qliktom_0-1587663256812.png" alt="qliktom_0-1587663256812.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 18:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieve-Extended-data-from-KML-files/m-p/1695936#M53226</guid>
      <dc:creator>QlikTom</dc:creator>
      <dc:date>2020-04-23T18:30:27Z</dc:date>
    </item>
  </channel>
</rss>

