Skip to main content
Question

TempPathnameCreator not working as expected


brandonguo
Contributor
Forum|alt.badge.img+3

I am trying to send the MapnikRasterizer result to HTMLReportGenerator, but directly connecting them doesn't work. So I am using a TempPathnameCreator and FeatureWriter in between to write the png and then send it to the HTMLReportGenerator. However, HTMLReportGenerator can't read the path generated during the test running.

FME version: 2021.2

imageError: HTMLReportGenerator: Unable to open image file 'D:/FME_TEMP/wbrun_1652070048335_8656/fmetmp_1c/1652075715010_34268_d\\r_2030.png.png'. Please ensure this file exists

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+53

This is because the FeatureWriters PNG (Portable Network Graphics) Summary Feature's _dataset attribute contains only the folder, not the file.

  • In the TempPathnameCreator leave the field Extension empty.
  • In the FeatureWriter, set the Rater File Name to "Output".
  • HTMLReportGenerator, set the Image file to "@Value(_dataset)\\Output.png"

brandonguo
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • May 9, 2022
nielsgerrits wrote:

This is because the FeatureWriters PNG (Portable Network Graphics) Summary Feature's _dataset attribute contains only the folder, not the file.

  • In the TempPathnameCreator leave the field Extension empty.
  • In the FeatureWriter, set the Rater File Name to "Output".
  • HTMLReportGenerator, set the Image file to "@Value(_dataset)\\Output.png"

That's why sometimes I am getting " /output.png/Output.png"

Thank you, works now.


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