Coming soon - Get a detailed view of why an account is flagged as spam!
view details
5
Merging many tiles takes a long time - can you critique my GDAL workflow?
Post Flair (click to view more posts with a particular flair)
Post Body

I have a directory of 467 aerial photos that I want to merge into a geotiff (or some other way of looking at entire dataset). My problem is at the moment my workflow takes a long time - the final merge step takes about half an hour. This is problematic because I have millions of photos in total, this is just a sub-set. My current workflow is:

  1. create worldfiles for the jpgs using georeference info I have
  2. gdal.Warp to create .vrt files for each jpg
  3. gdal.BuildVRT to make a single merged vrt file
  4. gdal.Translate or gdal.Warp to make the final merged geotiff (Warp is slightly faster than translate but not by much)

Steps 1-3 do not take long, it's the final step 4 that is problematic. I have tried some things like setting NUM_THREADS, increasing the GDAL_CACHEMAX, but they haven't had a big effect.

Are there better ways to do this? Are there better ways to achieve my overall aim, which is viewing all the photos at once? Geotiff is useful because overviews makes them quite quick, once the file is generated...

Author
Account Strength
100%
Account Age
14 years
Verified Email
Yes
Verified Flair
No
Total Karma
336,551
Link Karma
26,455
Comment Karma
309,322
Profile updated: 2 weeks ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago