RE: [gdal-dev] Help understanding GDALApplyGeoTransform and GDALInvGeoTransform

2009-07-31 Thread Belaid MOA
org > To: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] Help understanding GDALApplyGeoTransform and > GDALInvGeoTransform > Date: Fri, 31 Jul 2009 20:20:46 +0200 > CC: bcassan...@weather.com > > Bill, > > that's weird. Your code looks correct and

Re: [gdal-dev] Help understanding GDALApplyGeoTransform and GDALInvGeoTransform

2009-07-31 Thread Even Rouault
Bill, that's weird. Your code looks correct and I've just compiled it and I get the following results : lat-lon -127, 51 7.24754e-13, 4.12115e-13 The new_x, new_y values are almost 0 as expected (the small difference is due to numerical imprecision when computing the inverse geotransform). I

[gdal-dev] Help understanding GDALApplyGeoTransform and GDALInvGeoTransform

2009-07-31 Thread Cassanova, Bill
Hi All, I found a post a while back regarding GDALApplyGeoTransform and GDALInvGeoTransform (http://n2.nabble.com/Converting-raster-pixel-space-to-geospace-td325875 1.html ) GDALApplyGeoTransform() will convert from pixels to georeferenced positions and GDALInvGeoTransform() will invert the geot