1.0.4 • Published 4 years ago

jael v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

jeal (Just Another Elevations Library)

Reads multi-point elevation data from NASA/METI ASTGTM_v003 elevations dataset:

Dependencies

This library only works with NASA/METI ASTGTM_v003 GeoTiff .dem files downloaded from the appropriate resources (links below). The files should be downloaded as-as and not renamed. Only .dem files are needed, the associated .num files can be deleted.

Useage

Import the library

Set path to the stored GeoTIFF files:

Formulate request object, which must be an object with property 'points'. Any other properties will be ignored, and not returned in the results array. Points is an array of lat/long coordinate objects in the form shown below. Note that longitude is designated by 'lng' not 'lon'. Any number of points can be included in the request. Note that the ASTGTM_v003 dataset only covers up to +/-83degs latitude; providing lats above this will return an error. The request object is not mutated.

Make the elevations request. The getElevs() function returns a promise that should be thenned.

Points are returned as an array in the requested order with an additional property 'elev' on each point, such as:

Useful links