Skip to main content
Solved

How to make featurewriter and featurereader after ?

  • November 28, 2018
  • 2 replies
  • 58 views

geo-x
Participant
Forum|alt.badge.img
  • Participant

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.

View original
Did this help you find an answer to your question?

2 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • 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
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • November 28, 2018
chrisatsafe wrote:

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 :-)


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