Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gmt_gdalcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ GMT_LOCAL int save_grid_with_GMT(struct GMT_CTRL *GMT, GDALDatasetH hDstDS, stru
GDALRasterBandH hBand;

hBand = GDALGetRasterBand(hDstDS, 1);
nPixelSize = GDALGetDataTypeSize(GDALGetRasterDataType(hBand)) / 8; /* /8 because return value is in BITS */
nPixelSize = GDALGetDataTypeSizeBytes(GDALGetRasterDataType(hBand));
nXSize = GDALGetRasterXSize(hDstDS);
nYSize = GDALGetRasterYSize(hDstDS);

Expand Down
2 changes: 1 addition & 1 deletion src/gmt_gdalread.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ int gmt_gdalread (struct GMT_CTRL *GMT, char *gdal_filename, struct GMT_GDALREAD

/* The following assumes that all bands have the same PixelSize, data type. Otherwise ... */
hBand = GDALGetRasterBand(hDataset, first_layer);
nPixelSize = GDALGetDataTypeSize(GDALGetRasterDataType(hBand)) / 8; /* /8 because return value is in BITS */
nPixelSize = GDALGetDataTypeSizeBytes(GDALGetRasterDataType(hBand));

if (jump) {
nBufXSize[0] = XDim / jump;
Expand Down
Loading