@mapbox/happytiff

1.2.0 • Public • Published

travis

happytiff

HappyTIFF

A HappyTIFF is a GeoTIFF with extents that match exactly those of a web mercator ZXY tile.

This library can be used to verify that a GeoTIFF is a HappyTIFF.

happytiff CLI command:

Usage: happytiff <filepath>

# install happytiff
sudo npm install -g @mapbox/happytiff

# example run against a tif file
happytiff test/fixtures/91-50-7.valid.tif
{
  "z": 7,
  "x": 91,
  "y": 50
}

JS API:

var happytiff = require('@mapbox/happytiff');
var filepath = __dirname + '/test/fixtures/91-50-7.valid.tif';

happytiff.info(function(filepath, function(err, info) {
    console.log(info);
    // { x: 91, y: 50, z: 7 }
});

Source data

The test images in test/fixtures are open data from:

91-50-7.valid.tif   landsat 8 composite, USGS (http://www.usgs.gov)
invalid.tif         flanders composite, AGIV (https://www.agiv.be)

Readme

Keywords

none

Package Sidebar

Install

npm i @mapbox/happytiff

Weekly Downloads

0

Version

1.2.0

License

none

Unpacked Size

5.59 kB

Total Files

6

Last publish

Collaborators

  • mbx-npm-ci-production
  • mbx-npm-ci-staging
  • mbx-npm-advanced-actions-production
  • mbx-npm-advanced-actions-staging
  • mbx-npm-09-production
  • mbx-npm-08-production
  • mbx-npm-07-production
  • mbx-npm-06-production
  • mbx-npm-05-production
  • mbx-npm-04-production
  • mbx-npm-03-production
  • mbx-npm-02-production
  • mbx-npm-01-production
  • mbx-npm-02-staging
  • mapbox-npm-01
  • mapbox-npm-02
  • mapbox-npm-07
  • mapbox-npm-03
  • mapbox-npm-04
  • mapbox-npm-09
  • mapbox-npm-05
  • mapbox-npm-06
  • mapbox-npm-08
  • mapbox-npm-advanced-actions
  • mapbox-npm-ci
  • mapbox-npm
  • mapbox-admin
  • mapbox-machine-user