Question

Dynamic Sampler

  • 18 April 2022
  • 4 replies
  • 12 views

Badge +10

Hello guys we have a GDB with multiple layers, we need to generate sample data for each layer but with different rates for each layer, the problem I have is the sampler transformer will take only user parameter value not an attribute value

how could we set the rate based on the attribute value ??

Thanks


4 replies

Userlevel 4
Badge +30

Hi @boubcher​ 

 

Did you try to extract your GDB using the transformer FeatureReader?

 

There is a configuration into this transformer Max Features to Read - and you can use a attribute value.

 

FeatureReader 

Thanks in Advance,

Danilo

Badge +10

Hi @boubcher​ 

 

Did you try to extract your GDB using the transformer FeatureReader?

 

There is a configuration into this transformer Max Features to Read - and you can use a attribute value.

 

FeatureReader 

Thanks in Advance,

Danilo

@danilo_fme​  thanks for your response

we can read the GDB, this is not the problem, what we are looking for is to generate a random sample of the data.

the sample rate depends on the feature type name and total features of each features type

the only option there is to use parameters, we do have 50 layers and we don't know the sample size in advance it's calculated based on the total feature by features type

Thanks

Sample Rate

Userlevel 3
Badge +26

Have a look at this thread. I believe it may be of some help.

 

Sampling rate from attribute value (safe.com)

Badge +10

Have a look at this thread. I believe it may be of some help.

 

Sampling rate from attribute value (safe.com)

@dustin​ 

Thanks so much for the info, its working

 

Reply