npm.io
0.3.1 • Published 3 years ago

geotiff-epsg-code

Licence
CC0-1.0
Version
0.3.1
Deps
1
Size
11 kB
Vulns
0
Weekly
0

geotiff-epsg-code

Get the EPSG Code for a GeoTIFF.

why

ESRI software often doesn't use standards. A GeoTIFF file will sometimes have an ESRI Well-Known Text string baked into its metadata, but no EPSG Code set. This library will do the work for you of finding a valid EPSG code corresponding to the projection information.

install

npm install geotiff-epsg-code

usage

import { fromUrl } from "geotiff";
import get_epsg_code from "geotiff-epsg-code";

const tif = await fromUrl("https://example.org/satellite_imagery.tif");

await get_epsg_code(tif);
32617

Keywords