Skip to main content
Question

Convert polygons to raster image

  • August 5, 2014
  • 4 replies
  • 912 views

jochgem
Contributor
Forum|alt.badge.img+5
Hi!

 

 

I made a map out of polygons, and I would like to convert the vector data to a raster image. Moreover, the raster image should be able to be snapped to another raster image. 

 

 

I still could not find a Transformer or a combination of Transformers that can do the job. 

 

 

Anyone ideas?
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

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • August 5, 2014
Hi,

 

Imagerasterizer to draw geometry to a raster.

 

 

You must asign a color to your features prior to sending them to the imagerasterizer (else you will get an error, wich is logical of course...)

 

 

You can use Rasterter to make "snappable" areas.

jochgem
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 5, 2014
Thanks Gio!

 

 

I will keep in mind to add color.

 

 

I actually need the raster image snapped to another raster image such that a third image can be created that shows the difference between the first two images. Is that possible too using FME?

 

 

Cheers,

 

 

Jochgem

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • August 5, 2014
Hi Jochgem,

 

 

Yes u can.

 

 

You can combine rasters by making outputextenst of both fit on the output raster.

 

You can use RasterMosaicker (must make sure they have same numer of bands with same number of paletttes) .

 

You may have to make sure they are close enough to eachother (or atleast find the total boundingbox), maybe using boundingbox, offsetter and or affiner.

 

If youre new to this, the FME knowledge center has a lot of exmples and there is a tutorial roaming about too.

 

 

 

succes!

 

 


Forum|alt.badge.img
  • August 5, 2014
The other way to find the difference between two rasters is the RasterExpressionEvaluator - but like the RasterMosaicker - you'll need to make sure they have the same number of bands, but also the same cell size/spacing and extents. The RasterResampler and Clipper transformers would help there.