[gdal-dev] Issue in Golden Software Surfer 7 format
Joaquim Luis
jluis at ualg.pt
Fri Jan 4 20:28:13 EST 2008
Reed Copsey, Jr. wrote:
> Last year, a changeset was submitted which fixed the golden software 6
> file formats (10814), but unfortunately it wasn't applied to the
> surfer 7 file format which has the exact same issue.
> /* 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;
Joaquim Luis
More information about the gdal-dev
mailing list