<?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: Import shapefile attributes - how to? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Import-shapefile-attributes-how-to/m-p/2306022#M77601</link>
    <description>Hi Francois,&amp;nbsp; 
&lt;BR /&gt;thanks for the quick answer. The demo workspace is the right one for the version of the plugins I downloaded. I have downloaded another version which didn't help me.&amp;nbsp; 
&lt;BR /&gt;Now it seems to work, at least I had a looked at how to create a shapefile schema in the metadata repository and I am able to see not only the geometry but also the others attributes. I hope I can have enough time to post my complete solution.&amp;nbsp; 
&lt;BR /&gt;Great tools by the way&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Kind Regards,&amp;nbsp; 
&lt;BR /&gt;Paul.</description>
    <pubDate>Fri, 17 Mar 2017 16:42:17 GMT</pubDate>
    <dc:creator>hernandezpaul</dc:creator>
    <dc:date>2017-03-17T16:42:17Z</dc:date>
    <item>
      <title>Import shapefile attributes - how to?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-shapefile-attributes-how-to/m-p/2306020#M77599</link>
      <description>Hi everyone,&amp;nbsp;
&lt;BR /&gt;I am using the spatial plug-ins to perform the following task. &amp;nbsp;I have a dataset with X and Y coordinates. &amp;nbsp;I have also a shapefile with multi polygons and two metadata attributes, name and Id. The idea is to look-up the names in the shapefile with the coordinates. &amp;nbsp;With a point in polygon it will be determined to which polygon belongs a point.&amp;nbsp;
&lt;BR /&gt;I am using the shapefile input component which points to the &amp;nbsp;.shp file.&amp;nbsp;
&lt;BR /&gt;I am facing to hurdles :
&lt;BR /&gt;- I cannot retrieve the name and I'd from the file. &amp;nbsp;I can only see an attribute call the_geom. How can I read the metadata?&amp;nbsp;
&lt;BR /&gt;- The second thing is, the file contains a multi polygon and I don't know how to iterate over it in order to perform a Contains or intersect with the points.
&lt;BR /&gt;
&lt;FONT size="6"&gt;Any comment will be highly appreciated.&amp;nbsp;&lt;/FONT&gt;
&lt;BR /&gt;Kind regards, Paul&amp;nbsp;</description>
      <pubDate>Sat, 16 Nov 2024 09:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-shapefile-attributes-how-to/m-p/2306020#M77599</guid>
      <dc:creator>hernandezpaul</dc:creator>
      <dc:date>2024-11-16T09:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Import shapefile attributes - how to?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-shapefile-attributes-how-to/m-p/2306021#M77600</link>
      <description>Hi,&amp;nbsp;
&lt;BR /&gt;you could probably download the demo workspace&amp;nbsp;
&lt;A href="https://github.com/talend-spatial/workspace-demo-spatial" rel="nofollow noopener noreferrer"&gt;https://github.com/talend-spatial/workspace-demo-spatial&lt;/A&gt; which contains some tMap making spatial join (eg. 
&lt;A href="https://github.com/talend-spatial/workspace-demo-spatial/tree/6.x/DEMO-SPATIAL/process/Spatial/test_vector/Routines)" rel="nofollow noopener noreferrer"&gt;https://github.com/talend-spatial/workspace-demo-spatial/tree/6.x/DEMO-SPATIAL/process/Spatial/test_vector/Routines)&lt;/A&gt;.
&lt;BR /&gt;HTH
&lt;BR /&gt;Francois</description>
      <pubDate>Fri, 17 Mar 2017 12:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-shapefile-attributes-how-to/m-p/2306021#M77600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-17T12:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Import shapefile attributes - how to?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-shapefile-attributes-how-to/m-p/2306022#M77601</link>
      <description>Hi Francois,&amp;nbsp; 
&lt;BR /&gt;thanks for the quick answer. The demo workspace is the right one for the version of the plugins I downloaded. I have downloaded another version which didn't help me.&amp;nbsp; 
&lt;BR /&gt;Now it seems to work, at least I had a looked at how to create a shapefile schema in the metadata repository and I am able to see not only the geometry but also the others attributes. I hope I can have enough time to post my complete solution.&amp;nbsp; 
&lt;BR /&gt;Great tools by the way&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Kind Regards,&amp;nbsp; 
&lt;BR /&gt;Paul.</description>
      <pubDate>Fri, 17 Mar 2017 16:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-shapefile-attributes-how-to/m-p/2306022#M77601</guid>
      <dc:creator>hernandezpaul</dc:creator>
      <dc:date>2017-03-17T16:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import shapefile attributes - how to?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Import-shapefile-attributes-how-to/m-p/2306023#M77602</link>
      <description>Hi, I solved almost everything. I want to briefly share my solution with you: 
&lt;BR /&gt;1) Create a generic schema under metadata: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCzc.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144800iFF5A95B4640D3FA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCzc.jpg" alt="0683p000009MCzc.jpg" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDim.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135697i3845B99D3136C158/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDim.png" alt="0683p000009MDim.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;2) This is the job overview: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDje.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150417iBA3DC719E91BB6E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDje.png" alt="0683p000009MDje.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;3) I read the shape file using a sShapeFileInput component: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDjj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134150i79856F36FAC82B94/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDjj.png" alt="0683p000009MDjj.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;4) The shapefile contains multipolygons and I want to have polygons. My solution was to use a sSimplify component. I used the default settings. 
&lt;BR /&gt;5) The projection of the shapefile was "MGI / Austria Lambert" which corresponds to EPSG 31287. I want to re-project it as EPSG 4326 (GCS_WGS_1984) which is the one used by my input coordinates. 
&lt;BR /&gt;6)&amp;nbsp; I read the x, y coordinates from a csv file. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDjo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136281i2FCE00820DA98370/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDjo.png" alt="0683p000009MDjo.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;7) With a s2DPointReplacer I converted the x,y coordinates as Point(x,y) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDjt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154036i045AF638F52EED11/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDjt.png" alt="0683p000009MDjt.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;This part was tricky, I needed to swap the x, y assignment to x = Latitude and y = longitude because the points in the polygons have this format --&amp;gt; Point(lat, long) 
&lt;BR /&gt;8)Finally I created an expression in a tMap just to get the polygon, poin intersection. I guess a contains would also work: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDjt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154036i045AF638F52EED11/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDjt.png" alt="0683p000009MDjt.png" /&gt;&lt;/span&gt;&amp;nbsp; 
&lt;BR /&gt;I hope this helps someone else. 
&lt;BR /&gt;Kind regards,&amp;nbsp; 
&lt;BR /&gt;Paul</description>
      <pubDate>Sun, 19 Mar 2017 13:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Import-shapefile-attributes-how-to/m-p/2306023#M77602</guid>
      <dc:creator>hernandezpaul</dc:creator>
      <dc:date>2017-03-19T13:52:29Z</dc:date>
    </item>
  </channel>
</rss>

