AustralianAntarcticDivision / raadtools

Tools for Synoptic Environmental Spatial Data
http://australianantarcticdivision.github.io/raadtools/
24 stars 3 forks source link

topo COG #105

Closed mdsumner closed 2 years ago

mdsumner commented 4 years ago
gdal_translate .../www.bodc.ac.uk/data/open_download/gebco/GEBCO_30SEC/zip/GEBCO_2014_2D.nc -co TILED=YES -co BLOCKXSIZE=256 -co BLOCKYSIZE=256 -co COMPRESS=DEFLATE gebco_14_deflate_256.tif

gdaladdo gebco_14_deflate_256.tif 2 4 8 16  ## 1.3G (from 1.8Gb)

Driver: GTiff/GeoTIFF
Files: gebco_14_deflate_256.tif
Size is 43200, 21600
...
Band 1 Block=256x256 Type=Int16, ColorInterp=Gray
  NoData Value=-32767
  Overviews: 21600x10800, 10800x5400, 5400x2700, 2700x1350
  Unit Type: m
  M

We'd need to think about the resampling algorithm for the overviews, currently it's nearest neighbour (and possibly the band type, currently Int16)

mdsumner commented 4 years ago

Oh, in upcoming GDAL 3.1 we can use -of COG:

https://gdal.org/drivers/raster/cog.html

more to come ping @raymondben fyi