geo-data / cesium-terrain-builder

A C++ library and associated command line tools designed to create terrain tiles for use in the Cesium JavaScript library
Other
718 stars 342 forks source link

Thread mutex on GDALTiler constructor #36

Closed chris-cooper closed 8 years ago

chris-cooper commented 8 years ago

On multithreading jobs the transformed bounds can vary slightly between threads on some datasets. This results in a lot of missing tiles and other issues as different threads can end up processing the same tile, while other tiles get skipped. A mutex around the transform calculation seems sufficient to give the same bounds on each thread.

I'm assuming this is a GDAL issue. gdalinfo --version indicates GDAL 2.0.1

homme commented 8 years ago

Many thanks!