[gdal-dev] Issue in Golden Software Surfer 7 format

Joaquim Luis jluis at ualg.pt
Fri Jan 4 20:32:47 EST 2008


>>     /* calculate pixel size first */
>>     padfGeoTransform[1] = (poGRB->dfMaxX - 
>> poGRB->dfMinX)/(nRasterXSize - 1);
>>     padfGeoTransform[5] = (poGRB->dfMinY - 
>> poGRB->dfMaxY)/(nRasterYSize - 1);
>>
>>     /* then calculate image origin */
>>     padfGeoTransform[0] = poGRB->dfMinX - padfGeoTransform[1] / 2;
>>     padfGeoTransform[3] = poGRB->dfMaxY - padfGeoTransform[5] / 2;
>>   
>
> Reed,
>
> I think that padfGeoTransform[3] should be
>
> padfGeoTransform[3] = poGRB->dfMaxY + padfGeoTransform[5] / 2;
>


Please forget/forgive
Only after sending previous mail I  realized that padfGeoTransform[5] 
had negative sign since it does (minY - maxY)

Joaquim


More information about the gdal-dev mailing list