Skip to main content
Solved

convert attributes to a jpeg file


alc33
Contributor
Forum|alt.badge.img+10
  • Contributor

Hi!

I would like to export my datas (only attributes) on a jpeg file.

I would like to create a sort of table like on excel, with blacks border and dimentionnate the columns in order to not truncate the datas. And then export an jpeg file.

I used ExcelStyler and an JPEG writer, but it failed because it's not an raster format. So I tried with ImageRasterizer but I don't succeed.

I'm not use to manipulate raster format. So could you give me advices to suceed?

Thanks !

Best answer by chrisatsafe

Hi @alc33​ ,

The ExcelStyler will only work when the writer format is set to Excel because it makes use of Excel specific format attributes. In your case, you'll likely want to try using the TableAdder and MapnikRasterizer before connecting to a JPEG writer. If you are starting with tabular data (attributes), you first need to create the geometry (i.e. outline and text) which can be done with the TableAdder; this creates vector features. Once this has been done, you need to convert from vector to raster, which can be accomplished with the MapnikRasterizer, before connecting to the JPEG writer.

image

View original
Did this help you find an answer to your question?

2 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • Best Answer
  • June 24, 2022

Hi @alc33​ ,

The ExcelStyler will only work when the writer format is set to Excel because it makes use of Excel specific format attributes. In your case, you'll likely want to try using the TableAdder and MapnikRasterizer before connecting to a JPEG writer. If you are starting with tabular data (attributes), you first need to create the geometry (i.e. outline and text) which can be done with the TableAdder; this creates vector features. Once this has been done, you need to convert from vector to raster, which can be accomplished with the MapnikRasterizer, before connecting to the JPEG writer.

image


alc33
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • July 6, 2022

@chrisatsafe​ Thank you very much !


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