Skip to main content
Solved

How to make featurewriter and featurereader after ?

  • November 28, 2018
  • 2 replies
  • 108 views

geo-x
Supporter
Forum|alt.badge.img+6

Dear FME community.

 

I need to make a process in a workbench.

In this process I've to write few data in Postgres table and I've to read this data for continu the process.

For this I thought to use a FeatureWriter and a FeatureWriter with a connection, but the problem is the FeatureReader read x time all the data of the table than the number of insertion in the table from FeatureWriter.

Do you know how can I do that ?

Thanks.

Best answer by chrisatsafe

Hi @lalandexavier,

The FeatureReader will do a complete read for each feature that enters the Initiator port. The features resulting from the read are output either through named output ports or through the generic output port (as mentioned in the FeatureReader doc)

 

You could use the FeatureWriter's Summary port to connect to the FeatureReader since only one feature is output from there. Alternatively, you could use a Sampler with a sampling rate of first 1 features and connect that to the FeatureReader's initiator port.

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.

2 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • 606 replies
  • Best Answer
  • November 28, 2018

Hi @lalandexavier,

The FeatureReader will do a complete read for each feature that enters the Initiator port. The features resulting from the read are output either through named output ports or through the generic output port (as mentioned in the FeatureReader doc)

 

You could use the FeatureWriter's Summary port to connect to the FeatureReader since only one feature is output from there. Alternatively, you could use a Sampler with a sampling rate of first 1 features and connect that to the FeatureReader's initiator port.


geo-x
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • 89 replies
  • November 28, 2018

Hi @lalandexavier,

The FeatureReader will do a complete read for each feature that enters the Initiator port. The features resulting from the read are output either through named output ports or through the generic output port (as mentioned in the FeatureReader doc)

 

You could use the FeatureWriter's Summary port to connect to the FeatureReader since only one feature is output from there. Alternatively, you could use a Sampler with a sampling rate of first 1 features and connect that to the FeatureReader's initiator port.

Thank you very much for those explications :-)