Skip to main content
Question

Using ChartGenerator output without writing it to a PNG file

  • December 23, 2020
  • 3 replies
  • 41 views

dms2
Contributor
Forum|alt.badge.img+11
  • Contributor

Is it possible to use the ChartGenerator output chart without writing it to a PNG file first?

In my workspace I'm generating a few charts and I need to use them along with other data in the same workspace to output an html, an excel and a pdf ​files.

For example, you need to do something like this to generate an html file with images. I would have to save charts as temp PNG files to read them again in the same workspace and use some extra transformers to get the PNG as an attribute. Isn't there an easier approach?

3 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • December 24, 2020

Hi @dms2​ 

Did you use the transformer MapnikRasterizer?

 

Thanks in Advance,

 

Danilo


debbiatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • December 24, 2020

@dms2​ 

For formats that support writing rasters such as Excel and PDF, you can send the ChartGenerator output directly to the writer--there is no need to write them to file first.

For HTML/text formats that do not support raster geometry, you can use the RasterExtractor transformer to extract the raster geometry into an attribute. This process does not require writing the raster to files.

I hope this helps.


dms2
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • January 21, 2021
debbiatsafe wrote:

@dms2​ 

For formats that support writing rasters such as Excel and PDF, you can send the ChartGenerator output directly to the writer--there is no need to write them to file first.

For HTML/text formats that do not support raster geometry, you can use the RasterExtractor transformer to extract the raster geometry into an attribute. This process does not require writing the raster to files.

I hope this helps.

The RasterExtractor transfomer is what I needed.

Thanks!


Reply


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