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?

  • 10 September 2017
  • 4 replies
  • 25 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

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

4 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • 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
  • September 10, 2017
danilo_fme wrote:

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
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • September 10, 2017
wellis11 wrote:
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+45

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


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