Skip to main content

Hi,

I am attempting to rotate some tifs 90° using a rotator but it seems at the end they are still portrait, I get no error message, it seems to go through the rotator transformer just fine but my output is unchanged.

Am I using the right transformer?

The help seems to suggest that rotator can rotate raster images, Im just not sure why Im not seeing the effects.

 

Thanks

Jim

If I add an inspector after the rotation the tiff is rotated to landscape but the output file is still portrait...


Depending on your output format, you'll probably need to use a RasterRotationApplier after the Rotator


Depending on your output format, you'll probably need to use a RasterRotationApplier after the Rotator

My output is tif, im resampling from 2400dpi to 1016 dpi then applying rotation to the ones that need to be landscape, i did try the RasterRotationApplier after rotator but after about 10 mins it had only got to 0.03%, I assumed it must be doing something else as rotation shouldnt take that long surely, I'll try that at work again tomorrow but it seems rather slow, I need to process around a 100 files a time so that would take days!


My output is tif, im resampling from 2400dpi to 1016 dpi then applying rotation to the ones that need to be landscape, i did try the RasterRotationApplier after rotator but after about 10 mins it had only got to 0.03%, I assumed it must be doing something else as rotation shouldnt take that long surely, I'll try that at work again tomorrow but it seems rather slow, I need to process around a 100 files a time so that would take days!

I tried this this morning, started processing at 9:36am, its now 10:41am and its showing 0.45% through intermediate processing and has been at that figure for the last 10 minutes, this is just one file, there must be a better way to rotate it than this. It spent an age optimizing memory usage before the intermediate processing.


I tried this this morning, started processing at 9:36am, its now 10:41am and its showing 0.45% through intermediate processing and has been at that figure for the last 10 minutes, this is just one file, there must be a better way to rotate it than this. It spent an age optimizing memory usage before the intermediate processing.

Im wondering if 32bit windows issues is just causing it to not have enough memory to process, need to get onto a 64 bit and test.


Im wondering if 32bit windows issues is just causing it to not have enough memory to process, need to get onto a 64 bit and test.

Try a RasterCheckpointer after the Resampler to see if that improves performance. Also make sure you're only processing one file.

 

 

If you see the message optimizing memory resources, then switching to 64-bit will enable access to more RAM.

Im wondering if 32bit windows issues is just causing it to not have enough memory to process, need to get onto a 64 bit and test.

My thoughts are the same as jdh - try a RasterCheckPointer but also try to process only one raster at a time. If you are processing a whole bunch at once it will eat up memory very quickly. You can process one at a time by creating a master-child setup (the master workspace reads a list of files and runs the child workspace for each file using the workspaceRunner)


Reply