func (d *SRTM) AddElevation(point []float64) ([]float64, error) {
	ll := LatLng{
		Latitude:  point[1],
		Longitude: point[0],
	}
	tile, err := d.loadTile(ll)
	if err != nil {
		log.Error().Caller().Err(err).Msgf("loadTile: latLng = %s -> error %s", ll.String(), err.Error())
		return nil, err
	}
	tile.setLRU(time.Now())
	elevation, err := tile.GetElevation(ll)
	if err != nil {
		log.Error().Caller().Err(err).Msgf("GetElevation: latLng = %s -> error %s", ll.String(), err.Error())
		return nil, err
	}
	return append(point[:2], float64(elevation)), nil
}
// AddElevation returns point with 3 coordinates: [longitude, latitude, elevation]
// Param tileDir - directory of hgt-tiles
// Param point - [longitude, latitude]
AddElevation returns point with 3 coordinates: [longitude, latitude, elevation]
Param tileDir - directory of hgt-tiles
Param point - [longitude, latitude]
// AddElevation returns point with 3 coordinates : [ longitude latitude elevation ] // Param tileDir - directory of hgt - tiles // Param point - [ longitude latitude ]
func (d *SRTM) AddElevation(point []float64) ([]float64, error) {
	ll := LatLng{
		Latitude:  point[1],
		Longitude: point[0],
	}
	tile, err := d.loadTile(ll)
	if err != nil {
		log.Error().Caller().Err(err).Msgf("loadTile: latLng = %s -> error %s", ll.String(), err.Error())
		return nil, err
	}
	tile.setLRU(time.Now())
	elevation, err := tile.GetElevation(ll)
	if err != nil {
		log.Error().Caller().Err(err).Msgf("GetElevation: latLng = %s -> error %s", ll.String(), err.Error())
		return nil, err
	}
	return append(point[:2], float64(elevation)), nil
}
func ( d * SRTM ) AddElevation ( point [ ] float64 ) ( [ ] float64 , error ) { ll := LatLng { Latitude : point [ 1 ] , Longitude : point [ 0 ] , } tile , err := d . loadTile ( ll ) if err != nil { log . Error ( ) . Caller ( ) . Err ( err ) . Msgf ( " " , ll . String ( ) , err . Error ( ) ) return nil , err } tile . setLRU ( time . Now ( ) ) elevation , err := tile . GetElevation ( ll ) if err != nil { log . Error ( ) . Caller ( ) . Err ( err ) . Msgf ( " " , ll . String ( ) , err . Error ( ) ) return nil , err } return append ( point [ : 2 ] , float64 ( elevation ) ) , nil }
AddElevation returns point with 3 coordinates: [longitude, latitude, elevation]
Param tileDir - directory of hgt-tiles
Param point - [longitude, latitude]
AddElevation returns point with 3 coordinates : [ longitude latitude elevation ] Param tileDir - directory of hgt - tiles Param point - [ longitude latitude ]