Skip to main content
Solved

Max features to read - TCPIPReceiver


danilo_fme
Evangelist
Forum|alt.badge.img+45

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.

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

2 replies

mygis
Supporter
Forum|alt.badge.img+14
  • Supporter
  • 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
Evangelist
Forum|alt.badge.img+45
  • Author
  • Evangelist
  • August 30, 2017
mygis wrote:

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

 


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