[Gdal-dev] Geotransform (Rotate Image 270 degrees)

simonm1234 skmcbride at gmail.com
Wed Apr 23 05:45:10 EDT 2008


Hi,

How do you rotate an image 270 degrees using SetGeoTransform? 

What values should I use for  adfGeoTransform[2] and adfGeoTransform[4]?

Thanks,
Simon.

// Set Bounds/Pixel size: {}
//adfGeoTransform[0] /* top left x */
//adfGeoTransform[1] /* w-e pixel resolution */
//adfGeoTransform[2] /* rotation, 0 if image is "north up" */
//adfGeoTransform[3] /* top left y */
//adfGeoTransform[4] /* rotation, 0 if image is "north up" */
//adfGeoTransform[5] /* n-s pixel resolution */

double[] trans = new double[] {325000.0, 10, 0.0, 1010000.0, 0.0, -10}
ds.SetGeoTransform(trans);

-- 
View this message in context: http://www.nabble.com/Geotransform-%28Rotate-Image-270-degrees%29-tp16833575p16833575.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.



More information about the gdal-dev mailing list