Skip to main content
Question

Using ChartGenerator output without writing it to a PNG file

  • December 23, 2020
  • 3 replies
  • 69 views

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

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?

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.

3 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • December 24, 2020

Hi @dms2​ 

Did you use the transformer MapnikRasterizer?

 

Thanks in Advance,

 

Danilo


debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • 648 replies
  • 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
  • 48 replies
  • January 21, 2021

@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!