Skip to main content
Question

Dynamic Sampler


boubcher
Contributor
Forum|alt.badge.img+11

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

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • April 18, 2022

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


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • April 18, 2022
danilo_fme wrote:

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


dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • April 18, 2022

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

 

Sampling rate from attribute value (safe.com)


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • April 28, 2022
dustin wrote:

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

 


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