This package has been deprecated

Author message:

Moved to @cogeotiff/cli

coginfo
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

cog-viewer

pipeline status

pipeline status

Utility to investigate access patterns for Cloud optimized GEOTiff

This is mostly just a learning exercise for Tiff/BigTiff IFD access & GEOTiff in general

This is a work in progress and likely will not work

Scripts

coginfo info

Display basic information about COG

coginfo 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
    Count           7
    Compression     image/webp
    Origin          2027440,5699400,0
    Resolution      0.10000000000000002,-0.10000000000000002,0
    BoundingBox     2027440,5698320,2029120,5699400
    Sizes           16800x10800 8400x5400 4200x2700 2100x1350 1050x675 525x338 263x169
    Tiles           512x512 (726) 512x512 (187) 512x512 (54) 512x512 (15) 512x512 (6) 512x512 (2) 512x512 (1)

  GDAL
    COG optimized   true
    COG broken      false
    Tile order      RowMajor
    Tile leader     uint32 - 4 Bytes
    Mask interleaved  false

coginfo dump

Dump all tiles for a zoom level (Warning if you do this for a large cog this will create millions of files.)

coginfo dump --file webp.cog.tif --zoom 2 --output output

coginfo tile

Load and dump a individual tile

coginfo tile --file webp.cog.tif --xyz 1,1,1

Building

This requires NodeJs > 12 & Yarn

Use n to manage nodeJs versions

# Download the latest nodejs & yarn 
n latest
npm install -g yarn
 
# Install node deps 
yarn
 
# Build everything into /build 
yarn run build
 
# Run the unit tests 
yarn run test

Contribuiting

This repoistory uses Conventional Commits

Example options:

  • build: Changes that affect the build system or external dependencies
  • ci: Changes to our CI configuration files and scripts
  • docs: Documentation only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that neither fixes a bug nor adds a feature
  • style: Changes that do not affect the meaning of the code
  • test: Adding missing tests or correcting existing tests

Readme

Keywords

none

Package Sidebar

Install

npm i coginfo

Weekly Downloads

1

Version

0.0.12

License

ISC

Unpacked Size

271 kB

Total Files

150

Last publish

Collaborators

  • blacha