Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/huidaecho/tifcat

GeoTIFF printing utility
https://github.com/huidaecho/tifcat

Last synced: 3 days ago
JSON representation

GeoTIFF printing utility

Awesome Lists containing this project

README

        

# TifCat

This program prints out the cell values of a GeoTIFF file. It is meant to be used for unit testing with small files and requires GDAL.

```bash
$ make
$ ./tifcat test/fdr.tif
1 1 2 4 16 8 8 8 8 8 8 8
1 1 2 4 16 8 8 8 8 8 8 8
1 1 1 4 16 8 8 8 8 8 8 8
1 1 1 4 16 8 8 8 8 8 8 8
1 1 1 4 16 4 8 8 8 8 8 8
1 1 1 4 2 4 8 8 8 8 8 8
1 1 1 2 1 2 4 4 4 4 4 4
8 1 1 1 2 4 255 255 255 255 255 255
16 1 1 128 16 255 255 255 255 255 255 255
$ ./tifcat test/fdr.tif null
1 1 2 4 16 8 8 8 8 8 8 8
1 1 2 4 16 8 8 8 8 8 8 8
1 1 1 4 16 8 8 8 8 8 8 8
1 1 1 4 16 8 8 8 8 8 8 8
1 1 1 4 16 4 8 8 8 8 8 8
1 1 1 4 2 4 8 8 8 8 8 8
1 1 1 2 1 2 4 4 4 4 4 4
8 1 1 1 2 4 null null null null null null
16 1 1 128 16 null null null null null null null
$ ./tifcat test/fdr.tif - %4d
1 1 2 4 16 8 8 8 8 8 8 8
1 1 2 4 16 8 8 8 8 8 8 8
1 1 1 4 16 8 8 8 8 8 8 8
1 1 1 4 16 8 8 8 8 8 8 8
1 1 1 4 16 4 8 8 8 8 8 8
1 1 1 4 2 4 8 8 8 8 8 8
1 1 1 2 1 2 4 4 4 4 4 4
8 1 1 1 2 4 - - - - - -
16 1 1 128 16 - - - - - - -
$ ./tifcat -d test/fdr.tif
→ → ↘ ↓ ← ↙ ↙ ↙ ↙ ↙ ↙ ↙
→ → ↘ ↓ ← ↙ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↓ ← ↙ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↓ ← ↙ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↓ ← ↓ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↓ ↘ ↓ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↘ → ↘ ↓ ↓ ↓ ↓ ↓ ↓
↙ → → → ↘ ↓ · · · · · ·
← → → ↗ ← · · · · · · ·
```