机场参考点改为青岛胶州国际机场

This commit is contained in:
Tian jianyong 2024-11-14 13:19:37 +08:00
parent a4f947a45c
commit 898d62ecb1
5 changed files with 8 additions and 8 deletions

View File

@ -81,7 +81,7 @@ graph TD
### 3.2 坐标转换 ### 3.2 坐标转换
- 使用等角投影方法 - 使用等角投影方法
- 基于机场参考点(通常为跑道中心点 - 基于机场参考点(青岛胶州国际机场北纬36°21'43.2"东经120°05'16.8"
- 考虑地球曲率影响 - 考虑地球曲率影响
- WGS84椭球体参数 - WGS84椭球体参数
@ -202,7 +202,7 @@ private:
## 7. 部署方案 ## 7. 部署方案
### 7.1 <EFBFBD><EFBFBD>境要求 ### 7.1 境要求
- Linux服务器 - Linux服务器
- 多核CPU - 多核CPU

View File

@ -8,8 +8,8 @@ using json = nlohmann::json;
HTTPDataSource::HTTPDataSource(const ConnectionConfig& config) HTTPDataSource::HTTPDataSource(const ConnectionConfig& config)
: host_(config.host) : host_(config.host)
, port_(std::to_string(config.port)) { , port_(std::to_string(config.port)) {
// 设置坐标转换器的参考点(浦东机场坐标) // 设置坐标转换器的参考点(青岛胶州国际机场坐标)
coordinateConverter_.setReferencePoint(31.143494, 121.805214); coordinateConverter_.setReferencePoint(36.361999, 120.088003);
} }
HTTPDataSource::~HTTPDataSource() { HTTPDataSource::~HTTPDataSource() {
@ -85,7 +85,7 @@ bool HTTPDataSource::fetchData() {
return false; return false;
} }
// <EFBFBD><EFBFBD>取响应 // 取响应
std::string response; std::string response;
if (!readResponse(response)) { if (!readResponse(response)) {
disconnect(); disconnect();

View File

@ -29,9 +29,9 @@ class CustomRequestHandler(WSGIRequestHandler):
app = Flask(__name__) app = Flask(__name__)
# 机场参考点(浦东机场坐标) # 机场参考点(青岛胶州国际机场坐标)
AIRPORT_LAT = 31.143494 AIRPORT_LAT = 36.361999 # 北纬36°21'43.2"
AIRPORT_LON = 121.805214 AIRPORT_LON = 120.088003 # 东经120°05'16.8"
def generate_mock_data(): def generate_mock_data():
"""生成模拟数据""" """生成模拟数据"""