Creating COG out of big rasters
See original GitHub issueIssue Description
I’m trying to create a COG out of a very big rasters (e.g. 73012 x 364544) and I spotted the following pattern: the progress bar is very fast at the beginning of the process but but it gets slower and slower as it gets closer to the end. For example the first 20% have been completed in few minutes but then:
Reading input: /tmp/tmpg1bth1qf/dest/20211207_023956_SN8_L3_SR_MS.tif
[##########--------------------------] 27% 03:56:52
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
COG – Cloud Optimized GeoTIFF generator - GDAL
This driver supports the creation of Cloud Optimized GeoTIFF (COG) ... BIGTIFF=YES if the final file is anticipated to be too big for...
Read more >Large GeoTiff (raster) files on GeoServer using COG
Navigate to GeoServer's data directory, create a folder called cogs then copy and paste or cog file envisat_cog.tif into that directory. Back to ......
Read more >Creating BigTiff COGS for raster RGB photos from a tile ...
First create the virtual mosaic from the directory of tiles, ensuring that a alpha band is created in the VRT to set transparency...
Read more >GeoExamples - Cloud Optimized GeoTIFF tutorial
The easiest way to create a COG is using the GDAL command line interface. If the GeoTIFF data is created from a script...
Read more >Accessing data from large online rasters with Cloud-Optimized ...
In this post I show how we can convert any raster to a cloud-optimised-geotiff (COG), and efficiently read data from online COG using...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t know the root cause of the issue but I’ve found a workaround.
In my case
blockxsize
/blockysize
values of the source raster are512px
. When I setblockxsize=512
andblockxsize=512
for the output raster then everything works fine (1024px
is also ok). But if change it to256px
then performance becomes very poor. Closing for now.Apparently
add_mask=True
is a culprit. Withadd_mask=False
it takes same amount of time as forgdal_translate
.