abrensch / brouter

configurable OSM offline router with elevation awareness, Java + Android
MIT License
490 stars 118 forks source link

Add a hgt Reader #548

Closed afischerdev closed 1 year ago

afischerdev commented 1 year ago

According to the #539 idea here a first version of a hgt reader. It uses plain hgt or zip with hgt inside.

The PosUnifier has a test routine for single elevations.

I tested with Iceland (is West and above 60 degree).

zod commented 1 year ago

It's already possible to use hgt files using ConvertLidarTile. I don't think it's useful to have two implementations.

Your implementation also uses GPL code which can't be included in a MIT licensend project.

afischerdev commented 1 year ago

@zod You are right, I missed that. Was only looking in PosUnifier what is used. And I remember now I have used that class before for an Iceland map creation . But it was only partly usable. I'll switch to ConvertLidarTile class and do a little rework for direct use. And it works only with SRTM3 files.