Solved

Scaling rasters - question from FME WT Singapore


Badge +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

icon

Best answer by gio 13 May 2019, 17:45

View original

2 replies

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.

Badge +3

@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.

Reply