Skip to main content
Solved

Scaling rasters - question from FME WT Singapore

  • May 13, 2019
  • 2 replies
  • 70 views

darkspatiallord
Contributor
Forum|alt.badge.img+7

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.

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.

2 replies

  • 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
  • 2252 replies
  • 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.