Skip to main content
Question

Dynamic Feature Reader

  • August 15, 2019
  • 4 replies
  • 683 views

Forum|alt.badge.img

FME 2017

I have a Schema Reader that is just use to input a file path, nothing more.

The filepath is sent to a feature reader that I want to accepts multiple file types: .csv, .dxf, .dwg, .shp,

The feature reader has the "generic" file type set and the filepath is provided by use "fme_dataset" from the Schema Reader.

I do not understand how to do this.

In the Output ports section of feature reader, In the "Specified" section I want to have "csv, dxf, dwg, shp" as separate output ports but it does not work it just prompts me for a file dataset instead.

In the output that I can get the number of features is correct by there is no data.

Is the only way to do this is to have multiple feature readers with the reader format set to the file type in question?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • August 15, 2019

You probably want to use the Generic format in the FeatureReader.

That format will define the reader based on the extension of the file.

Hope this helps.


Forum|alt.badge.img
  • Author
  • August 15, 2019

You probably want to use the Generic format in the FeatureReader.

That format will define the reader based on the extension of the file.

Hope this helps.

@erik_jan It "works" as in I can see the correct number of features coming out of the generic output but there is no attribute information. I tried attribute exposer but does nothing


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • August 15, 2019

@erik_jan It "works" as in I can see the correct number of features coming out of the generic output but there is no attribute information. I tried attribute exposer but does nothing

Hi @tforward,

I tried it with some data from the training and I do see the attributes in the Data Inspector.

As you mentioned, you will have to expose them, using the setting in the FeatureReader as shown below:


Forum|alt.badge.img
  • Author
  • August 15, 2019

Hi @tforward,

I tried it with some data from the training and I do see the attributes in the Data Inspector.

As you mentioned, you will have to expose them, using the setting in the FeatureReader as shown below:

@erik_jan I found that setting, however still can't get to it work. In the reader section for dataset: I have "fme_dataset" that is provided by the reader at the start that just provides the path to the file.