<?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: Manipulate strings, replace a blank space on two in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288944#M62363</link>
    <description>&lt;P&gt;Yes it's work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I based the treplace on a wrong field.&lt;/P&gt;
&lt;P&gt;I will post another message to explain how to finish to convert this kind of geometry to a real WKT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again, weldone (and I will look at regex for next problems like that).&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 09:41:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-09T09:41:31Z</dc:date>
    <item>
      <title>Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288930#M62349</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to transform an string into another one.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;My source string have blank spaces, and i want to replace some of them by a comma. More precisely, i want to change just one on two.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;An example could be more efficient:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;source string ( a list of coordinates) :&lt;BR /&gt;45.979904 -1.355741 45.979665 -1.355603 45.979396 -1.35542 45.979095 -1.355198 45.978451 -1.354722&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Desire result:&lt;BR /&gt;45.979904 -1.355741,45.979665 -1.355603,45.979396 -1.35542,45.979095 -1.355198,45.978451 -1.354722&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, the first blank space is not replaced, but the second yes, the third one no and fourth yes...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, i didn't know how many couples of coordinates i will have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somebody have an idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 13:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288930#M62349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288931#M62350</link>
      <description>&lt;P&gt;Create a routine to do this. I've knocked the below up which *should* work. You will need to test it first...&lt;/P&gt;&lt;PRE&gt;public static String prepareCoords(String data){
      String[] tokens = data.split(" ");
      String returnVal = "";

      for(int i = 0; i&amp;lt;tokens.length;i++){
	   if(i%2==1){
		returnVal = returnVal+tokens[i]+",";
	   }else{
		returnVal = returnVal+tokens[i]+" ";
	   }	
     }
     return returnVal;
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 13:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288931#M62350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288932#M62351</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;rhall_2_0&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is several error message displayed in the interface:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;public static String prepareCoords(String data){&lt;/PRE&gt; 
&lt;P&gt;- syntax error on token(s), misplaced construct(s)&lt;/P&gt; 
&lt;P&gt;- syntax error on token(s), misplaced construct(s)&lt;/P&gt; 
&lt;P&gt;- Syntax error on token "String",&amp;nbsp;@ expected&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;String[] tokens = data.split(" ");&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN&gt;- syntax error on token(s), misplaced construct(s)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;String returnVal = "";&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN&gt;- syntax error on token(s), misplaced construct(s)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;And the last one:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="printscreen.png" style="width: 627px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lw5t.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136929i9C91B133925C2BB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lw5t.png" alt="0683p000009Lw5t.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I am not familiar at all with java and the routines, but I have found how to use it so I will be able to test it I think.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288932#M62351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T14:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288933#M62352</link>
      <description>&lt;P&gt;Ah, sorry. I assumed you might know some Java. OK do the following....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create a routine called MyRoutine (you can change the name if you choose later, once you understand this).&lt;/P&gt;&lt;P&gt;2) Replace the code that is automatically generated with the below...&lt;/P&gt;&lt;PRE&gt;package routines;


public class MyRoutine {

	public static String prepareCoords(String data){
	      String[] tokens = data.split(" ");
	      String returnVal = "";

	      for(int i = 0; i&amp;lt;tokens.length;i++){
		   if(i%2==1){
			returnVal = returnVal+tokens[i]+",";
		   }else{
			returnVal = returnVal+tokens[i]+" ";
		   }	
	     }
	     return returnVal;
	}
}&lt;/PRE&gt;&lt;P&gt;3) Save the routine.&lt;/P&gt;&lt;P&gt;4) Now, in your job you would use the routine like below. I will assume that you are using it in a tMap or similar and that your data is in a column called "MyData" and the row is "row1".....&lt;/P&gt;&lt;PRE&gt;routines.MyRoutine.prepareCoords(row1.MyData)&lt;/PRE&gt;&lt;P&gt;The above code would do in one of your output columns in a tMap&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288933#M62352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T14:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288934#M62353</link>
      <description>&lt;P&gt;Perfect thank you very much.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I combine this with a &lt;SPAN&gt;StringHandling.LEFT and a concatenation to add at the end of the result the first couple of coordinats (that is a prerequisite of WKT).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I will just have to tansform my string into a geometry to set a projection and the work will be done.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks again for your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288934#M62353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T15:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288935#M62354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You could use a tReplace component:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 775px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lw3x.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145188iCAD5A6E94CE624BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lw3x.png" alt="0683p000009Lw3x.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288935#M62354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T15:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288936#M62355</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may need some help again, a detail have been forgotten...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the string submit at the beginning, I didn(t see that the X and Y are reversed. In fact when i have this as a source string ( a list of coordinates) :&lt;BR /&gt;45.979904 -1.355741 45.979665 -1.355603 45.979396 -1.35542 45.979095 -1.355198 45.978451 -1.354722&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result might be:&lt;BR /&gt;-1.355741 45.979904,-1.355603 45.979665,-1.35542 45.979396,-1.355198 45.979095,-1.354722&amp;nbsp;45.978451&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to reverse order of data inside each couple of coordinates?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 07:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288936#M62355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T07:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288937#M62356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;With a tReplace:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 779px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvwO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153939i7AEA9A4C854A518E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvwO.png" alt="0683p000009LvwO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;-First expression (To add a space at the end of your line):&lt;/P&gt; 
&lt;P&gt;pattern is&amp;nbsp;"(.*)"&lt;/P&gt; 
&lt;P&gt;replace is&amp;nbsp;"$1 "&lt;/P&gt; 
&lt;P&gt;-Second expression (To reverse the coordinates and replace the space with a comma)&lt;/P&gt; 
&lt;P&gt;pattern is&amp;nbsp;"(.*?)( )(.*?)( )"&lt;/P&gt; 
&lt;P&gt;replace is&amp;nbsp;"$3 $1,"&lt;/P&gt; 
&lt;P&gt;-Last expression (To remove the comma at the end of the line):&lt;/P&gt; 
&lt;P&gt;pattern is&amp;nbsp;"(.*),"&lt;/P&gt; 
&lt;P&gt;replace is&amp;nbsp;"$1"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me know it it meets your requirements&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 08:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288937#M62356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T08:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288938#M62357</link>
      <description>&lt;P&gt;For first expression pattern should be&amp;nbsp;"(^.*)" (Otherwise you will get an extra space at the end of the line)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 08:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288938#M62357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288939#M62358</link>
      <description>&lt;P&gt;Hello Eric,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have duplicate the job and test this solution.&lt;/P&gt;
&lt;P&gt;Here is the result:&lt;/P&gt;
&lt;P&gt;-0.447106,44.994297 44.994234,-0.446109,44.994333 -0.446381,44.994321,-0.445707,44.994443 -0.446009,44.99437,-0.444517,44.994516 -0.445193,44.9945,-0.443701,44.994416 -0.444318,44.99447,-0.443013,44.994124 -0.44327,44.994384,-0.44093,44.993959 -0.441486,44.994033,-0.440272, -0.440493,44.993887&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original data was:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;
 &lt;STRIKE&gt;
  44.994234 -0.447106,44.994297 -0.446381,44.994321 -0.446109,44.994333 -0.446009,44.99437 -0.445707,44.994443 -0.445193,44.9945 -0.444517,44.994516 -0.444318,44.99447 -0.443701,44.994416 -0.44327,44.994384 -0.443013,44.994124 -0.441486,44.994033 -0.44093,44.993959 -0.440493,44.993887 -0.440272 (
 &lt;/STRIKE&gt;&lt;FONT color="#FF0000"&gt;Bad copy/paste)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;44.994234 -0.447106 44.994297 -0.446381 44.994321 -0.446109 44.994333 -0.446009 44.99437 -0.445707 44.994443 -0.445193 44.9945 -0.444517 44.994516 -0.444318 44.99447 -0.443701 44.994416 -0.44327 44.994384 -0.443013 44.994124 -0.441486 44.994033 -0.44093 44.993959 -0.440493 44.993887 -0.440272&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more efficience, I suggest to simplify the original data into:&lt;/P&gt;
&lt;P&gt;Y1 X1 Y2 X2 Y3 X3...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, the result is :&lt;/P&gt;
&lt;P&gt;X1(comma)Y2(space)Y1&lt;SPAN&gt;(comma)&lt;/SPAN&gt;X3&lt;SPAN&gt;(comma)&lt;/SPAN&gt;Y3...&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;X1,Y2 Y1,X3,Y3...&lt;/P&gt;
&lt;P&gt;and the expected is:&lt;/P&gt;
&lt;P&gt;X1 Y1,X2 Y2, X3 Y3...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i am not cear enought tell me of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for helping me anyway&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288939#M62358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T09:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288940#M62359</link>
      <description>&lt;P&gt;I don't understand your input data. Is your input data "4&lt;SPAN&gt;4.994234 -0.447106,44.994297 -0.446381,44.994321 -0.446109,44.994333 -0.446009,44.99437 -0.445707,44.994443 -0.445193,44.9945 -0.444517,44.994516 -0.444318,44.99447 -0.443701,44.994416 -0.44327,44.994384 -0.443013,44.994124 -0.441486,44.994033 -0.44093,44.993959 -0.440493,44.993887 -0.440272" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Indeed I thought there was no comma in your input data. Here I can see a comma.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288940#M62359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T09:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288941#M62360</link>
      <description>&lt;P&gt;Sorry mistake of copy/paste.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original data is:&lt;/P&gt;&lt;P&gt;44.994234 -0.447106 44.994297 -0.446381 44.994321 -0.446109 44.994333 -0.446009 44.99437 -0.445707 44.994443 -0.445193 44.9945 -0.444517 44.994516 -0.444318 44.99447 -0.443701 44.994416 -0.44327 44.994384 -0.443013 44.994124 -0.441486 44.994033 -0.44093 44.993959 -0.440493 44.993887 -0.440272&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288941#M62360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T09:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288942#M62361</link>
      <description>&lt;P&gt;So I get the output:&lt;/P&gt;&lt;P&gt;-0.447106 44.994234,-0.446381 44.994297,-0.446109 44.994321,-0.446009 44.994333,-0.445707 44.99437,-0.445193 44.994443,-0.444517 44.9945,-0.444318 44.994516,-0.443701 44.99447,-0.44327 44.994416,-0.443013 44.994384,-0.441486 44.994124,-0.44093 44.994033,-0.440493 44.993959,-0.440272 44.993887&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isn't the expected result ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288942#M62361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T09:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288943#M62362</link>
      <description>&lt;P&gt;I've adjusted the routine I sent you last time. This one will handle the commas, rearrange the pairs and remove the extra comma at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public class MyRoutine {

	public static String prepareCoords(String data){
	      String[] tokens = data.split(" ");
	      String returnVal = "";
	      String pair = "";
		  
	      for(int i = 0; i&amp;lt;tokens.length;i++){
		   if(i%2==1){
		    pair = tokens[i]+" "+pair;
			returnVal = returnVal+pair+",";
			pair="";
		   }else{
			pair = tokens[i];
		   }	
	     }
	     returnVal = returnVal.substring(0, returnVal.length()-1);
	     return returnVal;
	}
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288943#M62362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T09:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288944#M62363</link>
      <description>&lt;P&gt;Yes it's work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I based the treplace on a wrong field.&lt;/P&gt;
&lt;P&gt;I will post another message to explain how to finish to convert this kind of geometry to a real WKT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again, weldone (and I will look at regex for next problems like that).&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288944#M62363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T09:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288945#M62364</link>
      <description>&lt;P&gt;Yes your routine works too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 10:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288945#M62364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate strings, replace a blank space on two</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288946#M62365</link>
      <description>&lt;P&gt;As promised, a quick explanation of the end of my process to create a real WKT. It is quite difficult to find on internet so if it could help someone later...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can use both solution proposed here to order the coordinates and the comma in the right place.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="temp1.PNG" style="width: 504px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lw4v.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157148i4897C5A653E47EE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lw4v.png" alt="0683p000009Lw4v.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Complete expression:&lt;/P&gt; 
&lt;PRE&gt;"LINESTRING("+row6.line+")" &lt;/PRE&gt; 
&lt;P&gt;After that, you will have to generate the geometry, with the sentence "new Geometry(name_of_your_var). Do not forget to save the type of your geometry column as "geometry":&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="temp2.PNG" style="width: 690px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvqj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142744i3119C73C6535BC33/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvqj.png" alt="0683p000009Lvqj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And finally, very important tip, you will have to add to your job a geographical component (I choose SGeomTxtInput) to load library or component (I am not sure of the term).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;A little SProj will help you to declare the projection.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;An output in postgis complete the job.&lt;/P&gt; 
&lt;P&gt;I have some trouble when repeating the manipulation, and in the PostGis output component, I choosed Update and Insert instead of Insert and Update and it works.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope it could help.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 11:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Manipulate-strings-replace-a-blank-space-on-two/m-p/2288946#M62365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T11:00:38Z</dc:date>
    </item>
  </channel>
</rss>

