2.1.0 • Published 3 years ago

@tsl-tuertscher/hgt-elevation v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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
]);
2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago