Skip to main content
Solved

InlineQuerier Transformer to import data from another transformer?


Forum|alt.badge.img
Hi FME'ers

 

 

Is it possible to get the Inline querier to import in fields from the workflow rather than from a reader? 

 

 

i.e. I have a table that I am reading, I then carry out a number of processes on it and rename fields etc, then I want an Inline querier to take that data along with another table being read in and create a join. Joiner transformer constantly crashes and closes my FME down when I try to use the ArcSDE format.

 

 

 

Best answer by davideagle

Hi Kam, hope all is well!

 

 

In short, I don't think so, though I'm assuming you are wanting to do this to avoid keying in lots of attribute names? Assuming thats the case, this is a bit of a cheat but might help:

 

 

1) Before the InlineQuerier add a sampler, and sample out 1 feature.

 

2) Add an AttributeCreator with attribute value "_layer" and value of "kam".

 

3) Next add a Recorder and set an output FFS path and the Feature Type Attribute value to _layer.

 

3) Run the workspace and write 1 feature into the recorder.

 

4) Now delete that lot.

 

5) Add an FFS Reader and add the _layer FeatureType from the FFS you just created.

 

6) Now go to the InlineQuerier and Import your Schema but check that any attributes you created in your workflow (rather than having come from the origin) have the desired data type.

 

 

It seems long winded but much quicker than manually typing out lots of attributes.

 

 

Cheers, Dave
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

3 replies

davideagle
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • January 10, 2013
Hi Kam, hope all is well!

 

 

In short, I don't think so, though I'm assuming you are wanting to do this to avoid keying in lots of attribute names? Assuming thats the case, this is a bit of a cheat but might help:

 

 

1) Before the InlineQuerier add a sampler, and sample out 1 feature.

 

2) Add an AttributeCreator with attribute value "_layer" and value of "kam".

 

3) Next add a Recorder and set an output FFS path and the Feature Type Attribute value to _layer.

 

3) Run the workspace and write 1 feature into the recorder.

 

4) Now delete that lot.

 

5) Add an FFS Reader and add the _layer FeatureType from the FFS you just created.

 

6) Now go to the InlineQuerier and Import your Schema but check that any attributes you created in your workflow (rather than having come from the origin) have the desired data type.

 

 

It seems long winded but much quicker than manually typing out lots of attributes.

 

 

Cheers, Dave

Forum|alt.badge.img
  • Author
  • January 11, 2013
Thank you very much Mr.Eagle! 

 

 

Worked a treat... but it would be useful i they added a new feature to that transformer to connect a transformer into a port or something.

 

 

Thank you again

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 21, 2013

Hi Kam,

 

 

We'd like to know more about why the JOiner is crashing -- please follow up with support on that, but with respect to the field import, we've got some ideas on how to make this better in FME 2014 (and we'll give the same treatment as we end up giving the InlineQuerier to the MapTextLabeller -- it has the same type of issue).

 

 

Good feedback, thanks.

Dale


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