<?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: Create Line Map visualization from coordinates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733761#M56027</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;as the dimension you should use the line field&amp;nbsp;&lt;/P&gt;&lt;P&gt;then use this expression in the location field&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 13:38:25 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2020-08-06T13:38:25Z</dc:date>
    <item>
      <title>Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733348#M55978</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;The case is this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a file with many fields with the information of train stations. Some of those fields relevant to this issue are "Station","Line","Latitude","Longuitude".&lt;/P&gt;&lt;P&gt;These coordenates belong to each of the stations. A line is conformed by various stations. Here is a little example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="STATIONS.JPG" style="width: 333px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38548iECF8C9BA795F3CA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="STATIONS.JPG" alt="STATIONS.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I currently do is add this line in the script&amp;nbsp;GeoMakePoint([Latitude],[Longitude]) as Coordinates&lt;/P&gt;&lt;P&gt;and then in the map visualization I add Coordinates as point layer. If I have Coordinates in the data of the visualization it shows all the points.&amp;nbsp; If I use the Line as dimension, it only shows a few of the points.&lt;/P&gt;&lt;P&gt;But really what I need to do is create a line layer instead of a point layer on the map visualization. I need a visualization showing lines joining all the dots for each "Line". In the previous example it would show a 3 lines conformed by joining the coordinates of their stations.&lt;/P&gt;&lt;P&gt;Anyone can help me with this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733348#M55978</guid>
      <dc:creator>Enriquemmesteo</dc:creator>
      <dc:date>2024-11-16T01:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733363#M55981</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can create the line in the script or in the map&amp;nbsp;&lt;/P&gt;&lt;P&gt;for calculating the line in the front end, use this expression and line as dimension&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;='[[' &amp;amp; concat(Coordinates,',',Station) &amp;amp; ']]'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 10:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733363#M55981</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2020-08-05T10:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733379#M55982</link>
      <description>&lt;P&gt;Im kinda lost here. Where should that expression go to create the line layer for the map visualization?&lt;/P&gt;&lt;P&gt;I guess some intermediate steps could be required to join all stations from the same "Line" with their coordenates to display a line in the map, and I suppose this can't be done if we don't know the order. In the example :&lt;/P&gt;&lt;P&gt;To create a line for the "Line" 1: we need to join the coordinates for A, B,C in that order because A,C,B would be a different line.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 10:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733379#M55982</guid>
      <dc:creator>Enriquemmesteo</dc:creator>
      <dc:date>2020-08-05T10:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733381#M55983</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;you put this expression in the location field of the line layer&amp;nbsp;&lt;/P&gt;&lt;P&gt;as for the order the line is built using the station name for the order&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 10:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733381#M55983</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2020-08-05T10:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733692#M56020</link>
      <description>&lt;P&gt;Hi Liron, I've tried this but it says Invalid dimension and no lines are shown in the map. I've tried some teaks to the formula but nothing works.&lt;/P&gt;&lt;P&gt;Any ideas what is going on?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="invaliddim.JPG" style="width: 172px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38625iE6878D2A926F8CE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="invaliddim.JPG" alt="invaliddim.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 09:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733692#M56020</guid>
      <dc:creator>Enriquemmesteo</dc:creator>
      <dc:date>2020-08-06T09:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733761#M56027</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;as the dimension you should use the line field&amp;nbsp;&lt;/P&gt;&lt;P&gt;then use this expression in the location field&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 13:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1733761#M56027</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2020-08-06T13:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1743821#M57012</link>
      <description>&lt;P&gt;Thanks Lionbaram, it worked but needs more work from our part to prepare the data correctly. These stations needs to be ordered to form the lines correctly in the map visualization&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 06:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1743821#M57012</guid>
      <dc:creator>Enriquemmesteo</dc:creator>
      <dc:date>2020-09-15T06:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1744340#M57077</link>
      <description>&lt;P&gt;thank you... helped me a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 13:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1744340#M57077</guid>
      <dc:creator>sfbi</dc:creator>
      <dc:date>2020-09-16T13:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1752220#M57943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same requirement, and may I know if your expression should be added to the Location field (under &lt;STRONG&gt;Location&lt;/STRONG&gt; section) of both &lt;STRONG&gt;Start point&lt;/STRONG&gt; and &lt;STRONG&gt;End point&lt;/STRONG&gt;&amp;nbsp; or somewhere else ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 04:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1752220#M57943</guid>
      <dc:creator>snowman</dc:creator>
      <dc:date>2020-10-14T04:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1752232#M57945</link>
      <description>&lt;P&gt;Sorry, I got it.&amp;nbsp; The expression should be added in the Line geometry field.&lt;/P&gt;&lt;P&gt;However as &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/92726"&gt;@Enriquemmesteo&lt;/a&gt;&amp;nbsp;said the stations are not all in right sequence. Can the expression be modified if a new column of station sequence (SEQ) is added so that the line would be in the right sequence of stations ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 05:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1752232#M57945</guid>
      <dc:creator>snowman</dc:creator>
      <dc:date>2020-10-14T05:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1752283#M57951</link>
      <description>&lt;P&gt;I got the solution. To modify the expression advised by&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6330"&gt;@lironbaram&lt;/a&gt;&amp;nbsp;, can add a column from the data file for station sequence (eg. Seq), then use Seq instead of Station as the sort order for concat():&lt;/P&gt;&lt;P&gt;='[[' &amp;amp; concat(Coordinates,',',&lt;STRONG&gt;Seq&lt;/STRONG&gt;) &amp;amp; ']]'&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 09:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1752283#M57951</guid>
      <dc:creator>snowman</dc:creator>
      <dc:date>2020-10-14T09:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1934659#M76992</link>
      <description>&lt;P&gt;thanks a lot this was really helpful !!&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 09:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1934659#M76992</guid>
      <dc:creator>Trick17</dc:creator>
      <dc:date>2022-05-24T09:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Map visualization from coordinates</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1934660#M76993</link>
      <description>&lt;P&gt;thanks, that was really helpful!&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 09:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Line-Map-visualization-from-coordinates/m-p/1934660#M76993</guid>
      <dc:creator>Trick17</dc:creator>
      <dc:date>2022-05-24T09:23:19Z</dc:date>
    </item>
  </channel>
</rss>

