https://github.com/huidaecho/tifcat
GeoTIFF printing utility
https://github.com/huidaecho/tifcat
Last synced: 4 months ago
JSON representation
GeoTIFF printing utility
- Host: GitHub
- URL: https://github.com/huidaecho/tifcat
- Owner: HuidaeCho
- License: gpl-3.0
- Created: 2024-04-08T04:10:15.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-24T16:33:07.000Z (about 1 year ago)
- Last Synced: 2025-01-12T17:22:25.841Z (6 months ago)
- Language: C
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
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
→ → ↘ ↓ ← ↙ ↙ ↙ ↙ ↙ ↙ ↙
→ → ↘ ↓ ← ↙ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↓ ← ↙ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↓ ← ↙ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↓ ← ↓ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↓ ↘ ↓ ↙ ↙ ↙ ↙ ↙ ↙
→ → → ↘ → ↘ ↓ ↓ ↓ ↓ ↓ ↓
↙ → → → ↘ ↓ · · · · · ·
← → → ↗ ← · · · · · · ·
```