mmomtchev / node-gdal-async

Node.js bindings for GDAL (Geospatial Data Abstraction Library) with full async support
https://mmomtchev.github.io/node-gdal-async/
Apache License 2.0
129 stars 26 forks source link

Get elevation/altitude from GeoTIFF #74

Closed jfoclpf closed 1 year ago

jfoclpf commented 1 year ago

First of all I'd like to congratulate you for the public service.

I also developed an open and free Geo API for Portugal and now I'd like to provide altitude without the need of external APIs, that is, using the GeoTIFF file provided by the government agency.

How can I get that using your library? I open the TIF file with gdal.open and then?

mmomtchev commented 1 year ago

There is an example in the package that does exactly this

jfoclpf commented 1 year ago

thank you @mmomtchev , just to confirm, do you mean this? https://github.com/mmomtchev/node-gdal-async/blob/master/examples/serve.js