Skip to main content
Question

FeatureReader and the Schema output port.


bjudes
Enthusiast
Forum|alt.badge.img+10

I created a workspace to pull aerial imagery stored in a number of different folders. As a result I have 3 FeatureReaders, and in order to get the imagery to write with .tfw I need the schema output port to be connected to the writer. The problem is I need to run the workspace and wait to see which FeatureReader is going to first output a file and then ensure this is the schema output port running to the writer. I want to start using this workspace with WorkSpaceRunner but unless it is completely automated I won't be able to? Am I going wrong somewhere, is it possible to fix this? I don't want to have to wait and manually connect the schema output port.

 

Also with the same workspace, I have noticed a change (bug?) since I upgraded to 2019.0. In 2018.1 when I uploaded a particular AOI shapefile the output came from the TIFF_READER (see image below), but now (2019.0) it comes from the Feature_Reader_2. There is no reason for the change, it should be sending the vast majority through the TIFF_READER and when there are two images for one area the Feature_Reader_2 then outputs the most up to date. This no longer works as everything is coming through the Feature_Reader_2 now. I've uploaded the workbench. I hope this makes sense, thanks for any help. B

 

7 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • May 30, 2019

Do you really need the 3 featurereaders? Is it not possible to manage what you need with one?


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • May 30, 2019

I'm not clear why you need to use Schema feature and Dynamic writer feature type. The TIFF writer creates world files (*.tfw) by default, regardless of whether it's configured as dynamic or not.


bjudes
Enthusiast
Forum|alt.badge.img+10
  • Author
  • Enthusiast
  • May 30, 2019
takashi wrote:

I'm not clear why you need to use Schema feature and Dynamic writer feature type. The TIFF writer creates world files (*.tfw) by default, regardless of whether it's configured as dynamic or not.

When I was writing using the Dynamic writer I was not getting .tfw unless I had the Schema port connected, I am now no longer using a Dynamic writer and it has solved the problem. Thanks for the help.


bjudes
Enthusiast
Forum|alt.badge.img+10
  • Author
  • Enthusiast
  • May 30, 2019
ebygomm wrote:

Do you really need the 3 featurereaders? Is it not possible to manage what you need with one?

I am reading the UNC path for each file, these are broken into 3 separate lists, therefore I want to read 3 different 'Datasets' (see below). I thought this was the only way to achieve this, I am not an expert, I could well be doing it the wrong way, is there a way to achieve this using one FeatureReader? Thanks B


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • May 30, 2019
takashi wrote:

I'm not clear why you need to use Schema feature and Dynamic writer feature type. The TIFF writer creates world files (*.tfw) by default, regardless of whether it's configured as dynamic or not.

I was wrong. As you said, dynamic writer didn't generate tfw files unless receiving schema feature. Strange...

Anyway, why do you need to configure the writer with dynamic mode?


bjudes
Enthusiast
Forum|alt.badge.img+10
  • Author
  • Enthusiast
  • May 30, 2019
takashi wrote:

I was wrong. As you said, dynamic writer didn't generate tfw files unless receiving schema feature. Strange...

Anyway, why do you need to configure the writer with dynamic mode?

'Why do you need to configure the writer with dynamic mode?'

I don't, that was my mistake. I only realised when you pointed the above out and went back and changed it.

Thanks for the help.

B


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • May 30, 2019
ebygomm wrote:

Do you really need the 3 featurereaders? Is it not possible to manage what you need with one?

You can use an attributecreator to create the filepath attribute depending on your tests

 

e.g. if 15cm_Year = 2017 filepath = 15cm_path

then you use this newly created filepath in a single feature reader


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