Skip to main content
Solved

Max features to read - TCPIPReceiver

  • August 30, 2017
  • 2 replies
  • 14 views

danilo_fme
Celebrity
Forum|alt.badge.img+51

Hello Team,

I'm doing a Proof of Concept to show the use the transformer TCPIPReceiver.

Its not necessary to read all information from Host. My question:

- has a configuration like Max Features to Read ( similar we have in Navigator ) ?

 

Thanks,

Danilo

Best answer by mygis

Hi @danilo_inovacao,

From what I know and from the documentation the TCPIPReceiver will listen to a port and read the data being streamed into that specific port. If you want to set a limit of data you can read by setting the

"Number of Bytes Received Attribute" when the value reaches a certain number then you terminate your workspace with a terminator transformer. The output should be written using the featureWriter transformer.

 

Now, if you want to read a number of records, then it should be different, after decoding your data and converting them into records (or single features) and want to set a limit, you will just need to put a counter and terminate the workspace with the Terminator transformer when the counter reaches a certain number.

I hope this answers your question.

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

mygis
Supporter
Forum|alt.badge.img+14
  • Supporter
  • 307 replies
  • Best Answer
  • August 30, 2017

Hi @danilo_inovacao,

From what I know and from the documentation the TCPIPReceiver will listen to a port and read the data being streamed into that specific port. If you want to set a limit of data you can read by setting the

"Number of Bytes Received Attribute" when the value reaches a certain number then you terminate your workspace with a terminator transformer. The output should be written using the featureWriter transformer.

 

Now, if you want to read a number of records, then it should be different, after decoding your data and converting them into records (or single features) and want to set a limit, you will just need to put a counter and terminate the workspace with the Terminator transformer when the counter reaches a certain number.

I hope this answers your question.


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Author
  • Celebrity
  • 2077 replies
  • August 30, 2017

Hi @danilo_inovacao,

From what I know and from the documentation the TCPIPReceiver will listen to a port and read the data being streamed into that specific port. If you want to set a limit of data you can read by setting the

"Number of Bytes Received Attribute" when the value reaches a certain number then you terminate your workspace with a terminator transformer. The output should be written using the featureWriter transformer.

 

Now, if you want to read a number of records, then it should be different, after decoding your data and converting them into records (or single features) and want to set a limit, you will just need to put a counter and terminate the workspace with the Terminator transformer when the counter reaches a certain number.

I hope this answers your question.

Hi @gisinnovationsb, you were very clear in your explanation.

 

Thanks one more time your help. :)