Skip to main content

retrive_schema_from_genericI use FME 2020.1.3.

What I want to do is to use a FeatureReader to read a PostGIS DB depending on created attributes ( usual generic approach) and to write them to an other PostGIS DB with an FeatureWriter, using Published Parameters to define the destination. As I use the generic port as outpur from the FeatureReader, the data loses its data-type information. I know, that those informations are given through the Schema port of the FeatureReader and that there is a way to merge them again to the data.

I found serveral post about this topic (

https://community.safe.com/s/question/0D54Q000080hbiSSAQ/generic-attribute-from-featurereader

 

https://community.safe.com/s/question/0D54Q000080herD/featurewriter-cannot-configure-dynamic-schema-based-on-schema-feature-when-fanning-out-destination-dataset

 

https://community.safe.com/s/question/0D54Q000080hfvxSAA/writing-table-with-featurereader-featurewriter-produces-inconsistent-results-in-fme-2018

)

Unfortunatly, I don't understand how to do it in my case.

The pictures shows, what I have done so far.

Additionally, I expose the attribute read by the FeatureReader inside it, I dont know if that's right. What do I need to expose where and when?

Thank you in advance for any guidance in this topic!

Be the first to reply!

Reply