Skip to main content
Question

Reading all shapefile attributes

  • June 23, 2023
  • 1 reply
  • 12 views

marketa
Contributor
Forum|alt.badge.img+2

Hello,

 

I need to read all attributes from input shapefiles with different attributes (not to have the attribute number and name defined). I would like to have a workflow with one reader that will read input shp e.g. "Test1" with 3 attributes (in first run) and then input "Test2" with 4 attributes (in second run)

 

Is there a way how to do it?

 

Thanks!

1 reply

nielsgerrits
VIP
Forum|alt.badge.img+54

The big question is, what are you going to do with it, downstream the reader. Because, if you want to do any action, with almost any transformer, you need to pre define the attribute names.

 

If you want to read and write files without knowing the attributes beforehand, you want to read and write dynamic. This is fully supported, see the Tutorial: Dynamic Workflows.

 

Edit: Since the SchemaScanner transformer, dynamic workflows even got better.


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