Skip to main content
Question

Loop Process


danilo_fme
Evangelist
Forum|alt.badge.img+44

Hi Team,

I have a dynamic CSV file with the following structure:

Day 01102018
Point1
Point2
Point3
Time 01:00
23
40
4
Time 01:30
43
24
21
Time 02:00
130
49
10

Is necessary to identify the lines 1-2-3 and in each node ( 
Time XXXX ) realize the merger with the Points. The Loop process will be
 good in this case?

The Image bellow, is my goal:

Attached my example file - 

Thanks,

Danilo

7 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • October 3, 2018

I would personally read it line by line with a text file reader and then use either variables or adjacent features.

 

 

See https://knowledge.safe.com/questions/3346/translating-a-polygon-from-poly-osmosis-polygon-fo.html

 

 

Or https://knowledge.safe.com/questions/65092/connect-lines-without-common-id-by-order-in-file.html?childToView=65116#answer-65116

danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Author
  • Evangelist
  • October 3, 2018
jdh wrote:

I would personally read it line by line with a text file reader and then use either variables or adjacent features.

 

 

See https://knowledge.safe.com/questions/3346/translating-a-polygon-from-poly-osmosis-polygon-fo.html

 

 

Or https://knowledge.safe.com/questions/65092/connect-lines-without-common-id-by-order-in-file.html?childToView=65116#answer-65116
Hi @jdh

 

, First thanks your attention and answer.

 

I tried to use the transformer AttributeCreator from this Link Attribute Creator but without success.

 

 

Could you help me?

 

 

Thanks, 15379-textlinebreaks.fmwt

 

 


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • October 3, 2018
danilo_fme wrote:
Hi @jdh

 

, First thanks your attention and answer.

 

I tried to use the transformer AttributeCreator from this Link Attribute Creator but without success.

 

 

Could you help me?

 

 

Thanks, 15379-textlinebreaks.fmwt

 

 

Can you repost your goal? I have a broken image.

 

 


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • October 3, 2018
jdh wrote:
Can you repost your goal? I have a broken image.

 

 

Here's a variableSetter/Retriever example. I expanded the data to allow for multiple dates, if that is not the case you can simplify things.

 

 

textlinebreaks.fmwt

 

 


takashi
Influencer
  • October 3, 2018
The link to your goal image is broken. Please post it again.

 


danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Author
  • Evangelist
  • October 4, 2018
jdh wrote:
Here's a variableSetter/Retriever example. I expanded the data to allow for multiple dates, if that is not the case you can simplify things.

 

 

textlinebreaks.fmwt

 

 

Thanks your help and attenction in this case. @jdh

 

 

It was perfect.

 


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • October 4, 2018

Another (and fun) way to read such a simple structured file would be to realize that you can identify the attributes by using div and mod functions on the txt_line_number.

The first set would then become attribute names and all subsequent sets will be attribute sets.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings