Skip to main content
Hello everybody!

 

 

This is the first time I'm working with the FME workbench and I need your help with following situation:

 

 

I have a lot of points which I already sorted (Sorter) and than connected (PointConnector). Now every line only has all the attributes of the first listed point, but I need to keep those informations to stay. 

 

I had the idea, that it might be possible to connect only 2 points to a line, than the next 2 points and so on, which will lead to the same line as multiple objects, which can than carry the informations without problem. Might that be a good idea? If yes, can somebody help me with how I can accomplish that?

 

 

 

Only for those who need more information on what I'm doing to imagine: I have CSV files with spatial and other information of about one billion points. It's about GPS Data from cars. Some of the data are the cars IDs and the time of the record (taken every second).

 

So far I gave the according names to the attributes (AttributeRenamer), got the spatial information (2DPointReplacer), set the coordinate system (CoordinateSystemSetter) and sorted (Sorter) the information by the cars IDs and the time. 

 

Now I used the PointConnector with the cars IDs as the input for the "Connection Break Attributes".

 

This lead to the results I got, where the driveway of one car is visible, but the whole line only has the information of the car at the starting point (earliest). 

 

I also used some other Transformers in different "lines" to extract several statistical data, but those shouldn't have an impact on the spatial operations I'm running. 

 

Thank you for reading and trying to help!

 

Hi,

 

 

One option is to use 'lists'. The pointconnector transformer allows you to create a list. This will store all of the attributes for each of the points that have been used to create the line. Its used within FME to store the one to many relationship data. In your case, 1 line many points.

 

 

There are lots of transformer for working with lists, which should allow you to dig out the other information you what as attributes of the line (like end time I presume). I've haven't used lists a lot personally, but there are a number of arcticle and posts which could be useful.

 

 

Dave

 


Reply