Skip to main content

In the above image, I read a text file that contains lines of data where specific lines that start with an ID relate to different features.

In the #1 category it contains the projection information but I want to be able to set the projection of the other output ports based in the information in that line.

How do I hold and set the projection of the Lines, Points, etc?

I was thinking that I may just need to read the text file twice, once to get the projection from Port #1 and then have a feature reader that can then set the projection before processing the other output ports.

Is there a more efficient way of doing it?

 

Could you not join the Projection Data Attribute from “1” to the Features with FeatureJoiner, and then use this Attribute to set the Feature Projections using CoordinateSystemSetter?

If the “1” Projection Attribute is not in the same Coordinate System codes used by FME, then something like a StringPairReplacer can change the raw Projection Attribute data into FME coordinate system reference codes, or similarly use a lookup table inside/outside FME to join the equivalent FME coordinate system reference codes to the projection string values output from the “1” port.


Reply