span8
span4
span8
span4
Here's one of them brain foods...
How to vertically flip raster?
Right now,my idea is to extract numbers of columns.Tile whole raster by number of columns (RasterTiler),offset them by _columns-column_number and mosaick them (RasterMosaicker).And that works...
But that can be a really long proces (depending on dimensions of raster).Does anybody have any less time consuming idea?
Hi@zzupljanin,
The Affiner transformer can also mirror the raster,with the following coefficients:
A: 1
B: 0
C: 0
D: 0
E: -1
F: 0
Hi@zzupljanin,@takashi,@DaveAt亚搏在线Safe,
For georeferenced rasters you might want to put a BoundsExtractor before the Affiner and enter for parameter C the value:
@Value(_xmax)+@Value(_xmin)
(For the horizontal flip take parameter F and use the y values).
Like the attached workspace.This would compensate for the horizontal/vertical displacement of the transformed raster.
Hi@zzupljanin,a possible way is to rotate 180 degrees with the Rotator and offset by (x = width,y = -height) with the Offsetter.The width and height of the raster can be calculated based on the extents extracted by the RasterPropertyExtractor (or BoundsExtractor).
© 2019 亚搏在线Safe Software Inc |Legal