Skip to main content
Solved

I can draw lines on a raster and then save as a jpg. Why can't I put text on the raster and convert to jpg too?

  • September 10, 2017
  • 4 replies
  • 47 views

Forum|alt.badge.img

I wish to add text record of attributes to jpgs. I am creating a workspace runner to do this. However, I cannot get the text to be applied to the raster. I can see that the text is created in Inspector, but Vector on Raster overlayer does not write the text to the new raster. (See workspace)

I tried mapnikrasterizer with even less success; I couldn't get any product from the jpg writer.

This seems like it should be a simple fix.

Your help is much appreciated,

William

Best answer by danilo_fme

Hi @wellis11,

I simulated here in my machine your case.

For to put your text inside the raster file, you need to use the transformer TextStroker after the transformer FeatureColorSetter_3 .

And my Writer JPEG file was generated with the Text Hello.

Thanks,

Danilo

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.

4 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • Best Answer
  • September 10, 2017

Hi @wellis11,

I simulated here in my machine your case.

For to put your text inside the raster file, you need to use the transformer TextStroker after the transformer FeatureColorSetter_3 .

And my Writer JPEG file was generated with the Text Hello.

Thanks,

Danilo


Forum|alt.badge.img
  • Author
  • 2 replies
  • September 10, 2017

Hi @wellis11,

I simulated here in my machine your case.

For to put your text inside the raster file, you need to use the transformer TextStroker after the transformer FeatureColorSetter_3 .

And my Writer JPEG file was generated with the Text Hello.

Thanks,

Danilo

Success! Thank you so much!

 

 

Your solution worked like a charm.

 

 

Sincerely,

 

William

 

 


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • September 10, 2017
Success! Thank you so much!

 

 

Your solution worked like a charm.

 

 

Sincerely,

 

William

 

 

Hi @wellis11,

 

I'm happy to your problem has a good solution.

 

 

Thanks,

 

Danilo

 


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3704 replies
  • September 11, 2017

In addition to @danilo_inovacao's suggestion, the MapnikRasterizer could be useful too.