Hi, Ede has done most of the work related to imagery things lately but Peppe made a few weeks ago a rasteranalysis plugin which can do affine transformation for Sextante images and thus rotate images. Read OpenJUMP dev mails from 19th of December, 2013. The rastertools jar is at https://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/rtools_alpha.jar/download
Try the Raster transformation toolbox. At least it proves that it is possible to rotate images with OJ. However, I can't say if this is the right way to go. I feel that Sextante keeps the image in memory and it may create another image into memory when it does warping. If this is true I would forget it, we need to be able to handle also at least medium sized images with a file size of 1 GB as uncompressed. I think that rotating the whole image should not be extra hard. You should study the geotransform parameters of the GeoTIFF file or rotation parameters of the world file and calculate the amount of rotation in radians. Then you should rotate the image around the centre point of the top-left pixel by that amount. I have made an OpenOffice spreadsheet for helping to play with rotated worldfiles http://latuviitta.org/documents/rotated_worldfile.ods. Geotransform tags are the same as the word file parameters. Something about that from the gdal-dev lists http://osgeo-org.1560.x6.nabble.com/gdal-dev-Geotransform-rotation-and-translation-td5074374.html I have no idea how to do on-the-fly rotation so that only that part of image that fits inside the map window of OJ would be rotated on-the-fly. Perhaps you can find something from Geotools, Kosmo or gvSIG/gvSIGCE sources. Here seems to be an example about how to rotate the whole image http://www.java2s.com/Code/Java/2D-Graphics-GUI/RotateImage45Degrees.htm -Jukka Rahkonen- ________________________________ Landon Blake wrote: > Thanks for all of the help Jukka. > I may take a look at the source code to see if I can add support for rotated > images. Do we know who added the existing code to support image loading? I > don't want to step on any toes...Any ideas where I should start poking around? > This is an itch I need to scratch. > Landon On Fri, Jan 3, 2014 at 11:53 PM, Rahkonen Jukka <jukka.rahko...@mmmtike.fi<mailto:jukka.rahko...@mmmtike.fi>> wrote: edgar soldin wrote: > On 03.01.2014 21:53, Rahkonen Jukka wrote: >> >> >> Conclusion: This is more like a missing feature in OpenJUMP than a bug. >> However, opening a rotated image without rotating it and without telling any >> message for the user is not especially good behaviour. >> > how do other GIS handle the rotation? do they at all? Based on a quick test: - QGIS 2.0.1 opens image (2002.tif) as rotated - Kosmo GIS 3.0 beta opens image as rotated -Jukka- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net<mailto:Jump-pilot-devel@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel