Skip to content

Commit

Permalink
thread-safe read-only dataset access
Browse files Browse the repository at this point in the history
  • Loading branch information
sllynn committed Nov 20, 2024
1 parent cd8a3fa commit 0546287
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,8 @@ object MosaicRasterGDAL extends RasterReader {
case Some(driverShortName) =>
val drivers = new JVector[String]()
drivers.add(driverShortName)
gdal.OpenEx(path, OF_READONLY, drivers)
case None => gdal.Open(path, OF_READONLY)
gdal.OpenEx(path, OF_RASTER | OF_THREAD_SAFE, drivers)
case None => gdal.Open(path, OF_RASTER | OF_THREAD_SAFE)
}
}

Expand Down

0 comments on commit 0546287

Please sign in to comment.