@tsl-tuertscher/hgt-elevation
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

example workflow example workflow

hgt-elevation

Get the elevation from a specific coordinate of a hgt file

Install

npm install @tsl-tuertscher/hgt-elevation

Usage

The files need to be provided as tiles. The tile grid starts at the prime meridian on the south pole (0, -90). The tessellation describes the number of tiles from the south (-90°) to the north (90°) pole. 180 means that the tile size is 1°x 1°.

import { Hgt } from '@tsl-tuertscher/hgt-elevation';

...

const hgt = new Hgt({
  tessellation: 180,
  gridSize: 1201,
  filePath: './test/1201/{tessellation}/{x}/{y}.hgt',
});

const ele = await hgt.getElevationFromCoordinate([
    9.47,
    47.43
]);

Readme

Keywords

Package Sidebar

Install

npm i @tsl-tuertscher/hgt-elevation

Weekly Downloads

14

Version

2.1.0

License

MIT

Unpacked Size

21.2 kB

Total Files

9

Last publish

Collaborators

  • stefan-tuertscher