span8
span4
span8
span4
Previous: Convert from Vector to Raster
In this tutorial,you will learn how to modify raster cell sizes using the FMERasterResamplertransformer.The RasterResampler resamples an input raster based on user-specified parameters (raster dimension,cell size,or percentage of size) and an interpolation method (Nearest Neighbor,Bilinear,Bicubic,Average 4,or Average 16) to merge cells.
In this scenario,you want to change the spatial resolution of your raster dataset and set rules for aggregating or interpolating values across the new pixel sizes.This will allow you to change the cell size without changing the extent of the raster dataset.The objective of this exercise is to downsample the raster in order to reduce the file size and improve performance when displaying the raster.
In this exercise,you want to reduce the number of cells in the raster by 50% because the original raster image isn't loading as quickly as you would like.
Average 4 and Average 16 are useful interpolation types for numeric rasters like DEMs and produce higher quality images than Bilinear and Nearest Neighbor.For more information see theRasterResampler.
Note: Another common practice is to create raster pyramids to improve performance.To find out more about using theRasterPyramiderin FME see theRaster Pyramiding Examplearticle.
Data used in this tutorial originates from open data made available by theGovernment of Canada.It contains information licensed under the Open Government Licence - Canada.
© 2019 亚搏在线Safe Software Inc |Legal