Skip to main content
Question

Hold Data from filter to be able to set projection

  • November 26, 2024
  • 1 reply
  • 19 views

deanhowell
Influencer
Forum|alt.badge.img+24

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?

 

1 reply

bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • November 26, 2024

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


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