Skip to content

Commit

Permalink
Merge pull request #10638 from OSGeo/backport-10603-to-release/3.9
Browse files Browse the repository at this point in the history
[Backport release/3.9] OpenFileGDB raster: do not generate debug 'tmp.jpg' file when reading JPEG tiles
  • Loading branch information
rouault authored Aug 25, 2024
2 parents c40244d + 39afd35 commit 8d11418
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ogr/ogrsf_frmts/openfilegdb/gdalopenfilegdbrasterband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1546,10 +1546,6 @@ CPLErr GDALOpenFileGDBRasterBand::IReadBlock(int nBlockXOff, int nBlockYOff,
return CE_Failure;
}

VSILFILE *fp = VSIFOpenL("tmp.jpg", "wb");
VSIFWriteL(pabyData + nJPEGOffset, nJPEGSize, 1, fp);
VSIFCloseL(fp);

CPLString osTmpFilename;
osTmpFilename.Printf("/vsimem/_openfilegdb/%p.jpg", this);
VSIFCloseL(VSIFileFromMemBuffer(
Expand Down

0 comments on commit 8d11418

Please sign in to comment.