# geotiff-geotransform

> Get Normalized GeoTransform for a GeoTIFF

Latest version **0.0.1** (published 2023-05-06) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install geotiff-geotransform
pnpm add geotiff-geotransform
yarn add geotiff-geotransform
bun add geotiff-geotransform
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-05-06 |
| First published | 2023-05-06 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daniel J. Dufour |
| Maintainers | danieljdufour |
| Keywords | gdal, geotiff, geotransform |

## Links

- npm: https://www.npmjs.com/package/geotiff-geotransform
- Repository: https://github.com/GeoTIFF/geotiff-geotransform
- Homepage: https://github.com/GeoTIFF/geotiff-geotransform#readme
- Issues: https://github.com/GeoTIFF/geotiff-geotransform/issues
- npm.io page: https://npm.io/package/geotiff-geotransform

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2023-05-06

## README

# geotiff-geotransform
Get Normalized GeoTransform for a GeoTIFF

## purpose
GeoTIFF files store geotranformation information in two different ways:
  1. ModelTiepointTag with ModelPixelScaleTag
  2. ModelTransformationTag

This library normalizes this information into an array of 6 coefficients, like the one used by GDAL: https://gdal.org/tutorials/geotransforms_tut.html

## install
```bash
npm install geotiff-geotransform
```

## usage
```js
import { fromFile } from "geotiff";
import Geotransform from "geotiff-geotransform";

// north-up image in Latitude/Longitude projection
// with ModelTiepoint and ModelPixelScale
const tif = await fromFile("./data/eu_pasture.tiff");
const img = await tif.getImage();
Geotransform(img);
[-31.456975828130908,0.08332825,0,80.7984254723645,0,-0.08332825]

// skewed image with ModelTransformationTag 
const tif = await fromFile("./data/umbra_mount_yasur.tiff");
const img = await tif.getImage();
Geotransform(img);
[337934.4836350695,-0.14299987236417117,-0.5767759114507439,7840518.464866471,-0.5767759114507457,0.14299987236414916]
```

---
_Source: https://npm.io/package/geotiff-geotransform · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
