Skip to main content
Question

Reading shapefile attributes with Python Creator


marketa
Contributor
Forum|alt.badge.img+2

Hello, 

 

I am trying to use Python Creator to read a shapefile from user parameter input file and expose all the attributes to be able to use the data later in the workflow. Is it possible to do it?

 

The reason of not using shapefile Reader is that the attributes of multiple input shapefiles can differ. The goal of the FME is to import the shapefiles into a database (the final DB table attributes must be equal to the attributes of input shapefile).

 

Thank you.

3 replies

dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • October 20, 2023

A dynamic workflow is what you are looking for. You can find extensive discussion on that topic at this link: https://community.safe.com/s/article/dynamic-workflow-tutorial-basics-of-dynamics


david_r
Evangelist
  • October 20, 2023

You can only expose attributes at design-time, not at run-time.

The solution is to use dynamic schema in FME, here is a good starting point: https://community.safe.com/s/article/dynamic-workflow-tutorial-introduction


marketa
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • October 20, 2023

Thank you for your answers!


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