Skip to main content
Solved

Scaling rasters - question from FME WT Singapore


darkspatiallord
Forum|alt.badge.img+6

A client at the FME World Tour in Singapore has the following question

If I have 2 rasters (jpegs) of same image BUT different resolution and scale

What would be the process in FME Workbench to align them

@darkspatiallord @brianatsafe

Best answer by gio

@darkspatiallord (I see there are 2 dark lords out there..)

 

Use an Affiner to move them to a common origin and then use a Scaler.

This will scale the spacing but will maintain the resolution, which is defined as the number of rows and columns.

 

To change resolution you can use a RasterResampler, set to columns and rows.

You have to maintain the aspect ratio though, else you'll warp your image.

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

2 replies

  • May 13, 2019

Seems like RasterResampler would work: http://docs.safe.com/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/rasterresampler.htm

The documentation also mentions a whole bunch of other Raster Transformers that can be used for more specific purposes.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • Best Answer
  • May 13, 2019

@darkspatiallord (I see there are 2 dark lords out there..)

 

Use an Affiner to move them to a common origin and then use a Scaler.

This will scale the spacing but will maintain the resolution, which is defined as the number of rows and columns.

 

To change resolution you can use a RasterResampler, set to columns and rows.

You have to maintain the aspect ratio though, else you'll warp your image.


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