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?

  • 10 September 2017
  • 4 replies
  • 8 views

Badge

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

icon

Best answer by danilo_fme 11 September 2017, 01:11

View original

4 replies

Userlevel 4
Badge +30

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

Badge

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

 

 

Userlevel 4
Badge +30
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

 

Userlevel 4
Badge +25

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

Reply