README
coeotiff
CLI to work with Cloud optimized GEOTiff
- Completely javascript based, works in the browser and nodejs
- Lazy load COG images and metadata
- Supports huge 100GB+ COGs
- Uses GDAL COG optimizations, generally only one read per tile!
- Loads COGs from URL, File or AWS S3
Usage
npm i -g @cogeotiff/cli
cogeotiff info
Display basic information about COG
cogeotiff info --file webp.cog.tif
Output:
COG File Info - /home/blacha/Downloads/tif-new/bg43.webp.cog.tif
Tiff type BigTiff (v43)
Chunk size 64 KB
Bytes read 64 KB (1 Chunk)
Images
Compression image/webp
Origin 18550349.52047286,-5596413.462927464,0
Resolution 19.10925707129406,-19.10925707129415,0
BoundingBox 18550349.52047286,-5713820.738373496,19098250.139221005,-5596413.462927464
Info
Id Size Tile Size Tile Count
0 28672x6144 56x12 672
1 14336x3072 28x6 168
2 7168x1536 14x3 42
3 3584x768 7x2 14
4 1792x384 4x1 4
5 896x192 2x1 2
6 448x96 1x1 1
GDAL
COG optimized true
COG broken false
Tile order RowMajor
Tile leader uint32 - 4 Bytes
Mask interleaved false
cogeotiff dump
Dump all tiles for a image (Warning if you do this for a large cog this will create millions of files.)
cogeotiff dump --file webp.cog.tif --image 2 --output output
cogeotiff tile
Load and dump a individual tile
cogeotiff tile --file webp.cog.tif --xyz 1,1,1