Skip to main content
Question

Loop Process

  • October 3, 2018
  • 7 replies
  • 32 views

danilo_fme
Celebrity
Forum|alt.badge.img+51

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

jdh
Contributor
Forum|alt.badge.img+36
  • Contributor
  • 2001 replies
  • 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
Celebrity
Forum|alt.badge.img+51
  • Author
  • Celebrity
  • 2076 replies
  • 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
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+36
  • Contributor
  • 2001 replies
  • October 3, 2018
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+36
  • Contributor
  • 2001 replies
  • October 3, 2018
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
Celebrity
  • 7842 replies
  • October 3, 2018
The link to your goal image is broken. Please post it again.

 


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Author
  • Celebrity
  • 2076 replies
  • October 4, 2018
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
  • 2252 replies
  • 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.